freightanimation well car question.....

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


    • Oct 2005
    • 293
    • 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
      • 293
      • 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
            • 2854
            • 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
                • 2854
                • 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

                  Working...