CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
576 stars 85 forks source link

Array out of range #82

Closed DaHindi closed 5 years ago

DaHindi commented 5 years ago

I get the following error now every few minutes. The number of errors at one time varies from 1 to about 10. In outputlog theres no error output before (Only the succesful initiation pf the graphics card)

Simulation error: Array index is out of range. at PassengerTrainAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in :0 at VehicleAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in :0 at TrafficManager.Custom.AI.CustomTrainAI.CustomSimulationStep (UInt16 vehicleId, .Vehicle& vehicleData, Vector3 physicsLodRefPos) [0x00000] in :0 at VehicleManager.SimulationStepImpl (Int32 subStep) [0x00000] in :0 at SimulationManagerBase`2[Manager,Properties].SimulationStep (Int32 subStep) [0x00000] in :0 at VehicleManager.ISimulationManager.SimulationStep (Int32 subStep) [0x00000] in :0 at SimulationManager.SimulationStep () [0x00000] in :0 at SimulationManager.SimulationThread () [0x00000] in :0 [Core]

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

What can cause this issue? I found a few posts over the years with the same error but no solution. As traffic manager is included, can that be the cause?

originalfoo commented 5 years ago

Can you share your savegame to workshop so we can investigate further? See: How to share save game on Steam

Also if you could share your log file (you can drag-drop it on to a github comment box) that would be useful too in case there are any errors that occurred that might have triggered the recurring error. See: Log file locations

krzychu124 commented 5 years ago

[EDIT] Never mind unfortunately this is not part of our mod.

Please check if you have any mod which improves passenger train AI and add requested files

DaHindi commented 5 years ago

I now see, theres also a citizen not found error...

output_log.txt

https://steamcommunity.com/sharedfiles/filedetails/?id=1655238807

What mods can improve Passenger Train AI? IPT2? MOM? RealTime?

krzychu124 commented 5 years ago

MOM is doing something with passegnerAI but iirc you can disable it in MOM options menu

originalfoo commented 5 years ago

IPT2 and MOM do.

Random thought: Could this be related to #55

DaHindi commented 5 years ago

Disbaling PassengerAI in MOM Options led to the same error after few minutes, but this time they were perpetual

Also this error appeared Simulation error: Array index is out of range. at PassengerTrainAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, .Frame& frameData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in :0 at VehicleAI.SimulationStep (UInt16 vehicleID, .Vehicle& vehicleData, UInt16 leaderID, .Vehicle& leaderData, Int32 lodPhysics) [0x00000] in :0 at TrafficManager.Custom.AI.CustomTrainAI.CustomSimulationStep (UInt16 vehicleId, .Vehicle& vehicleData, Vector3 physicsLodRefPos) [0x00000] in :0 at VehicleManager.SimulationStepImpl (Int32 subStep) [0x00000] in :0 at SimulationManagerBase`2[Manager,Properties].SimulationStep (Int32 subStep) [0x00000] in :0 at VehicleManager.ISimulationManager.SimulationStep (Int32 subStep) [0x00000] in :0 at SimulationManager.SimulationStep () [0x00000] in :0 at SimulationManager.SimulationThread () [0x00000] in :0 [Core]

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

Simulation error: Array index is out of range. at PassengerTrainAI.StartPathFind (UInt16 vehicleID, .Vehicle& vehicleData) [0x00000] in :0 at PassengerTrainAI.SetTarget (UInt16 vehicleID, .Vehicle& data, UInt16 targetBuilding) [0x00000] in :0 at DepotAI.ProduceGoods (UInt16 buildingID, .Building& buildingData, .Frame& frameData, Int32 productionRate, Int32 finalProductionRate, .BehaviourData& behaviour, Int32 aliveWorkerCount, Int32 totalWorkerCount, Int32 workPlaceCount, Int32 aliveVisitorCount, Int32 totalVisitorCount, Int32 visitPlaceCount) [0x00000] in :0 at TransportStationAI.ProduceGoods (UInt16 buildingID, .Building& buildingData, .Frame& frameData, Int32 productionRate, Int32 finalProductionRate, .BehaviourData& behaviour, Int32 aliveWorkerCount, Int32 totalWorkerCount, Int32 workPlaceCount, Int32 aliveVisitorCount, Int32 totalVisitorCount, Int32 visitPlaceCount) [0x00000] in :0 at PlayerBuildingAI.SimulationStepActive (UInt16 buildingID, .Building& buildingData, .Frame& frameData) [0x00000] in :0 at CommonBuildingAI.SimulationStep (UInt16 buildingID, .Building& buildingData, .Frame& frameData) [0x00000] in :0 at PlayerBuildingAI.SimulationStep (UInt16 buildingID, .Building& buildingData, .Frame& frameData) [0x00000] in :0 at DepotAI.SimulationStep (UInt16 buildingID, .Building& buildingData, .Frame& frameData) [0x00000] in :0 at TransportStationAI.SimulationStep (UInt16 buildingID, .Building& buildingData, .Frame& frameData) [0x00000] in :0 at BuildingAI.SimulationStep (UInt16 buildingID, .Building& data) [0x00000] in :0 at TrafficManager.Custom.AI.CustomCommonBuildingAI.CustomSimulationStep (UInt16 buildingID, .Building& data) [0x00000] in :0 at BuildingManager.SimulationStepImpl (Int32 subStep) [0x00000] in :0 at SimulationManagerBase`2[Manager,Properties].SimulationStep (Int32 subStep) [0x00000] in :0 at BuildingManager.ISimulationManager.SimulationStep (Int32 subStep) [0x00000] in :0 at SimulationManager.SimulationStep () [0x00000] in :0 at SimulationManager.SimulationThread () [0x00000] in :0 [Core]

DaHindi commented 5 years ago

I think it was related to a deleted metro line. At a save before that, there is no error anymore

krzychu124 commented 5 years ago

BTW did you created save in between mod update and hotfix few hours later? Changelog with timestamps here

There was a bug in update which prevents loading TM:PE settings. If you saved your game between update but before hotfix release, any of TM:PE settings wasn't saved.

DaHindi commented 5 years ago

I have to look tomorrow

DaHindi commented 5 years ago

Nope, didnt have the mod at this time

originalfoo commented 5 years ago

@DaHindi did you ever get this error resolved?

originalfoo commented 5 years ago

Closing this as no response.

If the issue persists, please see this troubleshooting guide which lists all known causes of the Array index error and how to fix them.