Need Some Advice...
-
Hello,
I've been experiencing an issue with getting my custom map to launch in both a local game and a networked game with bots. I have hunted down what I believe to be all the bugs in my xml, yet whenever I go to press play in a local lobby, TripleA sort of blinks and then does nothing. In a networked game with bots, it will give me an error message along these lines:
triplea.engine.version.bin:1.9
Loading map: east_vs_west, from: C:\Users\Will & Yen\Documents\Axis and Allies\Triplea Downloaded Maps\triplea\downloadedMaps\east_vs_west-master.zip
Loading resources from the following paths: [C:\Users\Will & Yen\Documents\Axis and Allies\Triplea Downloaded Maps\triplea\downloadedMaps\east_vs_west-master.zip, C:\Users\Will & Yen\Documents\Axis and Allies\TripleA\assets]
Loading map: east_vs_west, from: C:\Users\Will & Yen\Documents\Axis and Allies\Triplea Downloaded Maps\triplea\downloadedMaps\east_vs_west-master.zip
Loading resources from the following paths: [C:\Users\Will & Yen\Documents\Axis and Allies\Triplea Downloaded Maps\triplea\downloadedMaps\east_vs_west-master.zip, C:\Users\Will & Yen\Documents\Axis and Allies\TripleA\assets]
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(Unknown Source)
at java.awt.EventQueue.invokeAndWait(Unknown Source)
at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
at games.strategy.triplea.TripleA.startGame(TripleA.java:122)
at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:49)
at games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$150(AbstractLauncher.java:51)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: resource not found:smallMap.jpegThe key note here being "Caused by: java.lang.IllegalStateException: resource not found:smallMap.jpeg", which is strange because I have a 250 pixel wide shrunken JPEG image of my map in the main folder. My guess is that it isn't quite formatted right, but I've compared it to working community maps, and I haven't found the issue yet.
For reference, here's my map/game:
https://drive.google.com/open?id=0B7zDFzKBWgNiOXREVFJRQ0xOb1k
Anybody have any thoughts? I'm lost.
-
@invincible-egg Your small map is a png image instead of a Jpeg. (At least in the version you made available in the other thread)
-
@invincible-egg You need to rename the smallMap.JPEG -> smallMap.jpeg. TripleA doesn't like the all caps image file extension.
Then you will see this error:
No data of type centers for territory:Papau New GuineaWhich means you are missing Papau New Guinea from the centers.txt and it also appears you are missing it and "SZ Bay of Biscay and The Channel" from a number of the files. So not sure if you want those territories or not. I'll assume you don't and the easy solution is just remove all references of "Papau New Guinea" and "SZ Bay of Biscay and The Channel" from evw.xml.
Then you'll see this error:
games.strategy.triplea.ui.mapdata.MapData.getPlayerColor(MapData.java:448)This means you don't have player colors defined properly. You need to edit the map.properties nations names to match those in the evw.xml (remove the underscores).
Then you'll see this error:
Image Not Found:flags/WarsawPact_small.pngYou need to make sure to have flags for each of the nations properly named (no underscores).
Here is a working zip: https://drive.google.com/open?id=0B_IYMG8ratY0R0RGZDVmRC1iYUk
-
Nothing like ruining the rest of the surprises.
-
Ha! That's the stuff.
It works. Thanks, guys.