question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simulation error: Array index is out of range. (More Vehicles mod)

See original GitHub issue

Seen this a few times, it seems to be issue with IPT2 but would be good if we could confirm that is the case. We often get these errors sent to use because they mention TM:PE, for example:

Simulation error: Array index is out of range.
at ImprovedPublicTransport2.Detour.VehicleManagerMod.ReleaseWaterSource (uint16,Vehicle&) <0x0001d>
at VehicleManager.ReleaseVehicleImplementation (uint16,Vehicle&) <0x00220>
at TrafficManager.Custom.Manager.CustomVehicleManager.CustomReleaseVehicle (uint16) <0x0008d>
at TrafficManager.Custom.AI.CustomCarAI.CustomSimulationStep (uint16,Vehicle&,UnityEngine.Vector3) <0x007ac>
at TrafficManager.Custom.AI.CustomCargoTruckAI.CustomSimulationStep (uint16,Vehicle&,UnityEngine.Vector3) <0x00196>
at (wrapper dynamic-method) VehicleManager.SimulationStepImpl_Patch0 (object,int) <0x003d9>
at SimulationManagerBase`2.SimulationStep (int) <0x0004c>
at VehicleManager.ISimulationManager.SimulationStep (int) <0x00024>
at SimulationManager.SimulationStep () <0x00693>
at SimulationManager.SimulationThread () <0x0018a>

There several variants of the error - see end of this log file: Windows - IPT2.txt

Save game exhibiting the issue: https://steamcommunity.com/sharedfiles/filedetails/?id=1812178640

From steam discussion: https://steamcommunity.com/app/255710/discussions/0/1640917367351362143

Several other examples can be found in Symptom 4 in our troubleshooting guide on the Array index issue where I had originally thought it was caused by Climate Control, however the save above has never used that mod. As such, it seems to be a conflict between IPT2 and TM:PE?

If there’s any way to track down what specifically is causing it, it would be big help for people experiencing the issue.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
originalfoocommented, Jul 22, 2019

Ah, yeah, I see it.

0reactions
krzychu124commented, Jul 22, 2019

Line 6168 and 6430 - enabled

Read more comments on GitHub >

github_iconTop Results From Across the Web

I get the Error "Simulation error Array index is out of range ...
I get the Error "Simulation error Array index is out of range" and i have no idea which mod causes it. Can anyone...
Read more >
Cities: Skylines - Array index is out of range Error
Simulation error: Array index is out of range. ... My guess it is mod-related, specifically, a broken or incompatible mod.
Read more >
Cities: Skylines (Steam) - "Array index is out of range" error
I see this repeated in the file. This is from when the game was running without any mods turned on. Simulation error: Array...
Read more >
Simulation error Array index is out of range - GitHub Wiki SEE
If the error is IndexOutOfRangeException: Array index is out of range , it might be caused by Broken road assets (see that link...
Read more >
How To Fix Array Index Out of Range Error :: Cities - YouTube
Today I am going to show you how to fix array index is out of range with cities skylines, Array index error will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found