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

    Error loading my new(ish) map

    Scheduled Pinned Locked Moved Map Making
    11 Posts 4 Posters 1.3k 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.
    • wc_sumptonW Offline
      wc_sumpton @ff03k64
      last edited by

      @ff03k64

      I don't think this has anything to do with unit images. The error is saying that the xml itself is not being parsed (read properly by the TripleA engine). It hard to say what is causing this with so little information to go on.

      Sorry.

      Cheers...

      1 Reply Last reply Reply Quote 0
      • F Offline
        ff03k64
        last edited by

        Isn't there a log file anywhere that can say where the parsing breaks? I feel like when i was working on this map previously, there was more to logs than one line that i got this time.

        1 Reply Last reply Reply Quote 0
        • LaFayetteL Offline
          LaFayette Admin
          last edited by LaFayette

          The error message would ideally be much better, this is kinda poor on the TripleA engine part.

          Try running the XML through a validator, it might be able to give you an idea where the problem is:
          https://www.xmlvalidation.com/

          If you still can't find the error in the validator, try commenting out large blocks of the XML and re-validating until you have a valid XML. Then uncomment blocks until you find the part that is giving the validation error.

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

            @ff03k64

            Also you may try posting it here. Maybe some fresh eyes could spot the problem.

            Cheers...

            1 Reply Last reply Reply Quote 0
            • F Offline
              ff03k64
              last edited by ff03k64

              Thanks for the suggestions so far. First off, I commented out a bunch of new stuff. Didn't work, figured i missed some. I managed to find a previous version that works. I compared the two, and I think i managed to comment out anything that was different. Still didn't work, even though the old one did.

              My files are here.

              edit:better link

              1 Reply Last reply Reply Quote 0
              • F Offline
                ff03k64
                last edited by ff03k64

                Some new errors. 26 of the following. 26 of the relief tiles are not showing up on the map.

                Aug 08, 2020 3:55:15 PM org.triplea.game.client.HeadedGameRunner lambda$initializeClientSettingAndLogging$0
                SEVERE: null
                java.util.NoSuchElementException
                	at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:75)
                	at games.strategy.triplea.ui.mapdata.DefaultColors.nextColor(DefaultColors.java:30)
                	at games.strategy.triplea.ui.mapdata.MapData.getPlayerColor(MapData.java:496)
                	at games.strategy.triplea.ui.screen.drawable.LandTerritoryDrawable.draw(LandTerritoryDrawable.java:45)
                	at games.strategy.triplea.ui.screen.drawable.LandTerritoryDrawable.draw(LandTerritoryDrawable.java:29)
                	at games.strategy.triplea.ui.screen.Tile.draw(Tile.java:69)
                	at games.strategy.triplea.ui.screen.Tile.drawImage(Tile.java:54)
                	at games.strategy.triplea.ui.panels.map.MapPanel.lambda$paint$7(MapPanel.java:745)
                	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)
                

                edit: one of those 26 was slightly different.

                Aug 08, 2020 3:53:54 PM org.triplea.game.client.HeadedGameRunner lambda$initializeClientSettingAndLogging$0
                SEVERE: null
                java.util.NoSuchElementException
                	at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:75)
                	at games.strategy.triplea.ui.mapdata.DefaultColors.nextColor(DefaultColors.java:30)
                	at games.strategy.triplea.ui.mapdata.MapData.getPlayerColor(MapData.java:496)
                	at games.strategy.triplea.ui.screen.drawable.LandTerritoryDrawable.draw(LandTerritoryDrawable.java:45)
                	at games.strategy.triplea.ui.screen.SmallMapImageManager.updateTerritoryOwner(SmallMapImageManager.java:80)
                	at games.strategy.triplea.ui.panels.map.MapPanel.initSmallMap(MapPanel.java:845)
                	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
                	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
                	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
                	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
                	at java.base/java.security.AccessController.doPrivileged(Native Method)
                	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
                	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
                	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
                	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
                	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
                	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
                	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
                	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
                
                1 Reply Last reply Reply Quote 0
                • wc_sumptonW Offline
                  wc_sumpton
                  last edited by

                  @ff03k64

                  Checked your files and found a lot of hanging '--' within the comments. This is throwing your errors. Also a few '<!--' starters in some comments.

                  On the main screen, select 'Engine Preferences', then select the 'Game' tab. Third option down 'Show Console' set to true. This will give you better error messages in the console window!

                  Don't worry I tend to make my comments with '<!--- --->' one to many dashes on each side. It happens!

                  Cheers...

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    ff03k64
                    last edited by

                    Ah, i figured that since they were inside of a comment, it wouldn't matter. Thanks!

                    With regards to the console, I wasn't getting into the game at all, so that is why i couldn't find it. Thanks!

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      ff03k64 @LaFayette
                      last edited by

                      @LaFayette I think one of my posts got lost. I tried the validator, but it needed game.dtd to try to run. I couldn't find it.

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

                        @ff03k64 Check this post for how to find the game.dtd

                        I suggest using an editor that specifically supports xml. I use XML Copy Editor.

                        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