TSRE GenX - MAX OVERHAUL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eric
    9500 Post Veteran and Administrator



    • Dec 2002
    • 9583
    • NS MP245.4 CNO&TP South District
    • English, SQL
    • General

    #46
    Originally posted by scottb613
    Settings - are controlled by the F12 Settings panel (Eric started - I polished) - there is no need to touch settings.txt anymore. From the F12 settings panel - it can save all the setting changes you make - and - offers another button - to SAVE and RELOAD the sim so they take immediate effect. The RELOAD only takes a couple seconds - and brings everything back to precisely how you had it before the RELOAD. I think I am going to move the setting.txt function into the users appData\TSRE folder - where it belongs - as a JSON file. I save other session data there now and it make far more sense. I could still dump an old settings.txt - when changed - into a dir if it is truly needed or desired.
    Definitely keep the session data out of the route folder... it's the only way the garbage collection to delete old or excess logs will work.

    Be very careful with re-invoking Game::Load() as my first few attempts wound up with a lot of memory leaks and invalid pointers... There are also child variables which might be missed because they get triggered and built between Game::Load and building the Route Editor Window or Consist Editor Window and tool windows.

    A few things missing that I had planned for 8.006 but you might be able to fold in:
    • Exiting a route editing session back to the route selector
    • Exiting the route selector or Consist Editor back to the main launcher
    • Toggle to have camera movement glue itself to the nearest TDB or RDB line it can when using the forward or backward arrow
      • Right or left arrow breaks the glue.
      • Adjust the camera rotation to follow TDB lines as they curve.
      • Follow the default switch paths at junctions
      • Adjust the camera elevation as the track changes
    • Applying map terrain textures from OSM or Google/MapBox/Other to all textures as a batch
      • That might now be better incorporated into your Topo app since it's built around a batch process and already modifying T files
        • Even better if you could grab the URL and API key details needed for static map images from Settings.txt
    If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

    Comment

    • eric
      9500 Post Veteran and Administrator



      • Dec 2002
      • 9583
      • NS MP245.4 CNO&TP South District
      • English, SQL
      • General

      #47
      Originally posted by scottb613
      Hi Folks,

      For Crash to Desktop - just grab your:

      Code:
      tsre-log-YYYYMMDD-HHMM.txt
      And post it here - before starting a new session - maybe I can figure out why.

      Regards,
      Scott
      Make sure you turn on DebugOutput and possibly ExtendedDebug. Some of the trace info needed to debug a crash might not be written with just the basic logging.
      If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

      Comment

      • scottb613
        2500 Post Veteran


        • Apr 2003
        • 2848
        • Downeast Maine (soon)
        • ORTS

        #48
        Hi Eric,

        Sound good - out running around - I'll respond in greater detail later.

        Regards,
        Scott
        <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

        Comment

        • qballbandit
          6500 Post Veteran

          • Jan 2006
          • 6522
          • Elgin Il., USA.
          • MSOR

          #49
          You are my new higher power! Thanks doesn't cut it. I can't wait to mess with this over the next couple of weeks. One thing that has always stymied me is viewing routes at night. Could there be a dynamic key command to switch day/night, or not possible? Or if it exists already, have I missed the boat altogether?

          Thanks very much, sir.
          Neil

          Chicago Railroading Fan

          Comment

          • baldwin
            6000 Post Veteran


            • Nov 1999
            • 6358
            • Chippenham, Wiltshire, UK.
            • ORTS

            #50
            Hi Scott
            I have downloaded the zip from your Github. Looking at the content it is obvious that you have put a tremendous amount of work into it. You state in the OP that AddShortcutDesktop.cmd exists in the root. I am unable to find it in there. There are vast numbers of .h and .cpp files plus a few others but no .cmd. How do I get this to work please?.
            Beer is not a matter of life or death, it is much more serious than that.

            Comment

            • TrainGuy6550
              Active Member
              • May 2026
              • 105
              • Mars
              • only english
              • General

              #51
              Originally posted by baldwin
              How do I get this to work please?.
              You have downloaded the wrong zip - that contains the C++ source code.
              You need compiled binaries. You may get that from the first post of this thread...
              Direct link: https://github.com/scottb613/TSRE5-S...comod-v0.7.zip
              E

              Comment

              • scottb613
                2500 Post Veteran


                • Apr 2003
                • 2848
                • Downeast Maine (soon)
                • ORTS

                #52
                Hi Eric,

                Yep - all good ideas - I had already contemplated a change for Map data - as the process is tedious and repetitive - I had never thought of moving it to LIDEX - I think I like that. I queried the API and they distinctly state “not for bulk downloads” - I think there are mirrors that fully support it - worth taking a look. If I did that - I’d need to include the low res global data for everyone outside the US - for true one stop shopping for mesh and maps.

                For now - my priority is to first - hunt bugs for the changes I do have - then produce a working and intuitive Activity Editor.


                Hi Neil,

                Top of F2 Panel - Texture Set - seasonal and night textures toggle. Thanks for the kind comments.


                Hi Mervyn,

                Yep - as per the previous post - sounds like you have the source code. Appreciate the comments as well.


                Regards,
                Scott
                Last edited by scottb613; 07-26-2026, 08:11.
                <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                Comment

                • scottb613
                  2500 Post Veteran


                  • Apr 2003
                  • 2848
                  • Downeast Maine (soon)
                  • ORTS

                  #53
                  Hi Folks,

                  One more point of interest - if you see "RED G" grade indicators - typically means there is an issue that you want to avoid - as the track swapped grade direction without going back through level - going UP to DOWN in rollercoaster fashion.

                  OR - - - you're running on Marias Pass...
                  😁

                  Regards,
                  Scott
                  <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                  Comment

                  • rdayt
                    1000 Post Veteran

                    • Nov 2007
                    • 1291
                    • SW MO
                    • ORTS

                    #54
                    The log file is showing errors about missing .ace textures that are actually .dds files.
                    tsre-log-20260725-1613test.txt

                    Better than McDonalds. I'm lovin' it.

                    Randy

                    Comment

                    • eric
                      9500 Post Veteran and Administrator



                      • Dec 2002
                      • 9583
                      • NS MP245.4 CNO&TP South District
                      • English, SQL
                      • General

                      #55
                      Originally posted by rdayt
                      The log file is showing errors about missing .ace textures that are actually .dds files.
                      That message is not an error and has been around a while

                      If the shape calls for an ACE and the user or an uploader has substituted a DDS, it'll flag that as informational (hence the [I] instead of a [E] or [W] which are an error or a warning)
                      If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                      Comment

                      • rdayt
                        1000 Post Veteran

                        • Nov 2007
                        • 1291
                        • SW MO
                        • ORTS

                        #56
                        It clogs up the error log. Can it be disabled?

                        Randy

                        Comment

                        • eric
                          9500 Post Veteran and Administrator



                          • Dec 2002
                          • 9583
                          • NS MP245.4 CNO&TP South District
                          • English, SQL
                          • General

                          #57
                          Possibly. It's important to know when this happens, especially as GLTF support gets added later and for those who ignore DDS for ACE texture substitution in TSRE.

                          Looking at your log... there were only 18 occurrences of that out of 574 lines... or around 3% of the content. I'd think fixing the bigger errors i.e. missing microtex and track textures might want to be your focus.
                          If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                          Comment

                          • rdayt
                            1000 Post Veteran

                            • Nov 2007
                            • 1291
                            • SW MO
                            • ORTS

                            #58
                            True true and true but if I don't write it down somewhere I'll forget about it and Scott seems to be taking suggestions.
                            I have microtex and track textures, although it's showing alternate textures for dynamic track, that shows fine in game.

                            Randy

                            Comment

                            • scottb613
                              2500 Post Veteran


                              • Apr 2003
                              • 2848
                              • Downeast Maine (soon)
                              • ORTS

                              #59
                              Originally posted by eric
                              Possibly. It's important to know when this happens, especially as GLTF support gets added later and for those who ignore DDS for ACE texture substitution in TSRE.

                              Looking at your log... there were only 18 occurrences of that out of 574 lines... or around 3% of the content. I'd think fixing the bigger errors i.e. missing microtex and track textures might want to be your focus.
                              Hi Eric,

                              I've been trying to figure out how to handle updates from here on out - git makes it easy to distribute with "latest release" - I'd like to post notifications for updates in this thread and see how it goes - can you pull "v0.7" out of my first post title and the title inside the message body so it's not anchored to "v0.7"? I cannot change the title and whenever I edit the first message in a thread - I seem to lose the image preview. No urgency - at your convenience - it will probably take a week to address my hit list.

                              Thank you kindly.

                              Regards,
                              Scott
                              <a href=https://www.trainsim.com/forums/filedata/fetch?filedataid=80663&type=full title=thumb_80663.png >thumb_80663.png</a>​ My Blender Models

                              Comment

                              • eric
                                9500 Post Veteran and Administrator



                                • Dec 2002
                                • 9583
                                • NS MP245.4 CNO&TP South District
                                • English, SQL
                                • General

                                #60
                                I can... and at some point we need to figure out how to merge your changes with what I've done in the last month i.e. making it possible to use a source for static maps orher than Google or MapBox.

                                Sent from my SM-S911U using Tapatalk

                                If you like what you see here at Trainsim.com, be it the discussions and knowledge in the forums, or items available in our library, I hope you'll consider a paid membership to help support keeping the site operating.... Thanks!

                                Comment

                                Working...