Array Index Symptom 13
Verified: February 2020 - TM:PE 11.1.1
This is one cause of the Simulation error Array index is out of range error.
You will see this error:
Simulation error: Array index is out of range.
In the log file, you'll see one of the following below the error:
at TransportLineAI.CheckNodePosition ...
This happens when a stop on a transport line is broken due to missing network assets (roads, rails, etc); the game can't chance the position because the road or track no longer exists.
If you haven't already done so, subscribe and enable Loading Screen Mod (LSM). In it's mod options, enable sharing/optimisation features.
The first thing we need to deal with is the missing networks. You have two choices - either try and revive them, or just get rid of them...
- In LSM mod options, enable the Asset Reporting options
- Load your city
- When it loads, exit game to desktop
- Look in the LSM reports and it will list the missing networks - resubscribe them
- In LSM mod options, enable the Safe Mode options
- Load your city
- When it loads, save it under a new file name
- Once saved, exit game to desktop
You should now be able to load that new save game without too many errors.
After sorting out the missing networks, you will probably still have some broken transport lines that need removing:
- Subscribe and enable Broken Nodes Detector mod
- Load your city
- In-game, press Ctrl + Zero (or Cmd + Zero on Macs)
- Use each of the tools:
- Detect disconnected PT stops (repeat process until it's not finding any more)
- Remove ghost nodes
- Run detector (if it finds anything, move or bulldoze the pinned road/track/path)
- Now save your game under a new file name
- Once saved, exit game to desktop
Next time you load up, just to be extra careful, use the process listed in To remove missing networks section above.
If you still get the array index error shown in Symptoms section above, it could be some other cause of broken transport routes. You'll have to ask for help in the Steam forums, reddit, discord servers, etc.
Other issues? See: Troubleshooting
Red links are broken; this wiki is a work in progress
Getting Started (click to open)
Troubleshooting / Bugs (click to open)
- Hints Panel
- Road & Rail:
- Junctions:
- Despawning:
- Info Views:
- Roads/Tracks:
- Nodes, Segments, Lanes
- Collector Roads
- Dedicated Turning Lanes
- Enter Blocked Junctions
- High Priority Roads
- Highway Junction Rules
- Lane Changes
- Pedestrian Crossings
- Priority Routes
- Road Conditions
- Roundabouts
- Roundabout Policies
- Stay in Lane
- Turn on Red
- U-Turns
- Unprotected Turns
- Vehicle Restriction Aggression
- Public Transport:
- Vehicles:
Todo: