An error has occured in mod's OnBeforeSimulationTick method. Mod name: TM:PE 11.6.0 TEST
See original GitHub issueI have a save that I have been playing for several weeks. Yesterday evening, I went to sleep and when I started playing Cities Skylines today morning, I started getting this error. I tried using both TM:PE Stable and test. When I start a new city, I don’t seem to get the error. When I disabled the mod, I don’t get the error. Also when the game time is paused, the error doesn’t appear. The game is unplayable because I get the error every 15-30 seconds. Also when you go to main menu, you get a second error, but that is only in Test version.
Complete error message:
An error has occured in mod's OnBeforeSimulationTick method.
Mod name: TM:PE 11.6.0 TEST - Manage your city's traffic
Assembly: TrafficManager, Version=11.6.0.36640, Culture=neutral, PublicKeyToken=null
Severity: Medium
System.InvalidOperationException: Nullable object must have a value.
at System.Nullable`1[System.Boolean].get_Value () [0x00000] in <filename unknown>:0
at TrafficManager.Manager.Impl.RoutingManager.RecalculateLaneEndRoutingData (UInt16 segmentId, Int32 laneIndex, UInt32 laneId, Boolean startNode) [0x00000] in <filename unknown>:0
at TrafficManager.Manager.Impl.RoutingManager+<>c__DisplayClass23_0.<RecalculateSegment>b__0 (UInt32 laneId, .NetLane+ lane, .Lane laneInfo, UInt16 segId, .NetSegment+ segment, Byte laneIndex) [0x00000] in <filename unknown>:0
at CitiesGameBridge.Service.NetService.IterateSegmentLanes (UInt16 segmentId, .NetSegment+ segment, GenericGameBridge.Service.NetSegmentLaneHandler handler) [0x00000] in <filename unknown>:0
at CitiesGameBridge.Service.NetService.IterateSegmentLanes (UInt16 segmentId, GenericGameBridge.Service.NetSegmentLaneHandler handler) [0x00000] in <filename unknown>:0
at TrafficManager.Manager.Impl.RoutingManager.RecalculateSegment (UInt16 segmentId) [0x00000] in <filename unknown>:0
at TrafficManager.Manager.Impl.RoutingManager.SimulationStep () [0x00000] in <filename unknown>:0
at TrafficManager.Lifecycle.ThreadingExtension.OnBeforeSimulationTick () [0x00000] in <filename unknown>:0
at HealkitMod.Patches.ThreadingWrapperOnBeforeSimulationTickPatch.Prefix (System.Collections.Generic.List`1 ___m_ThreadingExtensions) [0x00000] in <filename unknown>:0
Second error: https://pastebin.com/Q87AzWeF
Steps to reproduce: Unknown
How to trigger:
- Play the game on the save I included, I should pop when you start the time.
- You should get the second error message when you go to main menu after loading the save. (Only on TM:PE Test)
Log files: https://ufile.io/rfpr5n0s I don’t have TMPE.log
Savegame: https://steamcommunity.com/sharedfiles/filedetails/?id=2514934321
Screenshot: https://ufile.io/dnx8p2w3
Notes or questions?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
Oh my god… Thank you so much. I’m not sure how that junction broke overnight.
Remove that segment:
zoomed out:
I’ll try to find out why that particular segment is broken