SanAndreasUnity
SanAndreasUnity copied to clipboard
Textures of some vehicles flickering
as on image
MULE:
BENSON:
I think this might be caused by loading all the signs and them being in the exact same place.
Hello I've take a look at the issue. Seems it is caused because no "extra" was chosen for vehicle. E.g. on the MULE there are 4 extras for chasis, and one random should be choosen. It works fine when only one of them is enabled.
Another example is STALLION, wich have several "extra" for its roof, it also have some precondition, how to choose the correct one. Preconditions are described in Comprules in vehicles.ide.
https://gtamods.com/wiki/CARS_(IDE_Section)#Comprules
I can investigate it more and fix the issue like my "first simple one".
@GoverLabs that was very well investigated 👍 I wasn't even aware of these "extras". Yeah, this seems like a good issue to start with.
Having a look at the wiki page, I found there is a bit more to it than described. They have a link at bottom which leads to: https://gtaforums.com/topic/530575-tutcomponent-rules/ . There is more detailed explanation how it works.
We already have CARS ide section parsed, it's in VehicleDef.cs
. So basically, all we need to do is, when creating a vehicle, check the VehicleDef.CompRules
and enable corresponding "extra" object. This would probably be done in Vehicle.Initialize()
.
You can also send me PM in discord for quicker response.