Help with hosting? Have tried everything I can think of



  • So, I keep trying to host a game with friends. I know everything I've done to set up is right, but I keep encountering the same problem every time I hit the "host networked game" button; apparently this is a problem with others as well. The game console pops up and gives me an error. It also freezes the program for anybody trying to join the game; I am certain I have configured port-forwarding correctly, and I can't figure this out. It's very frustrating.

    The console report looks like this:

    triplea.engine.version.bin:1.9
    INFO [AWT-EventQueue-0] ChatController -> Chatter:Grimalkinii port:3300 ip:2001:0:9d38:6ab8:2418:d77:3f57:fff4 is joining chat:games.strategy.engine.framework.ui.ServerStartup.CHAT_NAME
    SAXParseException: game: Test1, line: 190, column: 26, error: Element type "attatchmentList" must be declared.
    SAXParseException: game: Test1, line: 191, column: 155, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 205, column: 154, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 220, column: 157, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 228, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 235, column: 155, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 242, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 249, column: 155, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 257, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 264, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 271, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 278, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 286, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 293, column: 159, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 301, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 304, column: 154, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 310, column: 164, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 313, column: 166, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 318, column: 168, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 321, column: 164, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 324, column: 166, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 329, column: 166, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 333, column: 168, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 531, column: 8, error: The content of element type "game" must match "(info,loader,triplea?,diceSides?,map,resourceList?,playerList,unitList?,relationshipTypes?,territoryEffectList?,gamePlay,production?,technology?,attachmentList?,initialize?,propertyList?)".

    While I know this may just be on my end, some resolution would be wonderful. Furthermore, if I try to host a game in the "Play Online" lobby, I get an error like this, which is different:

    triplea.engine.version.bin:1.9
    java.lang.NullPointerException
    at games.strategy.engine.framework.startup.mc.ServerModel.gameDataChanged(ServerModel.java:172)
    at games.strategy.engine.framework.startup.mc.ServerModel.lambda$new$116(ServerModel.java:102)
    at java.util.Observable.notifyObservers(Unknown Source)
    at games.strategy.engine.framework.startup.mc.GameSelectorModel.notifyObs(GameSelectorModel.java:249)
    at games.strategy.engine.framework.startup.mc.GameSelectorModel.setGameData(GameSelectorModel.java:244)
    at games.strategy.engine.framework.startup.mc.GameSelectorModel.load(GameSelectorModel.java:76)
    at games.strategy.engine.framework.startup.mc.GameSelectorModel.loadDefaultGame(GameSelectorModel.java:321)
    at games.strategy.engine.framework.startup.mc.GameSelectorModel.lambda$loadDefaultGame$95(GameSelectorModel.java:267)
    at java.lang.Thread.run(Unknown Source)
    INFO [AWT-EventQueue-0] ChatController -> Chatter:Grimalkinii port:3300 ip:2001:0:9d38:6ab8:2418:d77:3f57:fff4 is joining chat:games.strategy.engine.framework.ui.ServerStartup.CHAT_NAME
    host:45.79.144.53 port:3304

    Note that I can join games in the "Play Online" lobby, but not host.


  • Donators Moderators Admin



  • Have done all of this to no avail. I am still having these problems, which is why I'm at a loss.


  • Donators Moderators Admin

    @Grimalkinii

    A couple ?

    first what engine are you using be specific ... Example current stable is 1.9.0.0.3635
    second what map?
    third a minor point but some ISP's require an additional fee to be accessible from the internet to host. Mine does.



  • @prastle I am using 1.9.0.0.3635, and so are those trying to connect to me.
    The map I am trying to host is Domination 1914 No Man's Land. I notice ANOTHER error also occurs on trying to enter the "select map" screen, which i will post below.
    I also know my ISP does not have a fee like this.

    triplea.engine.version.bin:1.9
    java.lang.IllegalStateException: No unit type attachment for:factory
    at games.strategy.triplea.attachments.UnitAttachment.get(UnitAttachment.java:54)
    at games.strategy.engine.data.GameParser.checkThatAllUnitsHaveAttachments(GameParser.java:1452)
    at games.strategy.engine.data.GameParser.parse(GameParser.java:168)
    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 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)SAXParseException: game: Test1, line: 190, column: 26, error: Element type "attatchmentList" must be declared.
    SAXParseException: game: Test1, line: 191, column: 155, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 205, column: 154, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 220, column: 157, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 228, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 235, column: 155, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 242, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 249, column: 155, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 257, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 264, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 271, column: 158, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 278, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 286, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 293, column: 159, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 301, column: 156, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 304, column: 154, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 310, column: 164, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 313, column: 166, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 318, column: 168, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 321, column: 164, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 324, column: 166, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 329, column: 166, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 333, column: 168, error: Element type "attatchment" must be declared.
    SAXParseException: game: Test1, line: 531, column: 8, error: The content of element type "game" must match "(info,loader,triplea?,diceSides?,map,resourceList?,playerList,unitList?,relationshipTypes?,territoryEffectList?,gamePlay,production?,technology?,attachmentList?,initialize?,propertyList?)".
    Could not parse:jar:file:/C:/Users/cody/triplea/downloadedMaps/map_making_tutorial_map.zip!/games/Test1.xml

    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:359)
    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)

  • Donators Moderators Admin

    @Grimalkinii can you try a different map? like revised and see if you can host
    ?

    Also see if you need a java update



  • @prastle I have fixed the errors; apparently I need to go into triplea's map folders and delete everything, then redownload the maps.
    I did update java as well, and it seems the errors no longer occur.

    As a general question, does the person joining my networked game need to have the same map selected on the Select Map screen to join my game?


  • Donators Moderators Admin

    @Grimalkinii that was my next question
    Have you checked to see if your maps need updating 🙂

    Hmm networked maybe live no.

    But you do both need to have the same stable engine and map version to launch live! Thus I would guess the same is needed in a networked game. I haven't played a networked game in hmm, omg, 9 years at least with triplea. Back then the maps came in the download.

    Also to note! With the new engine you do not have to delete. Just use the in game downloader and check for updates. If you need an update it overwites the old map file. Sadly it only checks itself on the first of the month. If you click ignore it doesnt check for another month. JFYI

    GLHF glad ya got it fixed