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

    Why does this place.txt file not work?

    Scheduled Pinned Locked Moved Map Making
    7 Posts 4 Posters 2.6k Views 4 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.
    • FrostionF Offline
      Frostion Admin
      last edited by

      I have spent many hours manually making a place.txt file, but when I try to use it, the map just does not load after I press play. It just returns to the launch menu after 1-2 seconds 😞

      If I use an auto generated file, it does work. But the auto generated placements are just not optimal and I want to use my own.

      This auto made one works: 0_1500503043872_Auto_Works_place.txt
      This manually one does not work:
      0_1500503054167_Manual_Worksnot_place.txt

      What can be wrong?

      Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

      redrumR C 2 Replies Last reply Reply Quote 0
      • redrumR Offline
        redrum Admin @Frostion
        last edited by

        @Frostion Can you upload the whole map with the place.txt that isn't working?

        TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

        1 Reply Last reply Reply Quote 0
        • C Offline
          Cernel Moderators @Frostion
          last edited by

          @Frostion I see that in the manual one "Petsamo" has 0 placement.

          I would think the game would be better telling you immediately that some territory has no placements, so I leave it up to you if you want to open a ticket in GitHub about this.
          Tho I can't imagine how you would actually end up having no placements in a territory, and not noticing, while manually doing it.

          Also, @redrum, I tested with .5785 and I see that the engine doesn't tell you anything upon crashing but, then, if you Engine Preferences/Show Console, you get the info:

          java.lang.reflect.InvocationTargetException
          	at java.awt.EventQueue.invokeAndWait(Unknown Source)
          	at java.awt.EventQueue.invokeAndWait(Unknown Source)
          	at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
          	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$0(AbstractLauncher.java:51)
          	at games.strategy.engine.framework.startup.launcher.AbstractLauncher$$Lambda$276/1719828606.run(Unknown Source)
          	at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.IllegalStateException: No where to place units:Petsamo
          	at games.strategy.triplea.ui.screen.TileManager.drawUnits(TileManager.java:343)
          	at games.strategy.triplea.ui.screen.TileManager.drawTerritory(TileManager.java:279)
          	at games.strategy.triplea.ui.screen.TileManager.resetTiles(TileManager.java:195)
          	at games.strategy.triplea.ui.MapPanel.setGameData(MapPanel.java:440)
          	at games.strategy.triplea.ui.MapPanel.<init>(MapPanel.java:117)
          	at games.strategy.triplea.ui.TripleAFrame.<init>(TripleAFrame.java:287)
          	at games.strategy.triplea.TripleA.lambda$startGame$0(TripleA.java:124)
          	at games.strategy.triplea.TripleA$$Lambda$286/1987199217.run(Unknown Source)
          	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
          	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
          	at java.awt.EventQueue.access$500(Unknown Source)
          	at java.awt.EventQueue$3.run(Unknown Source)
          	at java.awt.EventQueue$3.run(Unknown Source)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
          	at java.awt.EventQueue.dispatchEvent(Unknown Source)
          	at games.strategy.engine.framework.GameRunner$1.dispatchEvent(GameRunner.java:325)
          	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
          	at java.awt.EventDispatchThread.run(Unknown Source)
          

          Is it some intended behaviour that the engine doesn't give you the console directly upon crashing, but you have to go getting it yourself?

          1 Reply Last reply Reply Quote 0
          • FrostionF Offline
            Frostion Admin
            last edited by Frostion

            @Cernel @redrum
            Yes. The fault was a territory with no placements. I guess I missed it when making placements for the 270 territories. My bad πŸ˜‰ Thanks to Cernels keen eyes and exceptional knowledge, the territory of Petsamo now has placements also!

            Petsamo (Pechengsky) is the pre-WW2 Finnish far-north-eastern territory by Barents Sea. Here is a pic of the now working map.

            PS: I don’t think I will make a request-ticket at GitHub about this. But I would say that it can sometimes take a whole lot of time and steadfastness to figure out what is wrong when a map does not load and does not give an error either. Like in this case, and I have also experienced it when for example some files in the flag directory are either missing or not corresponding with the expected national/file names. Maybe TripleA should aim to always give error reports when maps do not load?

            0_1500561305541_map.png

            Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

            redrumR 1 Reply Last reply Reply Quote 0
            • redrumR Offline
              redrum Admin @Frostion
              last edited by

              @Frostion @Cernel Yeah the currently error handling and messaging when a map isn't functional isn't great.

              TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

              1 Reply Last reply Reply Quote 0
              • S Offline
                sammysleeth
                last edited by

                what program did you use to autogenerate your place text?

                1 Reply Last reply Reply Quote 0
                • FrostionF Offline
                  Frostion Admin
                  last edited by

                  @sammysleeth
                  I used the one that is built into the Triplea program.

                  You find it here: Engine Preferences - Run the map creator - Step 2: Map Utilities - Run the Automatic Placement Picker.

                  If you need tips about how to use it, just ask ☺

                  Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

                  1 Reply Last reply Reply Quote 0

                  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