Solved: Game fails to start: No data of type centers for territory



  • Hello,
    I am attempting to modify the world_war_ii_global map to add a sea zone in the atlantic so that Gibraltar is 4 steps from US.
    I modified the baseTiles.png appropriately
    I added a line in centers.txt to add "129 Sea Zone" and added coordinates
    Used map creator to build polygons.txt and place.txt and baseTiles
    Edited connections in .xml file
    Everything seemed to be fine in the map creator. The connections looked good and the territory was labeled correctly.
    From other posts, the error I'm getting in the console "Caused by: java.lang.IllegalStateException: No data of type centers for territory:129 Sea Zone"
    indicates that I don't have an entry in centers.txt for 129 Sea Zone, but I do.

    91 Sea Zone (1660,1540)
    129 Sea Zone (1510, 1530)
    ...

    Complete error is :

    Loading resources from the following paths: [/home/surfer/triplea/downloadedMaps/world_war_ii_global-master.zip, /home/surfer/tmp/TripleA_1.9.0.0.3453/assets]
    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1321)
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:1296)
    at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
    at games.strategy.triplea.TripleA.startGame(TripleA.java:122)
    at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:49)
    at games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$116(AbstractLauncher.java:43)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.IllegalStateException: No data of type centers for territory:129 Sea Zone
    at games.strategy.triplea.ui.mapdata.MapData.verifyKeys(MapData.java:541)
    at games.strategy.triplea.ui.mapdata.MapData.verify(MapData.java:514)
    at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:228)
    at games.strategy.triplea.TripleA.lambda$startGame$335(TripleA.java:124)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:360)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    Any suggestions would be appreciated.
    Cheers,
    --Jim Parker


  • Admin

    @jim-parker

    Are the edited centers.txt, polygons.txt files located in the folder named "map" . Also these files are only used if they are in the file "yourgame -master.zip" which should be located in the following folder "triplea/ downloadedMaps"



  • @jim-parker Your your capitalization. That has messed me up before.


  • Admin

    @jim-parker Most likely you have an extra space or capitalization is off. If you post the game XML and the centers.txt then I can take a look. You can also just upload the whole zip somewhere and link to it from here.



  • Ok, thanks everyone for the prompt replies. I reviewed the spelling/capitalization and nothing jumped out at me. Regardless, here is a link to the .zip file on dropbox. Please let me know if there are problems downloading.

    Cheers,
    --Jim

    .zip file


  • Admin

    @jim-parker Hmm, after I rename you zip to "world_war_ii_global-master", it loads fine for me.



  • @redrum
    Ok, I had to change the directory name as well as the .zip file name. And it worked as well. Thank you!!

    After doing a search for "world_war_ii_global", I found the .xml property "mapName". Now that I fixed that I can use the name I originally wanted to allow it to be separate from the original global game.

    Thanks again, beers for everyone :)

    Cheers,
    --Jim


  • Admin

    @jim-parker Yeah, the zip, folder, and mapName property all have to line up. Glad you got it working!


Log in to reply
 

Looks like your connection to TripleA Forum was lost, please wait while we try to reconnect.