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

    Issues Loading New Map: Avatar

    Scheduled Pinned Locked Moved Map Making
    82 Posts 5 Posters 38.7k Views 4 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.
    • C Offline
      Cernel Moderators @Black Order
      last edited by

      @black-order Nothing you said so far explains why your xml, I assume it is inside your games folder, is not being seen or parsed successfully.
      Your folder structure is correct.

      1 Reply Last reply Reply Quote 0
      • Black OrderB Offline
        Black Order
        last edited by

        TripleA engine version 1.9.0.0.9687
        Could not parse: file:/C:/Users/Robin-Teus16/triplea/downloadedMaps/Avatar/games/Avatar.xml
        games.strategy.engine.data.GameParseException: map name: 'file:/C:/Users/Robin-Teus16/triplea/downloadedMaps/Avatar/games/Avatar.xml', game name: '<unknown>', failed to parse XML document
        at games.strategy.engine.data.GameParser.newGameParseException(GameParser.java:102)
        at games.strategy.engine.data.GameParser.parseDom(GameParser.java:130)
        at games.strategy.engine.data.GameParser.parseShallow(GameParser.java:121)
        at games.strategy.engine.data.GameParser.parseShallow(GameParser.java:117)
        at games.strategy.engine.framework.ui.GameChooserEntry.<init>(GameChooserEntry.java:47)
        at games.strategy.engine.framework.ui.GameChooserModel.createEntry(GameChooserModel.java:167)
        at games.strategy.engine.framework.ui.GameChooserModel.createGameChooserEntry(GameChooserModel.java:146)
        at games.strategy.engine.framework.ui.GameChooserModel.populateFromDirectory(GameChooserModel.java:180)
        at games.strategy.engine.framework.ui.GameChooserModel.lambda$parseMapFiles$0(GameChooserModel.java:60)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
        at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
        at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
        at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source)
        at java.util.concurrent.CountedCompleter.exec(Unknown Source)
        at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
        at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
        at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
        Caused by: org.xml.sax.SAXParseException; systemId: jar:file:/C:/Program%20Files/TripleA/bin/triplea-1.9.0.0.9687-all.jar!/games/strategy/engine/xml/; lineNumber: 8433; columnNumber: 1; Content is not allowed in trailing section.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
        at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
        at games.strategy.engine.data.GameParser.getDocument(GameParser.java:319)
        at games.strategy.engine.data.GameParser.parseDom(GameParser.java:128)
        ... 16 more
        Loading map: dragon_war, from: C:\Users\Robin-Teus16\triplea\downloadedMaps\dragon_war-master.zip
        Loading resources from the following paths: [C:\Users\Robin-Teus16\triplea\downloadedMaps\dragon_war-master.zip, C:\Program Files\TripleA\assets]

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          Cernel Moderators @Black Order
          last edited by

          @black-order Either you can spot it yourself (maybe at line 8433) or you need to share.

          1 Reply Last reply Reply Quote 0
          • Black OrderB Offline
            Black Order
            last edited by

            Testing version
            0_1528204829642_Avatar.xml

            redrumR C 3 Replies Last reply Reply Quote 0
            • redrumR Offline
              redrum Admin @Black Order
              last edited by

              @black-order Can you try making sure that the case of the map folder and XML are both lower case so like this:
              ../downloadedMaps/avatar/games/avatar.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
              • Black OrderB Offline
                Black Order
                last edited by

                done but nothing

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

                  @black-order You still see the same error you posted above?
                  Could not parse: file:/C:/Users/Robin-Teus16/triplea/downloadedMaps/Avatar/games/Avatar.xml
                  games.strategy.engine.data.GameParseException: map name: 'file:/C:/Users/Robin-Teus16/triplea/downloadedMaps/Avatar/games/Avatar.xml', game name: '<unknown>', failed to parse XML document
                  ...

                  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
                  • Black OrderB Offline
                    Black Order
                    last edited by

                    @redrum TripleA engine version 1.9.0.0.9687
                    Loading map: age_of_tribes, from: C:\Users\Robin-Teus16\triplea\downloadedMaps\age_of_tribes-master.zip
                    Loading resources from the following paths: [C:\Users\Robin-Teus16\triplea\downloadedMaps\age_of_tribes-master.zip, C:\Program Files\TripleA\assets]

                    thise is all

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

                      @black-order Well looks like the error is resolved then. Do you see it in the select map list now? Can you post a screenshot of the XML file path?

                      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
                      • Black OrderB Offline
                        Black Order
                        last edited by

                        0_1528205905263_Knipsel.PNG
                        and no i dont see anything 😞 ;(

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

                          @black-order Can you upload your map zip somewhere and provide a link here so I can take a look at it?

                          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
                          • C Offline
                            Cernel Moderators @Black Order
                            last edited by

                            @black-order There must be something wrong somewhere, but it is a lot to read to spot it.

                            I only noticed, and maybe this is not the problem (not sure if the engine gets it anyways), that this is not coded as it should:

                            <property name="maxFactoriesPerTerritory" value="6"/>
                            

                            It should be:

                            <property name="maxFactoriesPerTerritory" value="6" editable="false">
                            <number max="..." min="..."/>
                            </property>
                            

                            Where "..." is a natural number or 0, comprising the default value.

                            Or at least adding the "editable" part.

                            Also, moving this thread to mapmaking.

                            1 Reply Last reply Reply Quote 1
                            • Black OrderB Offline
                              Black Order
                              last edited by

                              https://mega.nz/#!Tlt1hDxD!mB-sltizJ9hVFdmwJvWoUMgXJpJtD3Bpk4m3LdNDGSQ
                              link of the test folder

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                Cernel Moderators @Black Order
                                last edited by

                                @black-order I cannot download it from there without also installing l'app desktop di MEGA. Can you upload it somewhere easy like sendspace?

                                1 Reply Last reply Reply Quote 0
                                • Black OrderB Offline
                                  Black Order
                                  last edited by

                                  you can dowload without app 🙂

                                  C 1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    Cernel Moderators @Black Order
                                    last edited by

                                    @black-order I cannot with Microsoft Edge.

                                    1 Reply Last reply Reply Quote 0
                                    • Black OrderB Offline
                                      Black Order
                                      last edited by

                                      mmm ok thats a promblem any ideas?

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

                                        @black-order It downloaded fine for me from chrome.

                                        @Cernel Maybe you need to get a real internet browser 🙂

                                        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
                                        • Black OrderB Offline
                                          Black Order
                                          last edited by

                                          thats funny i use firefox "have used chrome,no longer"

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

                                            @black-order So your map appears in the list for me by just unzipping the download and putting the avatar folder into the downloadedMaps folder:
                                            0_1528208239575_b687335a-0a78-4ff8-aa42-a684a84a247b-image.png

                                            File path for XML:

                                            ../downloadedMaps/avatar/games/avatar.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

                                            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
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums