Map Making Q&A
-
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.
-
TripleA game can't find the flags.
@beelee had the answer, and then @Hepps had a slightly prettier version of the same thing here. -
The POS xml tutorial says that not staying with 6 sided dice can cause issues.
@Hepps answered this one for me here. -
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!
-
-
@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.
-
@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
-
Not sure. definitely not finding the images. They are capitalized correctly with the underscore in place of the space?
-
@Hepps Assuming this is correct. This is a copy paste of it's name.
Mexicans_small.png
-
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?
-
@Hepps I did rename it, but i might not have done everything correctly. I will give that a check.
-
@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"/> -
@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
-
@ff03k64 So just to clarify for you... check these four things...
Map Folder...
Games folder...
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.
-
YEAH, Thanks for the help. Should I keep asking other questions here, or make new threads?
-
@ff03k64 Maybe just remame the thread to General Map Making Questions
-
@Hepps I am proud of myself, I figured out my next issue on my own!
-
@Hepps done title changed
-
Next Question, changing names of territories. Thanks!
I think i can figure it out, but would rather not break anything yet.
-
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!
-
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?
-
@ff03k64 Not in a simple way. But it is possible.
-
@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.
-
@ff03k64 In theory that would work. But then only issue there is you would only ever gain experience as an attacker.