TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    cannot load a map i created

    Scheduled Pinned Locked Moved Map Making
    7 Posts 3 Posters 3.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      Idodoappo
      last edited by

      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

      redrumR 1 Reply Last reply Reply Quote 0
      • FrostionF Offline
        Frostion Admin
        last edited by Frostion

        @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. :slight_smile:

        Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

        1 Reply Last reply Reply Quote 0
        • redrumR Offline
          redrum Admin @Idodoappo
          last edited by

          @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.

          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

          1 Reply Last reply Reply Quote 0
          • I Offline
            Idodoappo
            last edited by Idodoappo

            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?

            I 1 Reply Last reply Reply Quote 0
            • I Offline
              Idodoappo @Idodoappo
              last edited by Idodoappo

              @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)

              1 Reply Last reply Reply Quote 0
              • I Offline
                Idodoappo
                last edited by Idodoappo

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

                1 Reply Last reply Reply Quote 0
                • redrumR Offline
                  redrum Admin
                  last edited by

                  @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

                  TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • 1 / 1
                  • First post
                    Last post
                  Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums