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

    Error when Loading Scenario

    Scheduled Pinned Locked Moved Map Making
    8 Posts 5 Posters 1.7k Views 5 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.
    • RogerCooperR Offline
      RogerCooper
      last edited by

      The next scenario I am working on for the repository is giving the following error when run.

      "Could not find unitType:Artillery"

      The log is

      180610 21:21:17.294 [main] INFO o.t.game.client.HeadedGameRunner - Launching game, version: 2.6.210
      207717 21:21:44.401 [SwingWorker-pool-1-thread-3] DEBUG g.s.e.data.gameparser.GameParser - Parsing game XML: C:\Users\Roger\triplea\downloadedMaps\Genuine39\games\Genuine39.xml
      209010 21:21:45.694 [SwingWorker-pool-1-thread-3] ERROR g.s.e.data.gameparser.GameParser - Could not parse:C:\Users\Roger\triplea\downloadedMaps\Genuine39\games\Genuine39.xml, Could not find unitType:Artillery
      games.strategy.engine.data.gameparser.GameParseException: Could not find unitType:Artillery
      at games.strategy.engine.data.gameparser.GameParser.lambda$getUnitType$8(GameParser.java:293)
      at java.base/java.util.Optional.orElseThrow(Optional.java:408)
      at games.strategy.engine.data.gameparser.GameParser.getUnitType(GameParser.java:293)
      at games.strategy.engine.data.gameparser.GameParser.parseUnitPlacement(GameParser.java:1011)
      at games.strategy.engine.data.gameparser.GameParser.parse(GameParser.java:218)
      at games.strategy.engine.data.gameparser.GameParser.lambda$parse$1(GameParser.java:135)
      at org.triplea.java.UrlStreams.openStream(UrlStreams.java:73)
      at games.strategy.engine.data.gameparser.GameParser.parse(GameParser.java:130)
      at games.strategy.engine.data.gameparser.GameParser.parse(GameParser.java:107)
      at games.strategy.engine.framework.startup.ui.panels.main.game.selector.GameSelectorModel.parseAndValidate(GameSelectorModel.java:104)
      at games.strategy.engine.framework.startup.ui.panels.main.game.selector.GameSelectorModel.load(GameSelectorModel.java:66)
      at games.strategy.engine.framework.startup.ui.panels.main.game.selector.GameSelectorPanel.lambda$gameSelected$8(GameSelectorPanel.java:398)
      at games.strategy.engine.framework.ui.background.BackgroundTaskRunner.lambda$runInBackground$0(BackgroundTaskRunner.java:52)
      at games.strategy.engine.framework.ui.background.BackgroundTaskRunner$1.doInBackground(BackgroundTaskRunner.java:115)
      at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      at java.base/java.lang.Thread.run(Thread.java:834)
      251727 17:08:02.582 [main] INFO o.t.game.client.HeadedGame

      I am thinking that is a capitalization issue, but the mod seems consistent in capitalization. The error seems to be in parsing, but it passes validation. I am using 2.6.246

      Genuine 39

      TheDogT 1 Reply Last reply Reply Quote 0
      • TheDogT Offline
        TheDog @RogerCooper
        last edited by

        @rogercooper
        Ive spent a couple of hours on this and annoyingly cannot find the fault.
        It works in 1.9, but not in 2.6.
        Changed
        a few of the artillery.png to Artillery.png
        removed the artillerySupportable
        tested the game Classic and WW2V3
        All fail to load

        https://forums.triplea-game.org/tags/thedog
        https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

        1 Reply Last reply Reply Quote 2
        • wc_sumptonW Offline
          wc_sumpton
          last edited by

          @RogerCooper

          Line number 3386 remove the space from "Artillery ".

          Cheers...

          TheDogT General_ZodG RogerCooperR 3 Replies Last reply Reply Quote 3
          • TheDogT Offline
            TheDog @wc_sumpton
            last edited by

            @wc_sumpton
            As simple as that!

            https://forums.triplea-game.org/tags/thedog
            https://forums.triplea-game.org/topic/3741/curated-best-top-maps-triplea-guides

            B 1 Reply Last reply Reply Quote 1
            • B Offline
              beelee @TheDog
              last edited by

              @thedog so frustrating yet rewarding when it works. Has happened to me many times : )

              1 Reply Last reply Reply Quote 3
              • General_ZodG Offline
                General_Zod Moderators @wc_sumpton
                last edited by

                @wc_sumpton I'm really surprised that the error didn't refer to that line and column number. Good catch.

                @TheDog After reading the error I also suspected the .png file. I've run into those a few times. Best method is to replace the png file.

                1 Reply Last reply Reply Quote 0
                • RogerCooperR Offline
                  RogerCooper @wc_sumpton
                  last edited by

                  @wc_sumpton Thanks for your help. With a few tweaks, I will post it to the repository.

                  1 Reply Last reply Reply Quote 0
                  • wc_sumptonW Offline
                    wc_sumpton
                    last edited by

                    @General_Zod

                    I was surprised also by the absent of a line number in the error. Also notepad++ did not find the error until I checked for Artillery " (note the space before the ending quote). Checking for Artillery (note no quote sign after the space) did not find the error. Mostly it was luck when I found it.

                    :astonished_face:

                    Cheers...

                    1 Reply Last reply Reply Quote 1

                    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