cannot load a map i created



  • ok so its my first time making a map. the process was very smooth but when i want to load the map in TripleA i get this:

    itjava.lang.NullPointerException

        at javax.swing.JTable.addColumn(Unknown Source) 
        at javax.swing.JTable.createDefaultColumnsFromModel(Unknown Source) 
        at javax.swing.JTable.tableChanged(Unknown Source) 
        at javax.swing.JTable.setModel(Unknown Source) 
        at javax.swing.JTable.<init>(Unknown Source) 
        at javax.swing.JTable.<init>(Unknown Source) 
        at games.strategy.triplea.ui.StatPanel$1.<init>(StatPanel.java:72) 
        at games.strategy.triplea.ui.StatPanel.initLayout(StatPanel.java:72) 
        at games.strategy.triplea.ui.StatPanel.<init>(StatPanel.java:64) 
        at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:328) 
        at games.strategy.triplea.TripleA$1.run(TripleA.java:142) 
        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) 
    

    i have no idea how to fix this and what this problem is about. please help

    thanks in advance


  • Admin

    @Idodoappo
    I have moved this topic to the category "Map Making - Discuss the technicalities of map making and XML editing". I hope we find an answer. 🙂


  • Admin

    @Idodoappo Can you post your game XML and/or the entire zip? That error most likely indicates you are missing defining a parameter in the game XML.



  • yeah... about this. i just checked the xml in the triplea map creator and it looks like it all screwed up i will try to do the xml again and i will tell you if it happens again.

    PS is there any reliable game editor for triplea 1.9?



  • @Idodoappo ok so now i made a xml but when i select the map on triplea (1.9)
    it gives me this:
    triplea.engine.version.bin:1.9
    Failed while attempting to check for a new Version
    java.net.UnknownHostException: raw.githubusercontent.com
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)
    at sun.security.ssl.BaseSSLSocketImpl.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at java.net.URL.openStream(Unknown Source)
    at games.strategy.engine.framework.EngineVersionProperties.getProperties(EngineVersionProperties.java:86)
    at games.strategy.engine.framework.EngineVersionProperties.<init>(EngineVersionProperties.java:35)
    at games.strategy.engine.framework.EngineVersionProperties.lambda$contactServerForEngineVersionProperties$73(EngineVersionProperties.java:64)
    at java.lang.Thread.run(Unknown Source)
    java.lang.IllegalArgumentException: Attachments: true is not a valid int valueCould not parse:file:/M:/TripleA_1.9.0.0.3453/maps/4chan/games/TumblrChan.xml

    at games.strategy.engine.data.DefaultAttachment.getInt(DefaultAttachment.java:46)
    at games.strategy.triplea.attachments.TerritoryAttachment.setVictoryCity(TerritoryAttachment.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at games.strategy.engine.data.GameParser.setValues(GameParser.java:1342)
    at games.strategy.engine.data.GameParser.parseAttachments(GameParser.java:1277)
    at games.strategy.engine.data.GameParser.parse(GameParser.java:156)
    at games.strategy.engine.framework.ui.NewGameChooserEntry.fullyParseGameData(NewGameChooserEntry.java:77)
    at games.strategy.engine.framework.startup.ui.GameSelectorPanel.selectGameFile(GameSelectorPanel.java:398)
    at games.strategy.engine.framework.startup.ui.GameSelectorPanel.lambda$setupListeners$181(GameSelectorPanel.java:216)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverButtonListener.java:124)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.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 games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:360)
    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)
    

    games.strategy.engine.data.GameParseException: MapName: file:/M:/TripleA_1.9.0.0.3453/maps/4chan/games/TumblrChan.xml, Error setting property:victoryCity cause:Attachments: true is not a valid int value
    at games.strategy.engine.data.GameParser.setValues(GameParser.java:1349)
    at games.strategy.engine.data.GameParser.parseAttachments(GameParser.java:1277)
    at games.strategy.engine.data.GameParser.parse(GameParser.java:156)
    at games.strategy.engine.framework.ui.NewGameChooserEntry.fullyParseGameData(NewGameChooserEntry.java:77)
    at games.strategy.engine.framework.startup.ui.GameSelectorPanel.selectGameFile(GameSelectorPanel.java:398)
    at games.strategy.engine.framework.startup.ui.GameSelectorPanel.lambda$setupListeners$181(GameSelectorPanel.java:216)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverButtonListener.java:124)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.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 games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:360)
    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)



  • PS thanks in advance ill post the xml if you need it


  • Admin

    @Idodoappo said in cannot load a map i created:

    games.strategy.engine.data.GameParseException: MapName: file:/M:/TripleA_1.9.0.0.3453/maps/4chan/games/TumblrChan.xml, Error setting property:victoryCity cause:Attachments: true is not a valid int value

    Here is the error: games.strategy.engine.data.GameParseException: MapName: file:/M:/TripleA_1.9.0.0.3453/maps/4chan/games/TumblrChan.xml, Error setting property:victoryCity cause:Attachments: true is not a valid int value

    It appears you are setting the "victoryCity" property to true instead of an int value which is invalid.

    From pact of steel 2 XML (https://github.com/triplea-maps/the_pact_of_steel/blob/master/map/games/pact_of_steel_2.xml😞
    victoryCity - values: a victory city is typically used for victory conditions. Is actually an integer, so you can set it to 0, or 1, or 2, or greater numbers. victoryCity uses an image located in the "misc" folder of a map called "vc.png", and the location is determined in a file called "vc.txt" in the map's root directory