freightanimation well car question.....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amtrak115
    Senior Member


    • Oct 2005
    • 296
    • Parker, TX
    • General

    #1

    freightanimation well car question.....

    Does this work on ORTS and/or TSRE???

    in my trainset direction I create a new folder called Amazon_Box

    Amazon_Box Folder Contains....
    53b-53b_Amazon.ace
    53b-53b_Amazon.s

    in the wag file for a well car...
    Wagon ( DTTX_724646_A_AMZ
    Type ( Freight )
    WagonShape ( DTTX_724646_A.s )
    FreightAnim ( ..\Amazon_Box\53b-53b_Amazon.s 1 1 1 )
    Size ( 3.1899m 6.1174599m 23.43m )
    Mass ( 44.39t )
    WheelRadius ( 33in/2 )

    All i get in TSRE is the well car with Pink Containers....
  • wmuzeke
    Member



    • Jan 2021
    • 89
    • Sacramento, CA
    • General

    #2
    FreightAnim ( ..\Amazon_Box\53b-53b_Amazon.s 1 1 1 )
    I think after the shape file there should be two ones, not three.

    You can also use:
    Code:
        ORTSFreightAnims (
            FreightAnimStatic (
                Subtype ( Default )
                Shape( ..\Amazon_Box\53b-53b_Amazon.s )
                Offset ( 0, 0, 0 )
                Visibility ( "Outside" )
            )        
        )
    (ORTS manual section 9.3.2)

    Comment

    • amtrak115
      Senior Member


      • Oct 2005
      • 296
      • Parker, TX
      • General

      #3
      this is what I get when I use the statement.."FreightAnim ( ..\Amazon_Box\53b-53b_Amazon.s 1 1 1 )" freightanims.png my thinking was since the .s file was in the Amazon_Box folder, then the .ace file should also be there. but I guess I'm missing something. BTW this was using TSRE-Genx's consist editor. ORTS just shows an empty well car...

      Comment

      • oper190
        1500 Post Veteran



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

        #4
        Originally posted by amtrak115
        ORTS just shows an empty well car...
        If you are missing the texture then OR won't draw it, thus it will be missing in game.
        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

        • ossie
          1000 Post Veteran and Moderator



          • May 2010
          • 1302
          • Melbourne, Australia
          • MSOR

          #5
          I don't think I've ever seen anything displayed pink in the TSRE consist editor before but normally if it was a case of missing textures, in the sim you'd have "grey blocks" where the containers should be. The empty wells make me think it's just not picking up the shape at all. I'm not an expert on include files but as a first step, I'd copy the shape file and textures you made into the same folder the well cars are in and see if you can get them to show up with a FA linked directly to them. If that works then you'd need one of the include file experts to weigh in but if you're still not getting the containers in the sim then my guess is there's an issue with the shape file itself.

          Edit.... just as a matter of interest (and I'm not sure if it actually makes a difference) before you move anything, try using the ORTS FA format in the .wag file as a first step and see if that gets you a different result.

          ORTSFreightAnims
          (
          MSTSFreightAnimsEnabled ( 0 )
          FreightAnimStatic
          (
          SubType ( Default )
          Shape ( ..\Amazon_Box\53b-53b_Amazon.s )
          Offset ( 0.0 -0.00 0.000 )
          )
          )
          Last edited by ossie; Today, 03:52.
          Cheers!
          Pete

          Comment

          • scottb613
            2500 Post Veteran


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

            #6
            Hi Folks,

            I checked the code, and this looks like a TSRE texture-path issue. TSRE finds the container shape in the Amazon_Box folder, but still looks for its textures in the well car’s folder. That would explain the pink containers.

            As a workaround, copy the container’s ACE texture file(s) into the well car’s folder. Keep the exact filenames referenced inside the container shape, then restart TSRE.

            Removing the third “1” won’t resolve the texture issue, and switching to ORTSFreightAnims alone won’t correct TSRE’s texture lookup either.

            When time permits, I intend to fix TSRE so freight animation textures are located relative to the referenced shape’s folder. That should allow the shared Amazon_Box arrangement to work without duplicating textures.

            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

            • ossie
              1000 Post Veteran and Moderator



              • May 2010
              • 1302
              • Melbourne, Australia
              • MSOR

              #7
              Sorry if it's a dumb question Scott, but I know nothing about coding and not a lot about TSRE, but what's the relationship (for want of a better word) between the containers being displayed pink in TSRE and not showing up at all in the sim? I've seen FA's create oddities in TSRE displays (example attached) but not being carried over into the sim. Previously I think every experience I've had with a FA not showing up in the sim has come down to either a wag/eng file error or a problem with the actual shape file so I'm curious about what you've identified with TSRE being the cause here. Apologies if I haven't phrased this well. It's well past my bedtime!

              Screenshot (605).png
              Cheers!
              Pete

              Comment

              • scottb613
                2500 Post Veteran


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

                #8
                Hi Pete,

                You’ve phrased it clearly, and I should have made that distinction clearer.

                The issue I identified is in GenX’s preview code: it loads the container shape from the shared folder but looks for its textures in the well car’s folder. Pink is GenX’s fallback when it cannot display those textures.

                That does not establish why the containers are missing in Open Rails. Open Rails reads the content independently, so correcting GenX’s display code won’t correct a separate WAG or shape-file problem in the sim.

                Your suggestion to put both the shape and its textures in the well car’s folder, then reference the shape directly, is a useful diagnostic. If it appears in Open Rails that way, the relative-path arrangement needs checking. If it still doesn’t appear, the actual WAG, shape and Open Rails log would be the next things to examine.

                I’ve prepared a fix for GenX’s texture lookup, but it still needs building and testing. The Open Rails symptom remains unresolved.

                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

                • ossie
                  1000 Post Veteran and Moderator



                  • May 2010
                  • 1302
                  • Melbourne, Australia
                  • MSOR

                  #9
                  Thanks for the extra info and clarification Scott, much appreciated!
                  Cheers!
                  Pete

                  Comment

                  • c44d9w
                    Member
                    • May 2010
                    • 59

                    #10
                    Originally posted by ossie
                    ... if it was a case of missing textures, in the sim you'd have "grey blocks" where the containers should be.
                    This was recently changed. There was a brief period where missing textures in the sim were shown as pink, to make it more obvious to content designers that a texture is missing. This was then changed back to grey, unless "Show Shape Warnings" in the Experimental Options was checked. With shape warnings enabled, missing textures will show in pink.

                    Comment

                    • amtrak115
                      Senior Member


                      • Oct 2005
                      • 296
                      • Parker, TX
                      • General

                      #11
                      Scott...you were right. changing the wag file line to "FreightAnim ( ..\Amazon_Box\53b-53b_Amazon.s 1 1 )" created the pink container issue above...(I deleted the third one...it didn't make a difference)...but your statement that the ".s" file would look back at the directory the wag file was in...I uncompressed the .S file change the image line to
                      image ( "..\\Amazon_Box\\53b-53b_Amazon.ace" ) Corrected the issue in TSRE-Genx. (I had to add the quote markings" to make it work right) freightanims1.png
                      Now to see it works in ORTS....

                      Comment

                      • amtrak115
                        Senior Member


                        • Oct 2005
                        • 296
                        • Parker, TX
                        • General

                        #12
                        it didn't work in ORTS....BTW...found this suggestion in an old post (2014) on Elvas Tower......

                        Comment

                        • scottb613
                          2500 Post Veteran


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

                          #13
                          Hi Barry,

                          Thanks for testing and reporting back. Adding that path inside the shape’s image entry gets GenX to reach the texture from the wagon folder, which supports the texture-path issue I found. Your test also confirms that removing the third “1” makes no difference to this display problem.

                          The fix I’ve prepared should let GenX find textures beside the freight shape without needing that internal image-path workaround. It still needs building and testing.

                          I also saw your follow-up that it still doesn’t appear in Open Rails. The next useful evidence would be the OpenRailsLog.txt from that run, particularly any messages naming the container shape or texture, together with the WAG actually being loaded. That should help distinguish a loading/path problem from another issue in the content.

                          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

                          • amtrak115
                            Senior Member


                            • Oct 2005
                            • 296
                            • Parker, TX
                            • General

                            #14
                            Putting both the shape and its textures in the well car’s folder works on both TSRE-Genx and ORTS...but I wanted to have have upwards of 50 well cars with the same shape. It seems wasteful to have to copy the shape and texture into 50 different folders.....

                            Comment

                            • scottb613
                              2500 Post Veteran


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

                              #15
                              Hi Barry,

                              I agree—copying the same container shape and texture into 50 different folders would be wasteful.

                              Perhaps Erick Cantu’s NAVS cars setup would help here. He keeps reusable shapes and common textures in a shared folder, then has the individual wagon files point to them. He also allows separate paint schemes where needed.

                              For your identical Amazon containers, the same principle should work:

                              - Keep one container shape and its texture in Amazon_Box.
                              - Have each well car’s WAG file point to that shared container shape.
                              - Make sure the texture reference inside the container shape points to the shared Amazon_Box texture.

                              That gives all 50 well cars access to the same files. Changing the shared container texture would then change its appearance on every car using it.

                              You’ve already tried part of that arrangement, so I wouldn’t promise that simply copying Erick’s layout will solve the remaining Open Rails issue. But your test showing that both programs work when everything is together is useful—it points toward the folder references needing attention.

                              I’d get the shared arrangement working with one well car in both programs first, then apply that same reference to the others.

                              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

                              Working...