Very Strange File Overwrite Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yellowdog
    1500 Post Veteran



    • Nov 1999
    • 1586
    • .
    • MSOR

    #1

    Very Strange File Overwrite Error

    I'm putting this in Open Rails because I have only seen this phenomenon happen with my Open Rails content. My system seems to be otherwise unaffected. But this might be better off in Computer Tech, depending on how the conversation goes. So apologies if this is not correct forum....

    I recently booted up Open Rails, and got an error saying that an essential folder was missing:

    inc_file_error.jpg

    The weird part is that the loco is CSX SD40 4606 and should have nothing to do with the missing file related to the WP_Trainpack. I would know this because CSX SD40 4606 is my own repaint and I have worked with this folder pretty extensively. 4606 is based off of a Tyler Bundy SD40 model. Many of Tyler's last creations have 3DCabviews, which required the creation of specific eng files that were place in an Openrails subfolder. So when I went to that subfolder and double-clicked on it, I get this:

    inc_file_error2.jpg

    You can see the file name in the upper left, which is CSX_SD40_4606.eng. But the contents of the file are all related to WP_GP40_3544, which is part of the TrainSimulations Western Pacific set (I've snipped it, but it should be clear that the contents don't match the file name). It should look like this, which is the file I pulled from my backup (also snipped, but the difference is obvious, and the contents are as they should be):

    inc_file_error3.jpg

    Now here's where it gets really weird. Every single locomotive that I have in this particular trainset folder ("mini routes" seem unaffected) that also has an Openrails subfolder has suffered the same fate. When I view the contents of the folder, it LOOKS like it should--the file names are all correct, just like 4606. However, when I open the files, the contents of every single one of them has been overwritten with the WP_GP40_3544 information. We're talking hundreds of files that have been affected.

    I'm trying to figure out what would cause that. I purchased the WP set when it first came out, but only noticed this happening today. I didn't overwrite these things manually. But what would have the capability of replacing the contents of the file without otherwise changing the file name, etc? And what would do it globally for all **eng**/Openrails folders in that trainset? I know a program like TextCrawler can do it, but this is not something I did. Like I said, this only seems to impact OpenRails content, in this very specific way. The rest of my system seems unaffected, as well as other ORTS content outside of this specific trainset. Windows Defender finds nothing. I feel like I've noticed small things like this happening before, like consist files being modified so that an eng or wag was removed thus breaking the consist, or the name line of a wag or eng file getting modified/deleted. But that was so rare, and so one-off that I couldn't be sure if it was my own error. But this.....I'm sure.

    Anyway, the only way I see to fix it is to pull up the individual files from my backup and copy/paste them. Which is annoying and time consuming, but not the end of the world. I'd just like to make sure it doesn't happen again... And am curious if anybody else has seen this phenomenon.





  • yellowdog
    1500 Post Veteran



    • Nov 1999
    • 1586
    • .
    • MSOR

    #2
    Something similar is happening with wagons in the same folder, except they have been overwritten with information from a BLW/ZT freight car (NS_9.s)

    First picture is the affected file, second picture is taken from my backup file and shows how it should look. Again, all wags in this trainset folder with an OpenRails subfolder appear to have been impacted.

    inc_file_error4.jpg

    inc_file_error5.jpg

    Comment

    • yellowdog
      1500 Post Veteran



      • Nov 1999
      • 1586
      • .
      • MSOR

      #3
      A little bit more info
      I noticed that all these affected files were modified on 9/24/2025. I did a search of my system for all files modified that same date. Probably 98% were files in the Microsoft Games/Train Simulator subfolders. It seemed to be pretty indiscriminate file types, but mostly text files--.srv, .con, .sd, .wag, .eng. But also some .ace and .png, etc. There's no way I could check them all, but a spot check seemed to indicate things like .sd and .con files had no obvious changes. And even wag and eng files seemed unaffected as long as there was no Openrails subfolder involved. But, again, impossible to check them all and even more impossible to do a line-by-line review of each. I'm not exactly sure what happened on 9/24/2025, but I do know this was about a week after the release of Open Rails 1.6, and probably coincides with me getting around to installing it (and also maybe when I updated the New Years MG version, but I can't be sure about that). And I can say that so far, that Train Simulator folder content is all I've loaded into OpenRails (i.e. I haven't yet pulled up Trainsimulations routes or mini-routes). Not sure if one of those installs borked my files. (Yes I do install them in their own separate folders, not within the main content folders.)
      Last edited by yellowdog; 11-01-2025, 15:24.

      Comment

      • slipperman
        3500 Post Veteran



        • May 2010
        • 3787
        • Worksop, UK
        • MSOR

        #4
        Hi,
        As far as I am aware, Open Rails only reads files and doesn't have the capability to rewrite/overwrite anything.
        I admit that I could be totally mistaken but I don't know why OR SHOULD be able to write any files.

        Could it be due to a BIG fault in the Windows filing system on your PC?

        Maybe you've got some AI thing working against you on your PC

        Cheers,
        Ged

        Comment

        • ossie
          1000 Post Veteran and Moderator



          • May 2010
          • 1298
          • Melbourne, Australia
          • MSOR

          #5
          I can see why you're wondering about what forum to post in yellowdog. I'm with Ged as far as believing OR doesn't need to write, edit files etc but what you're describing seems very strange, especially given your 1.6 installation date. Hopefully someone a lot more tech savvy than me can jump in and help but my guess would be if it was HD errors, a virus etc you'd be seeing issues across your system. The fact it's all TS related and the files names aren't being changed but their content is being perfectly overwritten with other TS related content rather than just corrupted goes beyond odd. Hopefully someone has some ideas/solutions, but if not, it's a good reminder of the importance of backups to all of us. Good luck!
          Cheers!
          Pete

          Comment

          • yellowdog
            1500 Post Veteran



            • Nov 1999
            • 1586
            • .
            • MSOR

            #6
            Doing more digging on this today. It looks like the vast majority of files that are impacted are the .sd files in the SHAPES folders of all the routes. While spot checking, it seems that what got modified was an extra line at the line 2 position, bumping line 2 down to line 3 and creating a blank line at line 2. So it didn't overwrite the content in a drastic way like the eng/wag files. I don't know enough to know how that change might impact the operation of .sd files, but I'm replacing all of them from backups just in case.

            I wonder if TSRE might have the capability to overwrite files like this? I'm on the latest release, albeit from the forum download not the file library download.

            The only other thing it looks like I did to my system on that date was update Nvidia graphics card driver. I wouldn't think the two would be related, but....?

            Comment

            • renem
              Member

              • Apr 2007
              • 93
              • Frederiksberg, Denmark

              #7
              I have the same experience.

              Paths:
              D:\Miniroute1\Trains\Trainset\Enginename\OpenRails
              Or:
              D:\Miniroute1\Trains\Trainset\Enginename\Removed

              The subfolders OpenRails contain the ORTS-specific eng files.
              The subfolders Removed contain engines that are not actually in use.

              All eng files in the subfolders are overwritten. Eng files in the Enginename folders are not overwritten. Wag files and other files ar not affected.

              The files that are overwritten are overwritten with a file named FJG_BurroCrane.eng. This is the last eng file in the last folder containing eng files in the Trainset folder. The files are overwritten without changing the original filename.

              The changes happened May 11, this year.

              The actual Miniroute affected contains US routes and equipment. I have other Miniroutes too. They are not affected.

              I thought something was wrong on my system only, but now I can see others have the same experience.

              I think something similar happened for me many, many years ago. I can only remember that some wag files were effected, but I cannot remember any other details.

              I hope my experience can help to find the source of this behaviour.

              Regards
              René

              Comment

              • yellowdog
                1500 Post Veteran



                • Nov 1999
                • 1586
                • .
                • MSOR

                #8
                Thank you for posting, Rene'

                I'm sorry you've also experienced this, but am glad that we have more evidence of it occurring.

                If your affected files are dated May 11, that would rule out Open Rails 1.6x being the issue. Are you using TSRE or other tools? The only other thing I can think I may have run that's specific to these folders would be testing RouteRiter. According to this thread (https://www.trainsim.com/forums/foru...11#post2334053) that was early September, though, and predates the date I saw on all my affected files (9/24/2025).

                Comment

                • crstagg
                  4500 Post Veteran


                  • Nov 1999
                  • 4885
                  • Huntsville, AL
                  • Texan
                  • MSOR

                  #9
                  It sounds more like an executables file installer that the creator had it overwrite ALL files by extension (as in all EXE or all SD files) instead of files by file name.
                  Charles

                  Comment

                  • oper190
                    1000 Post Veteran



                    • May 2010
                    • 1498
                    • Port Charlotte, FL
                    • English
                    • MSOR

                    #10
                    I would check to see if something was installed on your system on that date, might not even be aware of it.
                    Geary "Mr. Hart" Gerhardt - Owner and CEO of Hart Rail Lines, Hart Commuter Railways, and Hart Rail Cars. Also the defunct Hart Electric Transit.
                    Its Your Train Sim World, sim as you please.

                    Comment

                    • Vince
                      6500 Post Veteran

                      • Nov 1999
                      • 6961
                      • Mohave

                      #11
                      Possibly content installed into the Open Rails file structure? (that all gets over-written in am update)
                      vince
                      ............Vince ..............
                      ...... Author NECv4 .......
                      .... LIRR BUILD PHOTOS ....
                      ...... Eschew Obsfucation ......

                      On the The Statue of Liberty in New York Harbor there is a Tablet. On it is written:
                      "Give me your tired, your poor, your huddled masses yearning to breathe free,
                      the wretched refuse of your teeming shore, send these, the homeless, tempest-tossed to me,
                      I lift my lamp beside the golden door!"

                      Comment

                      • eric
                        9500 Post Veteran and Administrator



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

                        #12
                        I don't believe TSRE is writing anything related to SD, ENG, or WAG files.
                        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

                        • renem
                          Member

                          • Apr 2007
                          • 93
                          • Frederiksberg, Denmark

                          #13
                          As mentioned, this happened six months ago. I didn't became aware of the problem before after several days. I assumed bad luck and that I - without being aware - had triggered a malfunction somewhere in the Windows file management system.

                          Looking today, I actually found an eng file, that I have edited and saved exactly the same time as the overwriting happened. However, there is nothing wrong with this file and it is in no way identical to the file that did the overwriting. There is no indication that OpenRails or any utilitiy is to blame. So I still think it is the file managing system. Unfortunately, I have no deeper knowledge in this matter.

                          Comment

                          • pwillard
                            3000 Post Veteran



                            • Nov 1999
                            • 3070
                            • Cumming Ga
                            • ORTS

                            #14
                            This is sort of why I feel that installers have aged like raw fish. Great when released and progressively more dangerous as time marches on. I'm in the camp that feels an installer or batch file did this.
                            http://www.railsimstuff.com
                            Just Blender now, 3DCrafter only when I have to.
                            Formerly The Keystone Works (All Permissions Granted)
                            Things I work on: https://github.com/pwillard

                            Comment

                            Working...