TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Error in loading centers.txt

    Scheduled Pinned Locked Moved Map Making
    11 Posts 3 Posters 2.4k Views 3 Watching
    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.
    • RogerCooperR Offline
      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

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

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

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

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

          @redrum Guadacanal.zip

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

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

            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

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

              @redrum Yes, I am using Map Creator.

              1 Reply Last reply Reply Quote 0
              • RogerCooperR Offline
                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 Offline
                  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).

                  RogerCooperR 1 Reply Last reply Reply Quote 1
                  • RogerCooperR Offline
                    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 Offline
                      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?

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

                        @Cernel Yes, I did

                        C 1 Reply Last reply Reply Quote 0
                        • C Offline
                          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

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • First post
                            Last post
                          Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums