Simulation error: Array index is out of range. (More Vehicles mod)
See original GitHub issueSeen 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:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
Ah, yeah, I see it.
Line 6168 and 6430 - enabled