Cities: Skylines

Cities: Skylines

View Stats:
Array index is out of range?
"Array index is out of range. [System.IndexOutOfRangeException]

Details:
No details"

After hitting x everything works out without problems. I wonder cause i did not installed new assets nor mods. Then when i load my savegame again sometimes i got no pop up but most time it says "Array index ...."

Here is my outputlog
https://ufile.io/i3vx0aq4
Originally posted by Avanya:
Originally posted by koyangi:
Originally posted by Avanya:
The error is coming from Surface Painter. After loading your save, open Options, find Surface Painter on the left, then click the "Update while map" button and wait for it to do its thing. Then save your city as a new file, restart the game and load that new save to see if the issue is fixed.

I did but now i have to click again 10 times.

While the game is not running unsubscribe Surface Painter. Then open the workshop folder - It's found here (though the path might look a bit different for you depending on where your Steam is installed)
C:\Program Files (x86)\Steam\steamapps\workshop\content\255710

Find the folder named 689937287 and delete it. Then subscribe to Surface Painter again, start the game and check that Surface Painter is installed. If not, you will need to restart Steam (maybe even log out and back in).

Also keep Save Our Saves and Safe Mode enabled for now.

With Surface Painter installed and enabled, open the last save you made for that city and see if the error is still there. If it is, try the "Update whole map" again, save as a new file again and restart the game to test that new save.
< >
Showing 16-29 of 29 comments
Avanya Jun 10, 2020 @ 5:49am 
Originally posted by koyangi:
And now after i enabled Safe Mode for loading Screen i have no error messages. Should enbable them permanently?

No. Like described in the link, you should enable it once, load and save as a new file, then restart the game and disable it. If you are loading the same save without having made a new one, then the fix the mod does will not take effect. :)
SirRantsAlot Jun 10, 2020 @ 6:00am 
Originally posted by Avanya:
The error is coming from Surface Painter. After loading your save, open Options, find Surface Painter on the left, then click the "Update while map" button and wait for it to do its thing. Then save your city as a new file, restart the game and load that new save to see if the issue is fixed.

I did but now i have to click again 10 times.
The author of this thread has indicated that this post answers the original topic.
Avanya Jun 10, 2020 @ 6:08am 
Originally posted by koyangi:
Originally posted by Avanya:
The error is coming from Surface Painter. After loading your save, open Options, find Surface Painter on the left, then click the "Update while map" button and wait for it to do its thing. Then save your city as a new file, restart the game and load that new save to see if the issue is fixed.

I did but now i have to click again 10 times.

While the game is not running unsubscribe Surface Painter. Then open the workshop folder - It's found here (though the path might look a bit different for you depending on where your Steam is installed)
C:\Program Files (x86)\Steam\steamapps\workshop\content\255710

Find the folder named 689937287 and delete it. Then subscribe to Surface Painter again, start the game and check that Surface Painter is installed. If not, you will need to restart Steam (maybe even log out and back in).

Also keep Save Our Saves and Safe Mode enabled for now.

With Surface Painter installed and enabled, open the last save you made for that city and see if the error is still there. If it is, try the "Update whole map" again, save as a new file again and restart the game to test that new save.
Koko Jun 10, 2020 @ 6:16am 
Once the surface painter crash the game some road textures are gone , extra landscaping tools does not work and if you want to delete a road , blue surface remaining . As Koyangi wrote all problems start with getting error messages once you loaded a save game. Sometimes once sometimes ten ,you just pushed OK they are gone but saved game crashed. First time when you faced this issue you are able to release ( retextures ) the roads if you grab a node and move it a bit.
SirRantsAlot Jun 10, 2020 @ 6:51am 
@Koko
The savegame seems to work out fine afaik. But i did not test for long since i want to get rid of this error message.
SirRantsAlot Jun 10, 2020 @ 6:52am 
Originally posted by Avanya:
Originally posted by koyangi:

I did but now i have to click again 10 times.

While the game is not running unsubscribe Surface Painter. Then open the workshop folder - It's found here (though the path might look a bit different for you depending on where your Steam is installed)
C:\Program Files (x86)\Steam\steamapps\workshop\content\255710

Find the folder named 689937287 and delete it. Then subscribe to Surface Painter again, start the game and check that Surface Painter is installed. If not, you will need to restart Steam (maybe even log out and back in).

Also keep Save Our Saves and Safe Mode enabled for now.

With Surface Painter installed and enabled, open the last save you made for that city and see if the error is still there. If it is, try the "Update whole map" again, save as a new file again and restart the game to test that new save.


