Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Error in loading centers.txt

    Map Making
    3
    11
    876
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RogerCooper
      RogerCooper last edited by Cernel

      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=0

      Here is the map:

      Guadacanal.png

      redrum 1 Reply Last reply Reply Quote 0
      • redrum
        redrum Admin @RogerCooper last edited by

        @RogerCooper Can you post the map zip. Most likely there is something invalid about your centers.txt.

        RogerCooper 1 Reply Last reply Reply Quote 0
        • RogerCooper
          RogerCooper @redrum last edited by

          @redrum Guadacanal.zip

          redrum 1 Reply Last reply Reply Quote 0
          • redrum
            redrum Admin @RogerCooper last edited by

            @RogerCooper Uh. That is a very incomplete map zip. Are you getting that error in the map creator?

            RogerCooper 2 Replies Last reply Reply Quote 0
            • RogerCooper
              RogerCooper @redrum last edited by

              @redrum Yes, I am using Map Creator.

              1 Reply Last reply Reply Quote 0
              • RogerCooper
                RogerCooper @redrum last edited by

                @redrum Any progress on figuring this out? Does anyone else receive this sort of error?

                C 1 Reply Last reply Reply Quote 0
                • C
                  Cernel Moderators @RogerCooper last edited by Cernel

                  @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).

                  RogerCooper 1 Reply Last reply Reply Quote 1
                  • RogerCooper
                    RogerCooper @Cernel last edited by

                    @Cernel That message is marking think that I need to cleanup my territory borders before setting centers.

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      Cernel Moderators @RogerCooper last edited by

                      @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?

                      RogerCooper 1 Reply Last reply Reply Quote 1
                      • RogerCooper
                        RogerCooper @Cernel last edited by

                        @Cernel Yes, I did

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          Cernel Moderators @RogerCooper last edited by

                          @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).

                          1 Reply Last reply Reply Quote 1
                          • 1 / 1
                          • First post
                            Last post
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums