• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Why is my vehicle floating in-game and throwing tons of errors?

ArticFire

Refugee
Hey there fellow survivors!

Today, I was working on my mod for 7 Days To Die Alpha 21, and I hit a snag. When I tried making my own vehicle, I got everything set up and ready to go. It properly renders in game, it has it's own item, and everything seems fine. That is until I actually spawn it in. The second I do, I get spammed by it saying:

NullReferenceException: Object reference not set to an instance of an object
at EntityVehicle.CheckForOutOfWorld () [0x00171] in <d7dcfa4979674f179c13273f8b30b551>:0
at EntityVehicle.PhysicsFixedUpdate () [0x0032a] in <d7dcfa4979674f179c13273f8b30b551>:0
at EntityVehicle.FixedUpdate () [0x00000] in <d7dcfa4979674f179c13273f8b30b551>:0



I can only assume that something may be wrong with the physics, or somehow the vehicle is not working properly. So, if anyone knows how to fix this, please help me. I've been stuck on this for weeks now. Nothing I've done has fixed it so far.

 
Can be several things, such as a typo in your hierarchy in Unity or something else. A pic of the fully expanded hierarchy in Unity would help, as well as your xml from items, entityclasses, and vehicles.xml.

Also, if you use Discord, you can join Gup's server to get help. Makes sorting these kinds of issues easier. You can find it here:




 
Back
Top