I did not find the folder where you described. In my case it was I:SteamLibrary\steamapps\workshop\content\255710.
But there was no folder 689937281 after i unsuubscribe from Surface Painter.
And whenever i keep SoS and Safe Mode enabled it works out fine. But if i start after that again without them the error messages pop up again.
But i did like you proposed. With both enabled no error message and no need to update map. Now i loaded my brand new savegame again and ... it worked out! THANKS!
I reload now twice and it seems to be ok. But how did you find out? Just with the outputlog? I just wanna know.
Avanya Jun 10, 2020 @ 8:14am 
Originally posted by koyangi:
I did not find the folder where you described. In my case it was I:SteamLibrary\steamapps\workshop\content\255710.
But there was no folder 689937281 after i unsuubscribe from Surface Painter.
And whenever i keep SoS and Safe Mode enabled it works out fine. But if i start after that again without them the error messages pop up again.
But i did like you proposed. With both enabled no error message and no need to update map. Now i loaded my brand new savegame again and ... it worked out! THANKS!
I reload now twice and it seems to be ok. But how did you find out? Just with the outputlog? I just wanna know.

Good to hear it's working again. Is the error also gone without Safe Mode and Save Our Saves? Or are you needing those to have it work without errors?

The output log had this
Execution error: Array index is out of range. at TerrainModify.UpdateAreaImplementation () [0x00000] in <filename unknown>:0 at TerrainModify.UpdateArea (Int32 minX, Int32 minZ, Int32 maxX, Int32 maxZ, Boolean heights, Boolean surface, Boolean zones) [0x00000] in <filename unknown>:0 at SurfacePainter.SurfaceManager+<>c.<UpdateWholeMap>b__9_0 () [0x00000] in <filename unknown>:0 at AsyncAction.Execute () [0x00000] in <filename unknown>:0 [Core]

As you can see it mentions Surface Painter. Unsubscribing/resubscribing gives you a fresh install of the mod, so if there is a problem in the mod's files, then that usually fixes it.
Last edited by Avanya; Jun 10, 2020 @ 8:25am
SirRantsAlot Jun 10, 2020 @ 8:19am 
No until now i dont need Safe Mode nor SoS.
And how did you find the right line? I mean its some 1000s. Or did you search the file for "array index"?
And how did you find the way from surface manager to surface painter?
And i really wonder that a simple fresh install of this mod worked out.
Anyway thx again! :)
Avanya Jun 10, 2020 @ 8:27am 
Originally posted by koyangi:
No until now i dont need Safe Mode nor SoS.
And how did you find the right line? I mean its some 1000s. Or did you search the file for "array index"?
And how did you find the way from surface manager to surface painter?
And i really wonder that a simple fresh install of this mod worked out.
Anyway thx again! :)

That's good to hear. :)

Yeah, I searched for the error to find it. It actually also says "SurfacePainter" in there. I just underlined it so it's easier to spot. Not all errors mention a mod though, but often there is a mod name in there. :)

The file(s) for the mod probably got corrupted somehow. It happens from time to time. So reinstalling the mod like this made sure everything was working as it should. :) It's sorta the mod version of "turning it off and on again." :P
Last edited by Avanya; Jun 10, 2020 @ 8:27am
SirRantsAlot Jun 11, 2020 @ 12:33am 
I am just curious cause i wanna do it on my own resp. i can maybe help others in the future. But if things get to complicated i will ask you. Thx again and have a nice day.
realadrieno2371 Feb 3, 2023 @ 8:52pm 
it keeps popping up when i unpause the time and it keeps popping up, at least 30 times, how do i solve this?
St.Coiled Mar 4, 2023 @ 7:46am 
Originally posted by realadrieno2371:
it keeps popping up when i unpause the time and it keeps popping up, at least 30 times, how do i solve this?

found any fix?
teasalts Mar 27, 2023 @ 6:34pm 
I finally found a fix that worked for me. My output log stated,
Array index out of range: .... TM:PE CustomPathUnits etc.

I had the mod More_PathUnits downloaded and enabled. but this error will occur if you don't restart your game after enabling the mod.
So I unintalled the mod MorePathUnits > Reinstalled it > opened game to enable it (I had to disable it and reenable it) > then you restart your game once the mod is enabled > the error should no longer occur.

I don't know if this is the end-all answer but for the Array index error but for those that have the error followed by custom paths in the outlog file, this will work.
FreeRadiKill May 21, 2023 @ 6:47pm 
Thanks to Avanya. But his instructions were not eliminating the "Array Index Out of Range" error message at first. Until I unsubscribed both at Steam AND in game under Content Manager ( it was still shown, but as 'off'). I also added -safe to Launch Options at Steam after choosing properties for the game. I loaded the game file, saved it (no new name) then restarted with -safe deleted from game properties. It worked... at least now...(Later) had to use -safe again at Launch Options.
Last edited by FreeRadiKill; May 21, 2023 @ 8:34pm
< >
Showing 16-29 of 29 comments
Per page: 1530 50

Date Posted: Jun 8, 2020 @ 7:46am
Posts: 29