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

    Error while loading map

    Scheduled Pinned Locked Moved Map Making
    6 Posts 2 Posters 2.5k Views 2 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.
    • T Offline
      thephalanx1453
      last edited by

      So I added some territory effects to sea zones on the WWIIv3 map, and it worked perfectly. However, when I tried to do the exact same thing to the WWII Global 1940 2nd map, it gave me this error while loading the map.

      SAXParseException: game: Axis and Allies Global 1940 2nd Edition Enhanced, line: 7119, 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?)".

      I did make sure to add the territoryeffect to pre-existing territoryAttachment where they exist, so no duplicate territoryAttachment for the same sea zone. and despite the error, everything seems to work well: convoy zones work as they should, and my own effect also works.

      I'm wondering if I've missed anything.

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

        @thephalanx1453 Can you post your game XML? It appears you either have an incorrect element or typo.

        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
        • T Offline
          thephalanx1453
          last edited by

          @redrum
          https://pastebin.com/sYeUcTLX

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

            @thephalanx1453 territoryEffectList must come after relationshipTypes. If you just copy and paste the <territoryEffectList> section to after <relationshipTypes> section then it should work fine.

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

            T 1 Reply Last reply Reply Quote 0
            • T Offline
              thephalanx1453 @redrum
              last edited by

              @redrum Thank you for helping, it worked.

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

                @thephalanx1453 Np. FYI, most XML editing tools can be used to validate the XML against the "game.DTD" to ensure its valid before trying to start a game: https://github.com/triplea-game/triplea/blob/master/src/main/resources/games/strategy/engine/xml/game.dtd

                This will often give you hints on what the issue is.

                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