Error in loading centers.txt
-
When loading centers.txt, I receive the error "StringIndexOutOfBoundsException - being 0, end -1 length 13
Centers.txt reads:
H (927,844)
Map.properties reads:
map.mapBlendAlpha=0.3
screenshot.title.color=000000
screenshot.title.x=50
screenshot.title.enabled=true
screenshot.title.font.size=20
units.counter.offset.height=48
map.cursor.hotspot.x=0
units.counter.offset.width=12
screenshot.title.y=50
map.drawNamesFromTopLeft=false
dont_draw_territory_names=
map.showSeaZoneNames=true
map.useTerritoryEffectMarkers=false
map.showResources=true
map.showTerritoryNames=true
map.useNation_convoyFlags=false
map.showCapitolMarkers=true
map.cursor.hotspot.y=0
map.mapBlends=false
map.scrollWrapX=true
map.mapBlendMode=OVERLAY
map.hasRelief=true
units.scale=0.75
map.width=1474
map.scrollWrapY=false
map.showComments=true
color.Americans=666600
color.Japanese=ffd400
map.height=1442
units.width=48
units.height=48
units.stack.size=0Here is the map:
-
@RogerCooper Can you post the map zip. Most likely there is something invalid about your centers.txt.
-
-
@RogerCooper Uh. That is a very incomplete map zip. Are you getting that error in the map creator?
-
@redrum Yes, I am using Map Creator.
-
@redrum Any progress on figuring this out? Does anyone else receive this sort of error?
-
@RogerCooper Just tried to do it with 1.9.0.0.13066 and initially I failed, cause I got confused because of the incomplete state of the map. Anyways, what I believe you are doing wrong, I guess, is loading the "centers" (or something inappropriate anyways) when the mapmaking utility prompts you to "Select A Polygon File". Since you have none, you must simply skip that offer, and the Center Picker should function normally.
Let us know if this solves your issue, then I'll move this topic to "Mapmaking".
p.s.: (at the developers) The mapmaking utility should probably state that providing a polygon is optional, especially since you shouldn't normally have one, as you are supposed to define the centers before the polygons (but normally at this point you should not have the centers either, so no risk of loading them, instead).
-
@Cernel That message is marking think that I need to cleanup my territory borders before setting centers.
-
@RogerCooper I edited the post, forget about that. What I did wrong was loading the centers when the utility asked for the polygons (that you don't have). Did you make the same mistake?
-
@Cernel Yes, I did
-
@RogerCooper Since we have clarified that there is no issue here (except maybe the mapmaking tools being not very intuitive), I'm moving this to Mapmaking (and editing the title back @Lafayette).