How to uncompress S files ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lvlender
    Active Member
    • Feb 2024
    • 158
    • Loudon, TN
    • english
    • MSOR

    #1

    How to uncompress S files ?

    seems I keep tripping across readme files that direct me to modify 's' files. Example...

    Uncompress each S file and rename the Ace file to

    BO_C40-8_7587.ace
    BO_C40-8_7588.ace
    CO_C40-8_7589.ace
    CO_C40-8_7590.ace
    CO_C40-8_7585.ace
    CO_C40-8_7586.ace

    Recompress S file.


    Is there a tutorial or WIKI on how to do this? Pehaps someone could porvide guidance?🤔​
  • yellowdog
    1500 Post Veteran



    • Nov 1999
    • 1586
    • .
    • MSOR

    #2
    Shape file manager

    Comment

    • eric
      9500 Post Veteran and Administrator



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

      #3
      You can also use FFEdit Sub v1.2



      It's not necessary to re-compress the file unless you want to. I tend not to recompress shapefiles for rolling stock.
      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

      • lvlender
        Active Member
        • Feb 2024
        • 158
        • Loudon, TN
        • english
        • MSOR

        #4
        Hi Eric,

        used that utility you pointed me to (thanks!). I groped around in the utility and was successful in uncompressing one of the 'S' files I am supposed to make changes to. Per the readme file in the locomotive install, I am to change the name of an ACE file that the 'S' file is pointing to. I dutifully scoured the 'S' file but, don't find any reference to an Ace FILE. Where should I be looking?

        Comment

        • eric
          9500 Post Veteran and Administrator



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

          #5
          Search for the word "image" --- that should list any ACE or DDS files used by the shapefile.
          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

          • OmenRotcod
            Senior Member
            • Apr 2022
            • 153
            • Calgary, Alberta, Canada
            • MSOR

            #6
            Eric, I've noticed that if I don't re-compress the shape file, the loco/wagon does not show up in the sim (Activity). Has anyone else noticed this?

            David

            Comment

            • lvlender
              Active Member
              • Feb 2024
              • 158
              • Loudon, TN
              • english
              • MSOR

              #7
              Hi Eric,

              yes, I did a search of the word, image, and got the following...

              images ( 3
              image ( UP_C40-8_9159.dds )
              image ( C40_Interior.dds )
              image ( C40_Windows.dds )
              ​
              I'm confused. Does the 'S' files optionally use either ACE or DDS files to display the engine's 'skin'? Should I be renaming the DDS file to the name(s) that the download's readme instructions say?

              BTW, the engine download I am attempting to install is Trainsim File ID 82171. I noted that the sumitter of File ID 82171 has UP_C40-8_9159.dds as part of the install package. I may be thick but, just changing the title of a file does not alter its contents, right? How does the author expect me to change the skin to the correct C&O colors ?

              As a preliminary test I placed the C&O files into my D:\Train_Simulation Routes\TRAINS\TRAINSET folder. The engine displayed in my TRES Consist Editor as a typical UP colors with 9159 as its I.D. I am awaiting your help before I start altering the uncompressed 'S' file...
              Last edited by lvlender; 08-19-2024, 19:41.

              Comment

              • pwillard
                3000 Post Veteran



                • Nov 1999
                • 3070
                • Cumming Ga
                • ORTS

                #8
                Eric, I've noticed that if I don't re-compress the shape file, the loco/wagon does not show up in the sim (Activity). Has anyone else noticed this?
                I can't say I've ever experienced compressing shape files as being required.
                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

                • eric
                  9500 Post Veteran and Administrator



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

                  #9
                  Originally posted by lvlender
                  I'm confused. Does the 'S' files optionally use either ACE or DDS files to display the engine's 'skin'? Should I be renaming the DDS file to the name(s) that the download's readme instructions say?
                  Yes... for the one texture mentioned, change the S to refer to the applicable ACE filename as an ACE. Leave the interior and windows textures untouched as DDS.

                  ORTS should be capable of rendering mixed ACE and DDS within the same shapefile.
                  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

                  • lvlender
                    Active Member
                    • Feb 2024
                    • 158
                    • Loudon, TN
                    • english
                    • MSOR

                    #10
                    Hi Eric,

                    the file you instructed me to find is, in fact, a DDS file already. So should I change the DDS files title from UP_C40-8_9159.dds​ to BO_C40-8_7587.DDS ? And when I do, how will that change the color of the engine from UP orange to B&O solid dark blue?

                    C40 locomotive.jpg
                    Last edited by lvlender; 08-19-2024, 19:55.

                    Comment

                    • lvlender
                      Active Member
                      • Feb 2024
                      • 158
                      • Loudon, TN
                      • english
                      • MSOR

                      #11
                      OKAY, I got it. What the author of File ID 82171 intended was for the image line inside the 'S' file to be changed from UP_C40-8_9159.DDS​ to BO_C40-8_7587.ace​. He does supply both files in his download. Once I renamed the file to the ACE file, everything displayed okay.
                      BTW, as a safety measure I opted to re-compress the 'S' file. That utility tool is sure neat. Thanks for sharing it with me. Have a great evening.

                      Comment

                      • oper190
                        1000 Post Veteran



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

                        #12
                        Originally posted by OmenRotcod
                        Eric, I've noticed that if I don't re-compress the shape file, the loco/wagon does not show up in the sim (Activity). Has anyone else noticed this?
                        Yes I've experienced the same issue. They do not display in OR nor in Shape Viewer. Apparently MSTS was more forgiving in that regard as they would display there.
                        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

                        • eric
                          9500 Post Veteran and Administrator



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

                          #13
                          I've seen Shapeviewer and OR choke on uncompressed files where the encoding wasn't correct i.e. not in Unicode.

                          That said, 100% of the testing I do on buildings, rolling stock and track systems I've built are uncompressed, and I've yet to see that happen when the encoding is correct.
                          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

                          • bootednancy
                            Senior Member

                            • Jun 2003
                            • 549
                            • New Jersey, United States

                            #14
                            Uncompressed S files chew up a LOT of memory space..............look at a compressed file.....maybe 60-80 mb...........Uncompress the same file and it will be over 2000 mb
                            When done editing, COMPRESS THE FILE
                            Doug

                            Happiness is when the AI-trains appear where you want them to

                            Comment

                            • eric
                              9500 Post Veteran and Administrator



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

                              #15
                              Sure, it's a best practice. But... when you're testing something out, it's also an unneeded nuisance.
                              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...