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

    "Could not find territory. name: " error

    Scheduled Pinned Locked Moved Map Making
    3 Posts 2 Posters 982 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.
    • Z Offline
      Zaroph
      last edited by

      I am getting this error that has completely stumped me since I have looked over my xml 4/5 times and I cant spot the problem the error is describing. I would appreciate it if I had abit of help to see what it is.

      I was adding 4 players to be uncontrollable minor factions to a map, and after putting in all the relevant details into the xml and files into the flags/unit folders, this error arises when I click to select what map to load and then again when I load the map in question.
      Ive included the xml if its needed.Warcraft_Lordaeron_Wars.xml

      May 03, 2020 10:51:32 PM games.strategy.engine.framework.ui.GameChooserEntry fullyParseGameData
      SEVERE: Could not parse:file:/C:/Users/Tom/triplea/downloadedMaps/warcraft_lordaeron_wars-master/map/games/Warcraft_Lordaeron_Wars.xml
      games.strategy.engine.data.GameParseException: map name: 'file:/C:/Users/Tom/triplea/downloadedMaps/warcraft_lordaeron_wars-master/map/games/Warcraft_Lordaeron_Wars.xml', game name: 'Warcraft: Lordaeron Wars', Could not find territory. name:
      	at games.strategy.engine.data.GameParser.newGameParseException(GameParser.java:108)
      	at games.strategy.engine.data.GameParser.newGameParseException(GameParser.java:102)
      	at games.strategy.engine.data.GameParser.getValidatedObject(GameParser.java:335)
      	at games.strategy.engine.data.GameParser.getTerritory(GameParser.java:388)
      	at games.strategy.engine.data.GameParser.parseUnitPlacement(GameParser.java:1337)
      	at games.strategy.engine.data.GameParser.parseInitialization(GameParser.java:1292)
      	at games.strategy.engine.data.GameParser.parseMapDetails(GameParser.java:204)
      	at games.strategy.engine.data.GameParser.parse(GameParser.java:97)
      	at games.strategy.engine.data.GameParser.parse(GameParser.java:91)
      	at games.strategy.engine.framework.ui.GameChooserEntry.fullyParseGameData(GameChooserEntry.java:52)
      	at games.strategy.engine.framework.startup.mc.GameSelectorModel.selectByName(GameSelectorModel.java:271)
      	at games.strategy.engine.framework.startup.mc.GameSelectorModel.loadDefaultGameSameThread(GameSelectorModel.java:243)
      	at games.strategy.engine.framework.GameRunner.loadGame(GameRunner.java:290)
      	at games.strategy.engine.framework.GameRunner.showMainFrame(GameRunner.java:277)
      	at java.lang.Thread.run(Unknown Source)
      
      

      And then while loading attempting to load the map:

      May 03, 2020 10:51:37 PM games.strategy.engine.framework.ui.GameChooserEntry fullyParseGameData
      SEVERE: Could not parse:file:/C:/Users/Tom/triplea/downloadedMaps/warcraft_lordaeron_wars-master/map/games/Warcraft_Lordaeron_Wars.xml
      games.strategy.engine.data.GameParseException: map name: 'file:/C:/Users/Tom/triplea/downloadedMaps/warcraft_lordaeron_wars-master/map/games/Warcraft_Lordaeron_Wars.xml', game name: 'Warcraft: Lordaeron Wars', Could not find territory. name:
      	at games.strategy.engine.data.GameParser.newGameParseException(GameParser.java:108)
      	at games.strategy.engine.data.GameParser.newGameParseException(GameParser.java:102)
      	at games.strategy.engine.data.GameParser.getValidatedObject(GameParser.java:335)
      	at games.strategy.engine.data.GameParser.getTerritory(GameParser.java:388)
      	at games.strategy.engine.data.GameParser.parseUnitPlacement(GameParser.java:1337)
      	at games.strategy.engine.data.GameParser.parseInitialization(GameParser.java:1292)
      	at games.strategy.engine.data.GameParser.parseMapDetails(GameParser.java:204)
      	at games.strategy.engine.data.GameParser.parse(GameParser.java:97)
      	at games.strategy.engine.data.GameParser.parse(GameParser.java:91)
      	at games.strategy.engine.framework.ui.GameChooserEntry.fullyParseGameData(GameChooserEntry.java:52)
      	at games.strategy.engine.framework.startup.ui.panels.main.game.selector.GameSelectorPanel.lambda$selectGameFile$7(GameSelectorPanel.java:271)
      	at games.strategy.engine.framework.ui.background.BackgroundTaskRunner.lambda$runInBackground$0(BackgroundTaskRunner.java:50)
      	at games.strategy.engine.framework.ui.background.BackgroundTaskRunner$1.doInBackground(BackgroundTaskRunner.java:121)
      	at javax.swing.SwingWorker$1.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at javax.swing.SwingWorker.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      
      HeppsH 1 Reply Last reply Reply Quote 0
      • HeppsH Offline
        Hepps Moderators @Zaroph
        last edited by

        @Zaroph Looks to me as though there is at least 1 territory without a name at all.

        "A joyous heart sours with the burden of expectation"
        Hepster

        Z 1 Reply Last reply Reply Quote 4
        • Z Offline
          Zaroph @Hepps
          last edited by

          @Hepps Yeah thats what it looks like and what I initially thought but I double-triple checked and didnt find anything.
          But you did just give me the idea of searching for "" in the file and I found a unit placed with no territory.
          I probably wouldnt have thought of searching for that if I didnt read your comment tho, so thank you alot.

          1 Reply Last reply Reply Quote 2

          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