I may have had a major breakthru....

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

    #1

    I may have had a major breakthru....

    Settings.txt
    Code:
    routeRebuildTDB = true
    Before:
    capture_5100374.jpg

    After:
    capture_5100375.jpg

    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!
  • eric
    9500 Post Veteran and Administrator



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

    #2
    capture_5100378.jpg It's working, with a few asterisks....

    As part of the testing, I took a couple routes, replaced the TDB/RDB with empty files, and it rebuilt the standard track without any major problems.

    If the local TSection is missing, dynamic track is being rebuilt with mixed success. If the entries are still present in the W file, the local TSection can be rebuilt.

    Now for the Asterisks.

    If the local TSection is still intact....
    • Dynamic Track will be restored automatically
    • Dynatrax will be restored to the TDB automatically

    If the local TSection is lost or corrupted before a rebuild....
    • Dynamic Track will try to rebuild itself and its entries in the local TSection based on the entries present in the W file
    • Dynatrax shapes are essentially lost, as the geometry attributes needed are stored in the local TSection after a conversion, and wiped out of the W file (which is not the case with dynamic track entries). They cannot be loaded into the TDB, so the best bet is to delete and replace with Dynamic Track. If by chance you have the backup World files from the conversion, you might be able to manually convert the W file entry from a TrackObj to a DynTrack entry, but that can't be automated.
    Interactives...
    • They're lost with no real exception that I've found yet
    • For items that have a visible scenery object e.g. a signal, speedpost, milepost, the static item will be retained, which makes it a little easier to see what and where these need to be manually deleted and the interactives restored .
    • There's a parent/child relationship between the track object reference from the track database and the child objects. Once the child objects become orphaned, there's no way to restore the linkage, and TSRE's auto-fix will remove these.

    I know it's not a perfect solution, however this is one place where having a 90 or 95% automated solution to rescue a clobbered TDB may still be better than what we have right now, which is 0%.
    Last edited by eric; 03-12-2025, 23:50.
    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

    • fchrist16
      Senior Member


      • Apr 2005
      • 747
      • California

      #3
      This is awesome news eric especially with my recent re-build!! Makes me want to upgrade to the current TSRE!

      Regards,

      -Frank C.

      Comment

      • landnrailroader
        4000 Post Veteran



        • Nov 1999
        • 4171
        • Jacksonville,, FL, USA.
        • ORTS

        #4
        Very good news Eric. This was a major failing of TSRE although Goku claimed you could not corrupt the databases, you can, though it is harder to do, or less likely than with old MSTS/RE. I still use MSTS/RE to create a new route but the last one I did is probably the last I will need to do. It is the former Milwaukee Road from Marquette, IA to Canton, SD, a route well remembered from my teenage years.

        Jerry

        Comment

        • johnpalm
          New Member
          • May 2010
          • 6

          #5
          Im using TSREv8.005S
          Ive put routeRebuildTDB = true in the settings file but the system crashes
          Is it available in v 8.0005S or have i entered it in the wrong part of the file.
          Could you send me a copy of the settings file
          Thanks
          From John in New Zealand

          Comment

          • eric
            9500 Post Veteran and Administrator



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

            #6
            Please download 8.005u to use the Rebuild TDB functions. The zip includes the required settings.

            Be extremely careful if you run the rebuild. It will destroy all interactives, and might not behave with Dynatrax depending on if you have the local TSection or not.
            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...