CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
576 stars 85 forks source link

Check patches for rocket launches #496

Closed originalfoo closed 3 years ago

originalfoo commented 5 years ago

Issue detected while testing a save from #494

Simulation error: Object reference not set to an instance of an object
at (wrapper dynamic-method) VehicleManager.CreateVehicle_Patch2 (object,uint16&,ColossalFramework.Math.Randomizer&,VehicleInfo,UnityEngine.Vector3,TransferManager/TransferReason,bool,bool) <0x00ae3>
at RocketLaunchAI.SimulationStep (uint16,EventData&) <0x0083d>
at EventManager.SimulationStepImpl (int) <0x00149>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at EventManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>
  [Core]

VehicleManager.CreateVehicle_Patch2

I don't recall seeing space rockets listed in the vehicle types - maybe that is the issue?

image

kvakvs commented 5 years ago

OK i have launched ChirpX under the debugger and no Null Pointer exception occured. How do I reproduce?

originalfoo commented 5 years ago

@kvakvs I was testing the save game that's in the .zip in https://github.com/krzychu124/Cities-Skylines-Traffic-Manager-President-Edition/issues/494

kvakvs commented 5 years ago

Does not even load for me. Debugger shows the loading is getting stuck in the infinite loop in DeleteBuildingImpl on calling CheckBulldozing on a building whose building.Info is null. Might be missing assets?

originalfoo commented 5 years ago

I was also missing assets (listed in a comment in #494) but it did load - use Loading Screen Mod asset report and it will list what's missing. Although still odd that it would fail to load at all.

originalfoo commented 5 years ago

Try SafeNets mod - it will avoid some common problems due to loading saves with missing network assets. https://steamcommunity.com/sharedfiles/filedetails/?id=1620588636

kvakvs commented 5 years ago

Game loaded with SafeNets, auto-deleted all the missing roads so i've played "fix my city" restoring the roads and waiting for ChirpX to charge. The debugger was active the whole time and was only catching minor exceptions in filesystem monitor. ChirpX rocket has launched no problem, so my guess would be one of the user's assets causing this.

originalfoo commented 5 years ago

I'll see if I can spot any custom rocket assets in the log...

originalfoo commented 5 years ago

No custom rockets found. :/

krzychu124 commented 3 years ago

Old issue, there was game update in the meantime, personally I haven't heard about similar issue since then. Closing, reopen if issue persist.