Cities: Skylines

Cities: Skylines

109 ratings
Safenets [no longer needed]
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
4.608 KB
10 Jan, 2019 @ 9:54am
16 Sep @ 11:05am
2 Change Notes ( view )

Subscribe to download
Safenets [no longer needed]

Description
This is a small & experimental mod that attempts to fix the "Simulation error: Object reference not set" error from RoadBaseAI.CanEnableTrafficLights.

If RoadBaseAI.CanEnableTrafficLights appears in your output_log.txt, this mod is worth a try.
If there is no RoadBaseAI.CanEnableTrafficLights in your log, you don't need this mod.

Note that if you have the Crossings mod, you may get the Object reference error from it, too. Crossings has its own version of CanEnableTrafficLights. I cannot fix that one.

Using cities-skylines-detour[github.com] by Sebastian Schöner.
Sources are available.[github.com]
23 Comments
ナツゾラ* 7 Oct, 2022 @ 6:25pm 
this still works?
Haikalazhan 30 Mar, 2022 @ 4:31pm 
thanks:steamhappy:
StayHungryStayFoolish 2 Dec, 2021 @ 10:11am 
Safenets [Steam ID 1620588636] by thale5

- Unsubscribe this. It is succeeded by a mod you already have:
* [Steam ID 667342976] Loading Screen Mod
- This is compatible with the current game version.
- Unsubscribe would be wise. This is deprecated and no longer supported by the author.
- You can use the 'Try to recover from Simulation Errors' option from Loading Screen
Mod. It is more powerful than this mod.

Steam Workshop page: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1620588636
Lucibal 1 Aug, 2021 @ 8:52am 
is there any way to swap missing segments during loading to not loose giant part of network?
hillfanthomlike10 28 Jan, 2021 @ 8:16am 
thank you
thale5  [author] 27 Jan, 2020 @ 8:33am 
@Deadotated Wham It works like this: for each custom net segment, check if its custom net asset is available. If yes, do nothing with the segment. If not, remove the segment.

Apparently you have lost some much needed net asset(s), or there is some save game corruption.
C-North D-WHAM 24 Jan, 2020 @ 1:46am 
fixed my city but deleted many many roads?
ning_meng 17 Jan, 2020 @ 11:22pm 
I'm trying to fix my save but thanks for the mod!!!!:lunar2019crylaughingpig:
Silicon14 15 Jan, 2020 @ 1:05pm 
You might be an Angel !!!!:steamhappy::steamhappy::steamhappy:
thale5  [author] 31 Aug, 2019 @ 9:00am 
@aubergine18 That savegame mentioned below was a good one. There is now a recovery option in LSM [Test]. The new option is able to load and save that game even though almost all mod and asset dependencies are missing.