Error while loading map
-
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.
-
@thephalanx1453 Can you post your game XML? It appears you either have an incorrect element or typo.
-
-
@thephalanx1453 territoryEffectList must come after relationshipTypes. If you just copy and paste the <territoryEffectList> section to after <relationshipTypes> section then it should work fine.
-
@redrum Thank you for helping, it worked.
-
@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.