All errors cleared, but now "Map Missing: Care to download?" Please help :)



  • Hey there. This is regularkid. Adam and I are working on a new map. We ran the map creator included with TripleA, and after extensive tinkering managed to get the map to load to the Player Selection screen with no errors. But now, when we click "Play," TripleA prompts us to download the map, stating:

    "Map missing: WW2 Total Victory, could not join game. Would you like to download the map now? Once the download completes, you may reconnect to this game."

    I wondered if this was because the map folder wasn't in a .zip format (this was never an issue with other maps i've tinkered with. but who knows). So I zipped the folder. But when I try to run it from the zipped folder, an error does appear, as shown below. We would hugely appreciate help troubleshooting this issue. Thanks! ```
    code_text

    Could not parse:jar:file:/Users/michaeljoseph/Documents/triplea/downloadedMaps/ww2_total_victory-master.zip!/__MACOSX/ww2_total_victory-master/map/games/._ww2_total_victory.xml error at line:1 column:1org.xml.sax.SAXParseException; systemId: jar:file:/Applications/TripleA_1.9.0.0.3453.app/Contents/java/app/bin/triplea.jar!/games/strategy/engine/xml/; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
    	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
    	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
    	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:150)
    	at games.strategy.engine.data.GameParser.getDocument(GameParser.java:279)
    	at games.strategy.engine.data.GameParser.parse(GameParser.java:88)
    	at games.strategy.engine.framework.ui.NewGameChooserEntry.<init>(NewGameChooserEntry.java:58)
    	at games.strategy.engine.framework.ui.NewGameChooserModel.createEntry(NewGameChooserModel.java:204)
    	at games.strategy.engine.framework.ui.NewGameChooserModel.addNewGameChooserEntry(NewGameChooserModel.java:176)
    	at games.strategy.engine.framework.ui.NewGameChooserModel.processZipEntry(NewGameChooserModel.java:128)
    	at games.strategy.engine.framework.ui.NewGameChooserModel.populateFromZip(NewGameChooserModel.java:103)
    	at games.strategy.engine.framework.ui.NewGameChooserModel.parseMapFiles(NewGameChooserModel.java:86)
    	at games.strategy.engine.framework.ui.NewGameChooserModel.<init>(NewGameChooserModel.java:44)
    	at games.strategy.engine.framework.ui.NewGameChooser.getNewGameChooserModel(NewGameChooser.java:198)
    	at games.strategy.engine.framework.ui.NewGameChooser.createComponents(NewGameChooser.java:53)
    	at games.strategy.engine.framework.ui.NewGameChooser.<init>(NewGameChooser.java:43)
    	at games.strategy.engine.framework.ui.NewGameChooser.chooseGame(NewGameChooser.java:101)
    	at games.strategy.engine.framework.startup.ui.GameSelectorPanel.selectGameFile(GameSelectorPanel.java:394)
    	at games.strategy.engine.framework.startup.ui.GameSelectorPanel.lambda$setupListeners$181(GameSelectorPanel.java:216)
    	at games.strategy.engine.framework.startup.ui.GameSelectorPanel$$Lambda$35/148996630.actionPerformed(Unknown Source)
    	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
    	at java.awt.Component.processMouseEvent(Component.java:6525)
    	at javax.swing.JComponent.processMouseEvent(JComponent.java:3322)
    	at java.awt.Component.processEvent(Component.java:6290)
    	at java.awt.Container.processEvent(Container.java:2234)
    	at java.awt.Component.dispatchEventImpl(Component.java:4881)
    	at java.awt.Container.dispatchEventImpl(Container.java:2292)
    	at java.awt.Component.dispatchEvent(Component.java:4703)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
    	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
    	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
    	at java.awt.Container.dispatchEventImpl(Container.java:2278)
    	at java.awt.Window.dispatchEventImpl(Window.java:2739)
    	at java.awt.Component.dispatchEvent(Component.java:4703)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:702)
    	at java.awt.EventQueue$3.run(EventQueue.java:696)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
    	at java.awt.EventQueue$4.run(EventQueue.java:724)
    	at java.awt.EventQueue$4.run(EventQueue.java:722)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:721)
    	at games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:360)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


  • Here is a dropbox link to the zip file in question (too big to attach): https://www.dropbox.com/s/o3vs8rb69va84tm/ww2_total_victory-master.zip?dl=0


  • Moderators Admin

    @Joe-G

    Look at line 3138, here you have:

    <property name="mapName" value="WW2 Total Victory" editable="false"/>
    

    Now the value here must correspond with the map-folder name (before the -master), that is

    <property name="mapName" value="ww2_total_victory" editable="false"/>
    


  • Ok. I've done that. Now when I press play, nothing happens. No message. No error. It just clicks back to the Player Selection screen. 😕


  • Moderators Admin

    @Joe-G
    I have replaced the edited XML in the "games" folder.
    In the downloadedMaps folder I have the uncompressed map:
    tv.PNG

    It starts perfectly fine here...

    Of course the zipped-version starts fine, too.


  • Admin

    @Joe-G Still got the problem?
    Make sure you only got 1 version of your map in your downloadedMaps dir. Also, try to load another map than the one you are working on. Then exit TripleA. Then start up up again and try to load your map.

    Many of the instances I have experienced with the map not loading up after I press play, is related to unit images file names. Be sure to go through all of them and see if any of them do not correspond with the names stated in the xml (like in unit list and unit attachments, basically everywhere). Some of them might accidentally have been given a “space” after the name and before the file type / surname.

    Also, go through your XML and look for typo mistakes … for example an extra unwanted “space”. You could try to do a search for the term (space)”
    A.k.a. a space bar followed by a “ sign.
    I just did a search in one of my maps and there is only 1 instance of this in <!DOCTYPE game SYSTEM "game.dtd">
    But I have seen that this was something that was wrong with my XML at some point.

    Small typos like this can prevent the map from starting. Sometimes a word is witten/copy-pasted twice by mistake, sometimes a back slash is missing. So try to comb through your map manually, with your eyes (yes it takes a long time).

    TIP: When you can start your map, save a copy and work on with new changes. Then you always have something to fall back on that works. Making maps is not easy, but is hard work 😛



  • @Frostion thanks. you guys rock. I got it working


Log in to reply