StringIndexOutOfBoundsException
-
I tried to load a map after having made some changes to the XML but now I am getting this error:
Anybody an idea what this error means and how to fix it?
-
It has something to do with the map dimensions. It happened to me but Idk what I did to fix it.
I think I just reloaded everything. Check your map properties and reset even though you didn't change it.
Can also read through Elk's map making guide where he talks about map width and height. Might be something in there.
-
it is discussed here as well https://forums.triplea-game.org/topic/1499/error-in-loading-centers-txt?_=1734882789048
-
@beelee I got it to work, thanks to your help!
It turned out there were two territories still included in the place.txt that I wanted to remove from the module. I thought removing their place boxes would do the job but they actually were still in the place.txt, just without any coordinates. This caused the String Index Out Of Bounds error. Lesson learned!