need help with error while loading my map
-
It has been a few days since I have worked on this, so I am not sure what I did to break it.
Sep 27, 2019 9:16:49 PM games.strategy.engine.framework.startup.launcher.LocalLauncher loadGame SEVERE: Failed to start game java.lang.IllegalStateException: Error in resource loading. Unable to load expected resource: polygons.txt, the error is that either we did not find the correct path to load. Check the resource loader to make sure the map zip or dir was added. Failing that, the path in this error message should be available relative to the map folder, or relative to the root of the map zip at games.strategy.triplea.ui.mapdata.MapData.<init>(MapData.java:152) at games.strategy.triplea.ui.HeadedUiContext.internalSetMapDir(HeadedUiContext.java:79) at games.strategy.triplea.ui.AbstractUiContext.setDefaultMapDir(AbstractUiContext.java:107) at games.strategy.triplea.ui.TripleAFrame.create(TripleAFrame.java:232) at games.strategy.triplea.TripleA.startGame(TripleA.java:105) at games.strategy.engine.framework.startup.launcher.LocalLauncher.loadGame(LocalLauncher.java:60) at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:39) at games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$0(AbstractLauncher.java:51) at java.lang.Thread.run(Unknown Source)
-
@ff03k64 Not much to say beside what that error tells you already:
Unable to load expected resource: polygons.txt, the error is that either we did not find the correct path to load. Check the resource loader to make sure the map zip or dir was added. Failing that, the path in this error message should be available relative to the map folder, or relative to the root of the map zip
Inside the map folder your game is calling (to supply the original skin), there should be a "polygons.txt" file that needs to be called.
-
@Cernel I think i have the file structure right. It looks the same as everything else. What actually calls for the polygons.txt file? Did i maybe misspell something in my xml?
-
@ff03k64 Beside program codes, there is nothing that calls "polygons". Polygons are read by the program if they are readable and in the right place inside the map folder that the game is calling, that is determined by what pos2 tells you:
https://github.com/triplea-maps/the_pact_of_steel/blob/master/map/games/pact_of_steel_2.xml<!-- Map Name: also used for map utils when asked (MUST exactly match the folder or zip name of your map (do not include the .zip of course). May point to another map folder if you are making a mod of that map) --> <property name="mapName" value="the_pact_of_steel" editable="false"> <string/> </property>
-
@ff03k64 Did you overcome the polygon problem? It is an essential file as it determines all the territory borders/boundaries of the map.
-
@Frostion I think so, i think i had an extra level in my file structure. when i look at some, i see big_world-master, and then another one inside that. I think i just need the one though. Having flag issues again, so i think that means i am past the polygons issue.
Thanks!
-
Next error message
Sep 29, 2019 4:44:29 PM games.strategy.engine.data.GameParser parseMapProperties SEVERE: SAXParseException: game: XCOM, line: 3155, column: 8, error: An element with the identifier "XCOM" must appear in the document.
Edit: Nevermind, found it!