Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Error When Taking Other Faction's Capital

    Map Making
    1
    2
    173
    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.
    • Joe G
      Joe G last edited by

      Hey all. Again seeking help with the new map. The issue now is this: I can load the game and play just fine, but when I take another country's capital, I get this error ("there is no player attachment for the French with the name:playerattachment". The same error appears for the other countries capitals. Any idea what might be causing this? (I have attached a dropbox link to the zip file containing the map: https://www.dropbox.com/s/dz6msdqepulppzl/ww2_total_victory-master.zip?dl=0)

      Thanks again for all your help.

      May 19, 2020 5:41:34 AM games.strategy.engine.framework.ui.GameChooserModel createGameChooserEntry
      SEVERE: 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
      games.strategy.engine.data.GameParseException: map name: 'jar:file:/Users/michaeljoseph/Documents/triplea/downloadedMaps/ww2_total_victory-master.zip!/__MACOSX/ww2_total_victory-master/map/games/._ww2_total_victory.xml', game name: '<unknown>', failed to parse XML document
      at games.strategy.engine.data.GameParser.newGameParseException(GameParser.java:108)
      at games.strategy.engine.data.GameParser.parseDom(GameParser.java:136)
      at games.strategy.engine.data.GameParser.parseShallow(GameParser.java:127)
      at games.strategy.engine.data.GameParser.parseShallow(GameParser.java:123)
      at games.strategy.engine.framework.ui.GameChooserEntry.<init>(GameChooserEntry.java:36)
      at games.strategy.engine.framework.ui.GameChooserModel.createEntry(GameChooserModel.java:168)
      at games.strategy.engine.framework.ui.GameChooserModel.createGameChooserEntry(GameChooserModel.java:147)
      at games.strategy.engine.framework.ui.GameChooserModel.processZipEntry(GameChooserModel.java:105)
      at games.strategy.engine.framework.ui.GameChooserModel.populateFromZip(GameChooserModel.java:80)
      at games.strategy.engine.framework.ui.GameChooserModel.lambda$parseMapFiles$0(GameChooserModel.java:64)
      at games.strategy.engine.framework.ui.GameChooserModel$$Lambda$1142/356080361.accept(Unknown Source)
      at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
      at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512)
      at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
      at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
      at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
      at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:902)
      at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1689)
      at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1644)
      at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
      Caused by: org.xml.sax.SAXParseException; systemId: jar:file:/Applications/TripleA.app/Contents/java/app/bin/triplea-game-headed-1.9.0.0.13066-all.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:323)
      at games.strategy.engine.data.GameParser.parseDom(GameParser.java:134)
      ... 19 more

      May 19, 2020 5:42:41 AM games.strategy.engine.framework.GameRunner lambda$start$0
      SEVERE: No player attachment for:French with name:playerAttachment
      java.lang.IllegalStateException: No player attachment for:French with name:playerAttachment
      at games.strategy.triplea.attachments.PlayerAttachment.get(PlayerAttachment.java:43)
      at games.strategy.triplea.attachments.TriggerAttachment.triggerPlayerPropertyChange(TriggerAttachment.java:1427)
      at games.strategy.triplea.attachments.TriggerAttachment.fireTriggers(TriggerAttachment.java:229)
      at games.strategy.triplea.attachments.TriggerAttachment.collectAndFireTriggers(TriggerAttachment.java:175)
      at games.strategy.triplea.delegate.BaseTripleADelegate.triggerWhenTriggerAttachments(BaseTripleADelegate.java:82)
      at games.strategy.triplea.delegate.BaseTripleADelegate.end(BaseTripleADelegate.java:51)
      at games.strategy.triplea.delegate.BattleDelegate.end(BattleDelegate.java:126)
      at games.strategy.engine.framework.ServerGame.endStep(ServerGame.java:462)
      at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:434)
      at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:290)
      at games.strategy.engine.framework.startup.launcher.LocalLauncher$$Lambda$1367/1275633852.accept(Unknown Source)
      at java.util.Optional.ifPresent(Optional.java:159)
      at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:41)
      at games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$0(AbstractLauncher.java:51)
      at games.strategy.engine.framework.startup.launcher.AbstractLauncher$$Lambda$1198/477550359.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:745)

      Joe G 1 Reply Last reply Reply Quote 0
      • Joe G
        Joe G @Joe G last edited by

        @Joe-G FIgured this out. A list of playerattachments at the end was missing from my XML. 🙂

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums