SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
85 stars 18 forks source link

Train mod error #2744

Closed baranmod closed 3 years ago

baranmod commented 3 years ago

Maybe someone have an idea why this error appears with modded train on server load?

[8/5/2021 10:45:53 AM] [Error] Object reference not set to an instance of an object
[8/5/2021 10:45:53 AM] [Error]   at SDG.Unturned.InteractableVehicle.getTrainCar (UnityEngine.Transform root) [0x0000b] in <bce635775166430dbe9123680361f6c4>:0 
  at SDG.Unturned.InteractableVehicle.init () [0x0100b] in <bce635775166430dbe9123680361f6c4>:0 
  at SDG.Unturned.VehicleManager.addVehicle (System.UInt16 id, System.UInt16 skinID, System.UInt16 mythicID, System.Single roadPosition, UnityEngine.Vector3 point, UnityEngine.Quaternion angle, System.Boolean sirens, System.Boolean blimp, System.Boolean headlights, System.Boolean taillights, System.UInt16 fuel, System.Boolean isExploded, System.UInt16 health, System.UInt16 batteryCharge, Steamworks.CSteamID owner, Steamworks.CSteamID group, System.Boolean locked, Steamworks.CSteamID[] passengers, System.Byte[][] turrets, System.UInt32 instanceID, System.Byte tireAliveMask) [0x00103] in <bce635775166430dbe9123680361f6c4>:0
SDGNelson commented 3 years ago

Same mod as #2743? On client and server that method expects "Track_Front" and "Track_Back" as children of the "Objects" transform.

baranmod commented 3 years ago

ahh, sorry, didn't notice other issue. Got it fixed, thanks for help!