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

    Map Making Q&A

    Scheduled Pinned Locked Moved Map Making
    87 Posts 12 Posters 47.2k Views 11 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.
    • F Offline
      ff03k64
      last edited by ff03k64

      I am making a new map with countries that apparently haven't been in TripleA before. I got an error message that said it couldn't find the Countryname_small.png flag. I borrowed the neutral flag just so i could test stuff, but it still wouldn't work. Eventually i put the flag in the main TripleA flag folder, and that fixed it.

      Am I doing something wrong, or will TripleA automatically use the default TripleA flags, even if I have different ones in my folder?

      Edit: I am putting at least some of the questions and answers here. The wiki is another good place to look.

      1. TripleA game can't find the flags.
        @beelee had the answer, and then @Hepps had a slightly prettier version of the same thing here.

      2. The POS xml tutorial says that not staying with 6 sided dice can cause issues.
        @Hepps answered this one for me here.

      3. From another thread, "Where is a good place to find some assets for the map I am making/editing?"
        Map maker assets, or just check the pinned thread above this one like I failed to do!

      HeppsH 1 Reply Last reply Reply Quote 0
      • HeppsH Offline
        Hepps Moderators @ff03k64
        last edited by Hepps

        @ff03k64 It checks the map folder first and if the image is not present it will then check the main Triple A assets.

        Odds are something was spelled wrong or the folder was named wrong.

        Without seeing what you had... hard to tell what happened.

        "A joyous heart sours with the burden of expectation"
        Hepster

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          ff03k64 @Hepps
          last edited by ff03k64

          @Hepps I am guessing the folder is named right, because it was only my new countries that had issues. And I didn't rename them when I put them in the main game folder, I just copied them directly. I can probably get the error message again by just deleting them from the main folder again if you give me a few minutes.

          Aug 30, 2019 10:58:58 PM org.triplea.common.util.concurrent.CompletableFutureUtils lambda$logExceptionWhenComplete$0
          SEVERE: Failed to load small flag icon for PlayerID named:Mexicans
          java.util.concurrent.CompletionException: java.lang.IllegalStateException: Image Not Found:flags/Mexicans_small.png
          	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
          	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
          	at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
          	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)
          	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
          	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
          	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
          	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
          Caused by: java.lang.IllegalStateException: Image Not Found:flags/Mexicans_small.png
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:35)
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:27)
          	at games.strategy.triplea.image.FlagIconImageFactory.getSmallFlag(FlagIconImageFactory.java:22)
          	at games.strategy.triplea.ui.CommentPanel.lambda$createComponents$0(CommentPanel.java:102)
          	... 6 more
          
          Aug 30, 2019 10:58:58 PM games.strategy.engine.framework.startup.launcher.LocalLauncher loadGame
          SEVERE: Failed to start game
          java.lang.IllegalStateException: Image Not Found:flags/Mexicans_small.png
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:35)
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:27)
          	at games.strategy.triplea.image.FlagIconImageFactory.getSmallFlag(FlagIconImageFactory.java:22)
          	at games.strategy.triplea.ui.StatPanel.getIcon(StatPanel.java:108)
          	at games.strategy.triplea.ui.StatPanel.fillPlayerIcons(StatPanel.java:126)
          	at games.strategy.triplea.ui.StatPanel.<init>(StatPanel.java:58)
          	at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:391)
          	at games.strategy.triplea.ui.TripleAFrame.lambda$create$0(TripleAFrame.java:237)
          	at games.strategy.ui.SwingAction.lambda$invokeAndWaitResult$1(SwingAction.java:114)
          	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
          	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
          	at java.awt.EventQueue.access$500(Unknown Source)
          	at java.awt.EventQueue$3.run(Unknown Source)
          	at java.awt.EventQueue$3.run(Unknown Source)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
          	at java.awt.EventQueue.dispatchEvent(Unknown Source)
          	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          	at java.awt.EventDispatchThread.run(Unknown Source)
          
          Aug 30, 2019 10:58:58 PM org.triplea.common.util.concurrent.CompletableFutureUtils lambda$logExceptionWhenComplete$0
          SEVERE: Failed to load small flag icon for PlayerID named:Brazilians
          java.util.concurrent.CompletionException: java.lang.IllegalStateException: Image Not Found:flags/Brazilians_small.png
          	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
          	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
          	at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
          	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)
          	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
          	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
          	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
          	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
          Caused by: java.lang.IllegalStateException: Image Not Found:flags/Brazilians_small.png
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:35)
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:27)
          	at games.strategy.triplea.image.FlagIconImageFactory.getSmallFlag(FlagIconImageFactory.java:22)
          	at games.strategy.triplea.ui.CommentPanel.lambda$createComponents$0(CommentPanel.java:102)
          	... 6 more
          
          Aug 30, 2019 10:58:58 PM org.triplea.common.util.concurrent.CompletableFutureUtils lambda$logExceptionWhenComplete$0
          SEVERE: Failed to load small flag icon for PlayerID named:Argentinians
          java.util.concurrent.CompletionException: java.lang.IllegalStateException: Image Not Found:flags/Argentinians_small.png
          	at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
          	at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
          	at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
          	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)
          	at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
          	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
          	at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
          	at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
          Caused by: java.lang.IllegalStateException: Image Not Found:flags/Argentinians_small.png
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:35)
          	at games.strategy.triplea.image.ImageFactory.getImage(ImageFactory.java:27)
          	at games.strategy.triplea.image.FlagIconImageFactory.getSmallFlag(FlagIconImageFactory.java:22)
          	at games.strategy.triplea.ui.CommentPanel.lambda$createComponents$0(CommentPanel.java:102)
          	... 6 more
          
          
          
          1 Reply Last reply Reply Quote 0
          • HeppsH Offline
            Hepps Moderators
            last edited by

            Not sure. definitely not finding the images. They are capitalized correctly with the underscore in place of the space?

            "A joyous heart sours with the burden of expectation"
            Hepster

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              ff03k64 @Hepps
              last edited by

              @Hepps Assuming this is correct. This is a copy paste of it's name.

              Mexicans_small.png

              1 Reply Last reply Reply Quote 0
              • HeppsH Offline
                Hepps Moderators
                last edited by

                I think I know why

                Did you rename your Mod in the XML? or did you just add stuff to the XML but left it named as it originally was?

                "A joyous heart sours with the burden of expectation"
                Hepster

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  ff03k64 @Hepps
                  last edited by

                  @Hepps I did rename it, but i might not have done everything correctly. I will give that a check.

                  F 1 Reply Last reply Reply Quote 0
                  • F Offline
                    ff03k64 @ff03k64
                    last edited by

                    @Hepps How does capitalization affect things? My folder was renamed, but it was all caps, so i changed that. I had already renamed the xml. I had also changed the mod name in the 7th line or so in the info tag. Does capitalization of that matter?

                    folder is xcom-master
                    file is xcom.xml
                    <info name="xcom" version="0.1"/>

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

                      @ff03k64
                      did you change the "mapName" to match the xml and folder ?

                      <property name="mapName" value="global_40_house_rules" editable="false"/>
                      <property name="notes">

                      I think the mapName part needs to be in lower case even if you have some upper case in your xml name. They need to be spelled the same though.

                      I have the xml named "Global_40_House_Rules"

                      The info name and version shouldn't matter. They should be whatever you want. The only other thing I can see is the "-master" on the end of the folder. Pretty sure that's just a github thing and shouldn't matter either. I guess you could always 86 it and see what happens though

                      1 Reply Last reply Reply Quote 0
                      • HeppsH Offline
                        Hepps Moderators
                        last edited by Hepps

                        @ff03k64 So just to clarify for you... check these four things...

                        Map Folder...

                        Map folder.png

                        Games folder...

                        XML name.png

                        Start of the XML...

                        <?xml version="1.0"?>
                        <!DOCTYPE game SYSTEM "game.dtd">
                        <game>
                        <info name="Power of Politics 1914" version="0.1.0"/>
                        <triplea minimumVersion="1.9"/>

                        End of the XML...

                        <property name="mapName" value="power_of_politics_1914" editable="false">
                        <string/>
                        </property>

                        All of these things will ensure the map functions properly and that the stuff you have inside the Map Folder are drawn from there by the engine to populate the game itself when you launch it.

                        My suspicion is that one of these is still named after the original map... thus the engine is looking for the needed resources (flag images in this case) in the folders for that name. When it can't find them it then searches the engine resources... thus why it works when you move the flag images into the engine folders.

                        Hopefully that helps.

                        "A joyous heart sours with the burden of expectation"
                        Hepster

                        1 Reply Last reply Reply Quote 1
                        • F Offline
                          ff03k64
                          last edited by

                          YEAH, Thanks for the help. Should I keep asking other questions here, or make new threads?

                          HeppsH 1 Reply Last reply Reply Quote 0
                          • HeppsH Offline
                            Hepps Moderators @ff03k64
                            last edited by

                            @ff03k64 Maybe just remame the thread to General Map Making Questions

                            "A joyous heart sours with the burden of expectation"
                            Hepster

                            F prastleP C 3 Replies Last reply Reply Quote 0
                            • F Offline
                              ff03k64 @Hepps
                              last edited by ff03k64

                              @Hepps I am proud of myself, I figured out my next issue on my own!

                              1 Reply Last reply Reply Quote 1
                              • prastleP Offline
                                prastle Moderators Admin @Hepps
                                last edited by

                                @Hepps done title changed 🙂

                                If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  ff03k64
                                  last edited by

                                  Next Question, changing names of territories. Thanks!

                                  I think i can figure it out, but would rather not break anything yet.

                                  1 Reply Last reply Reply Quote 0
                                  • F Offline
                                    ff03k64
                                    last edited by

                                    The Pact of Steel xml says that dice with more than 6 sides can "Setting diceSides to a number other than 6 can result in unexpected behavior."

                                    I am just wondering what this means. Thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • F Offline
                                      ff03k64
                                      last edited by

                                      I don't know if this would be a general question, or if i should make a new thread for it, but is there anyway to simulate promotions of units?

                                      HeppsH 1 Reply Last reply Reply Quote 0
                                      • HeppsH Offline
                                        Hepps Moderators @ff03k64
                                        last edited by

                                        @ff03k64 Not in a simple way. But it is possible.

                                        "A joyous heart sours with the burden of expectation"
                                        Hepster

                                        F 1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          ff03k64 @Hepps
                                          last edited by

                                          @Hepps I had a convoluted thought on a way to do it. If there is a fight, the enemies change into experience (i think i saw a map where castles turned into castle rubble), which would behave like a capturable material, and then you would consume that and a unit to make a more advanced unit. But that seems a bit to complicated for me, if it is even possible. Plus my goal would be to have it also have it die at the end of your turn so it could only get used by units in the fight.

                                          HeppsH 1 Reply Last reply Reply Quote 3
                                          • HeppsH Offline
                                            Hepps Moderators @ff03k64
                                            last edited by

                                            @ff03k64 In theory that would work. But then only issue there is you would only ever gain experience as an attacker.

                                            "A joyous heart sours with the burden of expectation"
                                            Hepster

                                            prastleP 1 Reply Last reply Reply Quote 0

                                            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
                                            • 4 / 5
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums