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/, /home/surfer/tmp/TripleA_1.]
    at java.awt.EventQueue.invokeAndWait(
    at java.awt.EventQueue.invokeAndWait(
    at javax.swing.SwingUtilities.invokeAndWait(
    at games.strategy.triplea.TripleA.startGame(
    at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(
    at games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$116(
    Caused by: java.lang.IllegalStateException: No data of type centers for territory:129 Sea Zone
    at games.strategy.triplea.ui.mapdata.MapData.verifyKeys(
    at games.strategy.triplea.ui.mapdata.MapData.verify(
    at games.strategy.triplea.ui.TripleAFrame.<init>(
    at games.strategy.triplea.TripleA.lambda$startGame$335(
    at java.awt.event.InvocationEvent.dispatch(
    at java.awt.EventQueue.dispatchEventImpl(
    at java.awt.EventQueue.access$500(
    at java.awt.EventQueue$
    at java.awt.EventQueue$
    at Method)
    at java.awt.EventQueue.dispatchEvent(
    at games.strategy.engine.framework.GameRunner$1.dispatchEvent(
    at java.awt.EventDispatchThread.pumpOneEventForFilters(
    at java.awt.EventDispatchThread.pumpEventsForFilter(
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(
    at java.awt.EventDispatchThread.pumpEvents(
    at java.awt.EventDispatchThread.pumpEvents(

    Any suggestions would be appreciated.
    --Jim Parker

  • Moderators


    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" 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.


    .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 🙂


  • Admin

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

Log in to reply