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/
84 stars 18 forks source link

Belgium Startup Error #738

Closed Mithallas closed 5 years ago

Mithallas commented 5 years ago
[4/5/2019 4:47:35 PM] [Info] General: Survival
[4/5/2019 4:47:35 PM] [Info] Loading level: 8%
[4/5/2019 4:47:35 PM] [Info] Loading level: 16%
[4/5/2019 4:47:36 PM] [Info] Loading level: 25%
[4/5/2019 4:47:39 PM] [Info] Loading level: 33%
[4/5/2019 4:47:39 PM] [Info] Loading level: 41%
[4/5/2019 4:47:39 PM] [Info] Loading level: 50%
[4/5/2019 4:47:40 PM] [Info] Loading level: 58%
[4/5/2019 4:47:40 PM] [Info] Loading level: 66%
[4/5/2019 4:47:40 PM] [Info] Loading level: 75%
[4/5/2019 4:47:40 PM] [Info] Loading level: 83%
[4/5/2019 4:47:40 PM] [Info] Loading level: 91%
[4/5/2019 4:47:40 PM] [Info] Loading level: 100%
[4/5/2019 4:47:41 PM] [Error] NullReferenceException: Object reference not set to an instance of an object - 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) (at <f5a504a657844ae692835e5b4f885fab>:0)
SDG.Unturned.VehicleManager.onLevelLoaded (System.Int32 level) (at <f5a504a657844ae692835e5b4f885fab>:0)
SDG.Unturned.Level+<init>c__Iterator0.MoveNext () (at <f5a504a657844ae692835e5b4f885fab>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <2686255ceb974cc2967520f770810585>:0)

[4/5/2019 4:47:43 PM] [Error] KeyNotFoundException: The given key was not present in the dictionary. - System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (TKey key) (at <cfc149f8218b496788d8493c87de777a>:0)
Pathfinding.Util.TileHandler.CutPoly (Pathfinding.Int3[] verts, System.Int32[] tris, Pathfinding.Int3[]& outVertsArr, System.Int32[]& outTrisArr, System.Int32& outVCount, System.Int32& outTCount, Pathfinding.Int3[] extraShape, Pathfinding.Int3 cuttingOffset, UnityEngine.Bounds realBounds, Pathfinding.Util.TileHandler+CutMode mode, System.Int32 perturbate) (at <f5a504a657844ae692835e5b4f885fab>:0)
Pathfinding.Util.TileHandler+<LoadTile>c__AnonStorey1.<>m__0 (System.Boolean force) (at <f5a504a657844ae692835e5b4f885fab>:0)
AstarPath.ProcessWorkItems (System.Boolean force) (at <f5a504a657844ae692835e5b4f885fab>:0)
AstarPath.PerformBlockingActions (System.Boolean force, System.Boolean unblockOnComplete) (at <f5a504a657844ae692835e5b4f885fab>:0)
AstarPath.Update () (at <f5a504a657844ae692835e5b4f885fab>:0)

Prevents belgium level files from being created Players cannot join the server

Trojaner commented 5 years ago

I can confirm that at least 4 different people have reported this to me as well.

WW-TC commented 5 years ago

Same for me

SDGNelson commented 5 years ago

Looks like a serverside vehicle was missing a rigidbody, must have been lucky enough not to spawn it on the test server 🤕

Cleaned up that code for the patch a bit and add a rigidbody by default