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

    Replace Console Logging with a File

    Scheduled Pinned Locked Moved Development
    25 Posts 3 Posters 4.3k Views 2 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.
    • TheDogT Offline
      TheDog
      last edited by

      Windows 10, v2.6.22472 64bit, just loaded 270BC and done turn 1 as Carthage, no errors.

      Can I check anything else?

      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 1
      • LaFayetteL Offline
        LaFayette Admin
        last edited by

        So far so good @TheDog . Last thing just to see what it looks like, can you find a 'triplea.log' file? It should likely be written somewhere in your user home folder, I think under 'local data' or something like that. I'm curious what the path is to that file, where it was written.

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

          @LaFayette
          I cannot find it, I have a search going, it will take ages as its looking from c:\

          Did you use the Windows variable %USERNAME% in your path?

          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 0
          • TheDogT Offline
            TheDog
            last edited by

            No it found nothing

            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 0
            • LaFayetteL Offline
              LaFayette Admin
              last edited by

              Would you mind checking explicitly for: C:\Users\username\AppData\Local\VirtualStore\Program Files<triplea>\triplea.log

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

                @LaFayette

                The path only exists upto here
                C:\Users\username\AppData\Local\VirtualStore\

                I created the folder Program Files
                and then created Triplea within that folder

                just in case, but still its a no show.

                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 0
                • LaFayetteL Offline
                  LaFayette Admin
                  last edited by

                  Which version of the engine are you running @TheDog ?

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

                    @LaFayette
                    472
                    I have just seen 2 more versions I will try the latest

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

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

                      Just tried 474, its not there.

                      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 0
                      • TheDogT Offline
                        TheDog
                        last edited by

                        Perhaps try the Windows environment variable %PUBLIC% c:\users\public at the same time as the current version?

                        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 0
                        • TheDogT Offline
                          TheDog
                          last edited by

                          Its 12:26 here in the UK, Im off to bed, I will try again tomorrow, unless someone else has nailed it.

                          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 0
                          • LaFayetteL Offline
                            LaFayette Admin
                            last edited by

                            474 is the latest. Hmm, that's a small problem if it's not showing up. I have a suspicion the logger file is not being packaged with the game. I'll check that out, hopefully that is the missing piece. Thanks for your checks so far @TheDog 🙂

                            PantherP 1 Reply Last reply Reply Quote 0
                            • PantherP Offline
                              Panther Admin Moderators @LaFayette
                              last edited by Panther

                              @LaFayette On my Windows10 the triplea.log file is - as usual - in the TripleA installation folder (22477). I use custom installation folders however.

                              Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

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

                                For reference, I am a default installer.

                                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 0
                                • LaFayetteL Offline
                                  LaFayette Admin @Panther
                                  last edited by

                                  @Panther 'As usual' surprises me as the log file is new. Is this the installation log file? Sorry to be a bit confused, is 'as usual' referring to the log file being written to a usual location?

                                  Could you share the first dozen lines of that log file @Panther or let us know if it looks like an application log or an installation log?

                                  PantherP 1 Reply Last reply Reply Quote 0
                                  • PantherP Offline
                                    Panther Admin Moderators @LaFayette
                                    last edited by Panther

                                    @LaFayette
                                    Sorry for the confusion. I am used to the fact that the enginge creates log-files in the installation directory. I was referring to the error.log file.

                                    These are the first lines of the triplea.log-file:

                                    297  15:09:59.314 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Classic @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_classic-master.zip!/world_war_ii_classic-master/map/games/classic.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1942 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global42_2nd_edition.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Pacific 1940 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_pacific-master.zip!/world_war_ii_pacific-master/map/games/ww2pac40_2nd_edition.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v5 1942 Second Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v5_1942-master.zip!/world_war_ii_v5_1942-master/map/games/WW2v5_1942_2nd.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: 0 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/0.zip!/games/0.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Revised @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_revised-master.zip!/world_war_ii_revised-master/map/games/ww2v2.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 2nd Edition with Combat Move First @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_2ndEd_move1st.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v3 1941 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v3-master.zip!/world_war_ii_v3-master/map/games/WW2v3-1941.xml
                                    299  15:09:59.316 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WW2v4 Six Army Free For All v2 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v4-master.zip!/world_war_ii_v4-master/map/games/WW2v4_Six_Army_Free_For_All_v2.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WW2 Path to Victory @ jar:file:/C:/Users/dh/triplea/downloadedMaps/ww2_path_to_victory-master.zip!/ww2_path_to_victory-master/map/games/ww2_path_to_victory.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Europe 1940 Original @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_europe-master.zip!/world_war_ii_europe-master/map/games/ww2eur40.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Canadian Mod with Combat Move First @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/G40CanadianMod.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WWII Europe 1940 Original SeaLion-Balanced @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_europe-master.zip!/world_war_ii_europe-master/map/games/ww2eur40_veqryn_balanced.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Classic 3rd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_classic-master.zip!/world_war_ii_classic-master/map/games/classic_3rd_edition.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Classic: Iron Blitz 3rd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_classic-master.zip!/world_war_ii_classic-master/map/games/iron_blitz.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Balanced Mod3 with Combat Move First @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_balanced_move1st.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_2nd_edition.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v3 1942 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v3-master.zip!/world_war_ii_v3-master/map/games/WW2v3-1942.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v4 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v4-master.zip!/world_war_ii_v4-master/map/games/WW2v4.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v6 1941 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v6_1941-master.zip!/world_war_ii_v6_1941-master/map/games/WW2v6_1941.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WWII Pacific 1940 Original J1-Balanced @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_pacific-master.zip!/world_war_ii_pacific-master/map/games/ww2pac40_balanced_veqryn.xml
                                    300  15:09:59.317 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Revised LHTR @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_revised-master.zip!/world_war_ii_revised-master/map/games/lhtr.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II v5 1942 SE TR @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v5_1942-master.zip!/world_war_ii_v5_1942-master/map/games/WW2v5_1942_2nd_TR.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Pacific 1940 Original @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_pacific-master.zip!/world_war_ii_pacific-master/map/games/ww2pac40.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: Ozteas 1941 Global Setup @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/Ozteas_1941_Global_Setup.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Original @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Europe 1940 2nd Edition @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_europe-master.zip!/world_war_ii_europe-master/map/games/ww2eur40_2nd_edition.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: World War II Global 1940 Balanced Mod3 @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_global-master.zip!/world_war_ii_global-master/map/games/ww2global40_balanced.xml
                                    301  15:09:59.318 [Thread-2] DEBUG g.s.e.f.m.f.s.l.AvailableGamesFileSystemReader - Found game: WW2v4 Six Army Free For All @ jar:file:/C:/Users/dh/triplea/downloadedMaps/world_war_ii_v4-master.zip!/world_war_ii_v4-master/map/games/WW2v4_Six_Army_Free_For_All.xml
                                    
                                    

                                    Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

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

                                      Thanks @Panther , that is the application log file, that is the one we were looking for!

                                      Okay, is it the case that (?):

                                      • if you install TripleA to the default folder, it does not generate a log file,
                                      • if you install TripleA to a custom location, then it does?
                                      PantherP 1 Reply Last reply Reply Quote 0
                                      • PantherP Offline
                                        Panther Admin Moderators @LaFayette
                                        last edited by Panther

                                        @LaFayette

                                        It looks like. On my system the installer wants to install into "C:\Program Files\TripleA".
                                        I am using "C:\Games\TripleA" instead.

                                        C:\Program Files\ is a somehow restricted system directory.

                                        Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

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

                                          Yes C:\Program Files\TripleA is the default

                                          C:\Program Files\ is a somehow restricted system directory.
                                          Yes Windows tries to protect itself.

                                          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 0
                                          • LaFayetteL Offline
                                            LaFayette Admin
                                            last edited by

                                            It sounded like if an application were to try to write to program files then the file would be redirected to the appdata folder. It sounds like this was perhaps misadvertised and instead. @TheDog , if you install to your home folder, I presume you would see the log file show up, would you mind verifying that?

                                            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
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums