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

    How to modify borders on an existing map

    Scheduled Pinned Locked Moved Map Making
    108 Posts 6 Posters 47.8k Views 5 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.
    • Davor PavlićD Offline
      Davor Pavlić @TheDog
      last edited by

      @thedog

      I see, alright ill get into it once i have all the outlines

      1 Reply Last reply Reply Quote 1
      • Black_ElkB Offline
        Black_Elk @Davor Pavlić
        last edited by Black_Elk

        Sweet! Glad to hear it worked

        Haha yeah so for a general how to guide, I know at various points people had planned to put some stuff together, but I don't know if it materialized? Maybe there's an older thread Lafayette or Cernel or somebody might recall. I'm not sure that the process is all that well documented though, or least not from the perspective of like first step, or step by step. Or like from the perspective of being kinda green with the whole thing.

        I've helped to make a few maps, but that part is always a bit like a magic trick or something, whenever I see it go from an image to the actual game lol.

        Maybe we could write a guide as we figure it out I guess. I really only know how to do a few things, and I almost got those down pat but other stuff has me kinda out of my depth. I was hella impressed with Frostion and Hepps just banging out maps, so all their threads are probably worth checking out, but they're at a pretty high level. The Shogun map is another cool one that has a lot of fun stuff in it. I've been meaning to start up another campaign there just to take the edge off haha. Iron War is a fun map though, like I can definitely get into this one again. Frostion put a lot into it, but then I think got a little burnt on WW2 and turned his attention more to Dragon War and building out the fantasy materials and sci fi materials. I still think this one is pretty top shelf though. Like it's probably my favorite tripleA map overall for solo entertainment value, so you know I'll show out lol

        Oh bam there ya go! the Dog beat me to it haha. Yeah the Pact of Steel game has a ton of info, it's sorta like the main resource I think for learning how to tango with xml type stuff in tripleA.

        1 Reply Last reply Reply Quote 2
        • Davor PavlićD Offline
          Davor Pavlić
          last edited by

          Oh man this XML thing seems tough to crack.

          I've copied my baseTile map so i can go back to it if i mess something up, and on the new copied map i've drawn borders for splitting the TTs, like so :

          28625246-0f06-4b07-9012-be96cdad0d45-image.png

          I haven't touched anything else for fear of not messing it up lol. So i didn't do centers and polygons for this updated map yet, and i think i cant do it anyway because i need to edit the XML first and add the territories.

          I took a look at the documentation (https://github.com/triplea-game/triplea/blob/master/docs/map-making/tutorial/creating-custom-map-xml.md), from my understanding, in order to split Italy i could rename 'Italy' into 'North Italy', and add another TT and call it 'South Italy', like so :

          <territory id="South Italy"/>

          Is that right?

          Then it seems i need to make connections to other TTs that it is bordering, which i could do like this i guess :

          <connection t1="North Italy" t2="South Italy"/>

          I'm still scared to attempt this to not make a huge mess hahah

          TheDogT 1 Reply Last reply Reply Quote 0
          • TheDogT Online
            TheDog @Davor Pavlić
            last edited by TheDog

            @davor-pavlić
            These files are a set, they must all match the changes you make.
            centers.txt
            place.txt
            polygons.txt
            MapName.xml

            These files can be edited manually, if you work out the new entries.
            centers.txt
            place.txt
            MapName.xml (Yes to Northern & Southern Italy)

            However polygons.txt is too complicated and should be generated by the map tools.

            Notepad++ will aid you as its a good text editor.
            https://notepad-plus-plus.org/downloads/

            https://forums.triplea-game.org/tags/thedog
            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

            Davor PavlićD 1 Reply Last reply Reply Quote 2
            • Davor PavlićD Offline
              Davor Pavlić @TheDog
              last edited by Davor Pavlić

              @thedog

              7cada1b5-cc9f-40a1-b18e-9fe8f0bb4108-image.png

              I keep getting this whenever i attempt to run Automatic Placement Finder. I've removed italy from XML and added 'Northern Italy' and 'Southern Italy', included them in XML, connected them to neighboring territories, and i still get this.

              Note : I started getting this as soon as 'Italy' was removed from centers, so im confident i didn't mess anything up in XML editing. It keeps looking for Italy and showing up as error.

              8cbc1e10-ccb8-4471-a37f-5451526c87e8-image.png

              Possible solutions?

              TheDogT 1 Reply Last reply Reply Quote 0
              • TheDogT Online
                TheDog @Davor Pavlić
                last edited by

                @davor-pavlić
                Do you copies of the files you need?

                Then open these 4 files in Notepad++
                centers.txt
                place.txt
                polygons.txt
                MapName.xml

                Search them for just Italy and remove the line with it on, as Italy does not exist anymore.

                Try running Automatic Placement Finder, assuming you have run Polygon grabber.

                https://forums.triplea-game.org/tags/thedog
                https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                Davor PavlićD 1 Reply Last reply Reply Quote 2
                • Davor PavlićD Offline
                  Davor Pavlić @TheDog
                  last edited by

                  @thedog

                  Okay that took a while. I deleted Italy, East Prussia and Sakhalin lines from centers.txt, polygons.txt, places.txt and ironwar.xml.

                  I managed to do the new centers and polygons, finally Automatic Placement Finder ran, and i also deleted the previous baseTiles and replaced them with the new map.

                  I tried to give it a go in-game, and it doesn't want to run. This is what i get this time.

                  3f920154-09ab-49b0-a1ca-b805b6dde482-image.png

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    beelee @Davor Pavlić
                    last edited by

                    @davor-pavlić you might try saving all your current triplea downloadmaps saved games, then delete triplea and install again and just put all the new stuff in.

                    Sometimes stuff hides and triplea keeps looking for it. i don't fully understand it but worth a shot

                    TheDogT 1 Reply Last reply Reply Quote 0
                    • TheDogT Online
                      TheDog @beelee
                      last edited by

                      Try this, I have not read it.
                      https://forums.triplea-game.org/topic/438/solved-game-fails-to-start-no-data-of-type-centers-for-territory

                      https://forums.triplea-game.org/tags/thedog
                      https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                      B 1 Reply Last reply Reply Quote 1
                      • Davor PavlićD Offline
                        Davor Pavlić
                        last edited by

                        Nevermind, i didnt delete everything from XML, there are still loads of stuff in there such as unit placements and some attachments that contain ITALY, EAST PRUSSIA and SAKHALIN. The game probably tries to place units in those territories but there aren't any territories named like that.

                        Davor PavlićD 1 Reply Last reply Reply Quote 1
                        • Davor PavlićD Offline
                          Davor Pavlić @Davor Pavlić
                          last edited by

                          @davor-pavlić

                          Nope, didnt work, no idea what i am missing.

                          I searched the keywords in the XML, deleted everything, but the game still keeps looking for those territories.

                          Can i send someone the whole folder to check it out? I have no idea what i am missing.

                          1 Reply Last reply Reply Quote 1
                          • B Offline
                            beelee @TheDog
                            last edited by

                            @thedog said in How to modify borders on an existing map:

                            Try this, I have not read it.
                            https://forums.triplea-game.org/topic/438/solved-game-fails-to-start-no-data-of-type-centers-for-territory

                            It seems a naming error which i think 2.6 does different now. At any rate, looks as if Davor still deleting some stuff

                            Davor PavlićD 1 Reply Last reply Reply Quote 1
                            • Davor PavlićD Offline
                              Davor Pavlić @beelee
                              last edited by

                              @beelee

                              I took a look at that thread and tbh i cant find any naming issue, especially since it worked
                              until now and i didnt rename anything.

                              I deleted the lines in XML which mentioned Italy, East Prussia and Sakhalin because those territory names no longer exist on my map. For the lines that add units and other attachmebts i changed every single one that again mentioned those territories, with my logic being that the map isnt running because the map keeps looking and placing stuff on non-existant territory.

                              Maybe i missed something somewhere, i dont know.

                              I have a backup copy of Iron War files so its not a big deal if i mess something up big time, but yeah, ill see what i can do tomorrow.

                              TheDogT B 2 Replies Last reply Reply Quote 2
                              • TheDogT Online
                                TheDog @Davor Pavlić
                                last edited by

                                @davor-pavlić
                                Zip up your whole wip folder and I will take a look if I have time tomorrow morning otherwise it will be Thursday morning.

                                https://forums.triplea-game.org/tags/thedog
                                https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                Davor PavlićD 2 Replies Last reply Reply Quote 2
                                • B Offline
                                  beelee @Davor Pavlić
                                  last edited by

                                  @davor-pavlić yea sorry meant the referenced thread was about a naming error.

                                  It seems triplea is still looking for something you've removed. I've had that happen with other things in the past

                                  1 Reply Last reply Reply Quote 1
                                  • Davor PavlićD Offline
                                    Davor Pavlić @TheDog
                                    last edited by

                                    @thedog

                                    Alright ill send it tomorrow when i find the time

                                    1 Reply Last reply Reply Quote 0
                                    • Davor PavlićD Offline
                                      Davor Pavlić @TheDog
                                      last edited by

                                      @thedog

                                      Here's the folder
                                      https://drive.google.com/drive/folders/1d4lOQ2CbHLe_YhN-n6Gy3XuAaWHuE6lX?usp=share_link

                                      TheDogT 1 Reply Last reply Reply Quote 1
                                      • TheDogT Online
                                        TheDog @Davor Pavlić
                                        last edited by TheDog

                                        @davor-pavlić
                                        You need to change Croatia to Yugoslavia in these files;
                                        centers.txt
                                        place.txt
                                        polygons.txt
                                        pu_place.txt

                                        Add Northern & Southern Italy to pu_place.txt

                                        Change Italy to Southern Italy? in vc.txt

                                        In the xml
                                        5157 Change Italy to Northern Italy
                                        5617 Change Italy to Northern Italy
                                        10021 Change Italy to Northern Italy
                                        17730 Change Italy to Northern Italy

                                        There are more but I will let you sort those out.

                                        Post the file set again if you get stuck.

                                        https://forums.triplea-game.org/tags/thedog
                                        https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                        Davor PavlićD 1 Reply Last reply Reply Quote 1
                                        • Davor PavlićD Offline
                                          Davor Pavlić @TheDog
                                          last edited by

                                          @thedog

                                          Uuuu i've missed a lot!

                                          I done it now like you said, yeah i missed a lot of stuff lol.

                                          Unfortunately it still shows the same error message 😞

                                          I just triple checked all txt files and xml with a search function, didn't find a single 'Italy, 'East Prussia', 'Croatia' or 'Sakhalin', everything is changed into appropriate new territory names. Of course except the Italy player, i didn't rename the player. I also fixed some border connections because i noticed i didn't have Southern Italy connected to any territories, im not sure if that impacts running the map but i've fixed that, and it still doesnt' run the map.

                                          My lack of experience shows but im doing my best. I think it will take me a while to understand all this regarding the xml editing but once i get it down ill be good to go.

                                          Here i uploaded a folder again, whenever you have time check it out and let me know what i should do
                                          https://drive.google.com/drive/folders/1d4lOQ2CbHLe_YhN-n6Gy3XuAaWHuE6lX?usp=share_link

                                          TheDogT 1 Reply Last reply Reply Quote 1
                                          • TheDogT Online
                                            TheDog @Davor Pavlić
                                            last edited by TheDog

                                            @davor-pavlić
                                            Hey, you are new to this and it is a steep learning curve, keep going, and will become a pro like me. 🙄

                                            xml coding is complicated, there are so many inter linking elements to it.

                                            Search for the hi-lighted text below, the Italy is part of a condition and trigger
                                            line 7161is a Territory (not player/nation) so needs adding a Northern or Southern prefix.
                                            directPresenceTerritories" value="Italy
                                            The above is paired with line 10023

                                            e9c6606d-310e-46a6-a02e-d6e848b4bcb4-image.png

                                            There will probably be more errors like this.

                                            https://forums.triplea-game.org/tags/thedog
                                            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

                                            Davor PavlićD 2 Replies 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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 1 / 6
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums