"Could not find territory. name: " error



  • 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)
    

  • Moderators Admin

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



  • @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.


Log in to reply
 

39746
1889
2197
Who's Online
Visitors Today