Cities: Skylines

Cities: Skylines

View Stats:
B0cuma 30 Mar, 2020 @ 2:25pm
Getting an object reference error and I don't know how to fix it.
I was trying to build a canal system in my game, which ended up flooding my city and I started to get "Object reference not set to an instance of an object [System.NullReferenceException]" error code. It repeatedly opens and will not stop. I tried a few things to fix the problem.

First I tried opening another saved game to see if it was any of my mods or assets that are causing the problem but my old game worked just fine.

Next, I tried pausing the game and fixing the flood issue by diverting the stream. Once the flood was over and the town was not flooding anymore I tried unpausing the game to see if that changed anything, nothing.

Finally, I tried restarting the entire canal system and deleted everything. Still, I got this error message. I can see no other cause for the error than the flood, but I'm confused because I thought that this error was an object error that only has to do with assets and mods. Like I said my other game worked just fine with all the same loaded assets and mods, so I am at a loss.

I could use some advice please on how I can solve this issue. Please and thank you.
< >
Showing 1-7 of 7 comments
B0cuma 30 Mar, 2020 @ 3:00pm 
Here is the logfile


Simulation error: Object reference not set to an instance of an object
at TransportStationAI.IsIntercity () <0x0019f>
at TransportStationAI.AdjustMaintenanceCost (uint16,Building&,int) <0x00030>
at PlayerBuildingAI.SimulationStepActive (uint16,Building&,Building/Frame&) <0x001aa>
at CommonBuildingAI.SimulationStep (uint16,Building&,Building/Frame&) <0x00e6d>
at PlayerBuildingAI.SimulationStep (uint16,Building&,Building/Frame&) <0x0002f>
at DepotAI.SimulationStep (uint16,Building&,Building/Frame&) <0x0002a>
at TransportStationAI.SimulationStep (uint16,Building&,Building/Frame&) <0x002f8>
at BuildingAI.SimulationStep (uint16,Building&) <0x00060>
at (wrapper dynamic-method) CommonBuildingAI.SimulationStep_Patch1 (object,uint16,Building&) <0x00055>
at BuildingManager.SimulationStepImpl (int) <0x00675>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at BuildingManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>
[Core]

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)
Riddler_OTF 30 Mar, 2020 @ 6:40pm 
Hi,

I ran exactly into the same problem, after some thinking and trial&error I figured out the culprit in my case:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=414025511
Removed and the error was gone. Just free-patch 1.13.0-f7 right now, DLC not active.

I suggest you check your older and preferably subway related assets, too. Hope it helps a bit.

I also have the feeling multitrack/multiplatform stations are currently somewhat broken, I can't set new stops.
Last edited by Riddler_OTF; 30 Mar, 2020 @ 6:48pm
Riddler_OTF 30 Mar, 2020 @ 6:51pm 
Great, I'll check it out after some sleep! :)
Riddler_OTF 31 Mar, 2020 @ 4:53am 
Short feedback: IsIntercity Fix indeed fixes my problem. Thank you, @aubergine18
B0cuma 31 Mar, 2020 @ 2:32pm 
Thank you, @aubergine that totally solved the issue. I really appreciate the help and thanks everyone for there helpful feedback.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: 30 Mar, 2020 @ 2:25pm
Posts: 7