Second freight anim not showing up in the sim

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

    • Nov 1999
    • 702
    • Advance, NC
    • Reasonable attempt at English and Polish

    #1

    Second freight anim not showing up in the sim

    I have to be missing something or have something out of order. The handbrake is visible but not the snowshields.

    Wagon ( WE_SD40-2_7347
    Type ( Engine )
    WagonShape ( WE_SD40-2_7347.s )
    ORTSFreightAnims
    (
    MSTSFreightAnimEnabled ( 2 )
    FreightAnim (SD40SnowShields_Exhaust_Lifter.s 1 1)
    FreightAnim ( SD40FAHandbrake.s 1 1 )
    Size ( 3.318m 4.768m 20.75m )
    Mass ( 181.5t )
    WheelRadius ( 20in )
    CG
  • R. Steele
    3500 Post Veteran

    • Feb 2013
    • 3928
    • known universe
    • ORTS

    #2
    Originally posted by chosenfrozen44
    I have to be missing something or have something out of order. The handbrake is visible but not the snowshields.

    Wagon ( WE_SD40-2_7347
    Type ( Engine )
    WagonShape ( WE_SD40-2_7347.s )
    ORTSFreightAnims
    (
    MSTSFreightAnimEnabled ( 2 )
    FreightAnim (SD40SnowShields_Exhaust_Lifter.s 1 1)
    FreightAnim ( SD40FAHandbrake.s 1 1 ) )
    Size ( 3.318m 4.768m 20.75m )
    Mass ( 181.5t )
    WheelRadius ( 20in )
    From what you've posted looks like there is no closing bracket for the "ORTSFreightAnims" I marked the opening bracket in red. Closing bracket in green? Refer to manual section: 9.3.2 OR specific freight animations and pickups

    Perhaps this will work:
    Code:
    ORTSFreightAnims (
    	MSTSFreightAnimEnabled ( 2 )
    	FreightAnim ( SD40SnowShields_Exhaust_Lifter.s 1 1 )
    	FreightAnim ( SD40FAHandbrake.s 1 1 ) )
    Size ( 3.318m 4.768m 20.75m )
    Last edited by R. Steele; 12-14-2020, 22:37.
    Cheers, Gerry
    "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
    It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
    Forever, ridin' drag in railroad knowledge.
    Audi, Vide, Tace, Si Vis Vivere In Pace​

    https://www.trainsim.com/forums/filedata/fetch?filedataid=79656&type=medium​ https://www.trainsim.com/forums/filedata/fetch?filedataid=79654&type=small

    Comment

    • Rick-MONON
      1500 Post Veteran
      • Feb 2008
      • 1795
      • Elizabethtown, Ky
      • ORTS

      #3
      Never saw it done like that before with 2 MSTSFreightAnimEnabled ( 2 ) and 2 anims, interesting..........

      I know this will work:


      Remove this:

      ORTSFreightAnims
      (
      MSTSFreightAnimEnabled ( 2 )
      FreightAnim (SD40SnowShields_Exhaust_Lifter.s 1 1)
      FreightAnim ( SD40FAHandbrake.s 1 1 )

      Use this:

      ORTSFreightAnims
      (
      MSTSFreightAnimsEnabled ( 1 )
      FreightAnimStatic
      (
      SubType ( Default )
      Shape ( SD40SnowShields_Exhaust_Lifter.s )
      Offset ( 0.0 0.0 0.0 )
      )
      FreightAnimStatic
      (
      SubType ( Default )
      Shape ( SD40FAHandbrake.s )
      Offset ( 0.0 0.0 0.0 )
      )
      )

      ------------ ---------- -----------

      The Offset allows you to move it around if you want to:
      Offset ( 0.0 0.0 0.0 )

      ------------ ---------- -----------

      This will work too:

      ORTSFreightAnims
      (
      MSTSFreightAnimsEnabled ( 1 )
      FreightAnimStatic
      (
      SubType ( Default )
      Shape ( SD40SnowShields_Exhaust_Lifter.s )
      Offset ( 0.0 0.0 0.0 )
      )
      )
      FreightAnim ( SD40FAHandbrake.s 1 1 )
      Last edited by Rick-MONON; 12-15-2020, 07:19.
      Rick

      http:\\mononrr.com

      MONON-2

      sigpic

      Comment

      • dforrestc
        Senior Member
        • Apr 2015
        • 227
        • St. Vincent and the Grenadines
        • ORTS

        #4
        Originally posted by Rick-MONON
        Never saw it done like that before with 2 MSTSFreightAnimEnabled ( 2 ) and 2 anims, interesting..........

        I know this will work:


        Remove this:

        ORTSFreightAnims
        (
        MSTSFreightAnimEnabled ( 2 )
        FreightAnim (SD40SnowShields_Exhaust_Lifter.s 1 1)
        FreightAnim ( SD40FAHandbrake.s 1 1 )


        Use this:

        [B]ORTSFreightAnims
        (
        MSTSFreightAnimsEnabled ( 1 )
        FreightAnimStatic
        (
        SubType ( Default )
        Shape ( SD40SnowShields_Exhaust_Lifter.s )
        Offset ( 0.0 0.0 0.0 )
        )
        FreightAnimStatic
        (
        SubType ( Default )
        Shape ( SD40FAHandbrake.s )
        Offset ( 0.0 0.0 0.0 )
        )
        )

        ------------ ---------- -----------

        The Offset allows you to move it around if you want to:
        Offset ( 0.0 0.0 0.0 )

        ------------ ---------- -----------

        This will work too:

        ORTSFreightAnims
        (
        MSTSFreightAnimsEnabled ( 1 )
        FreightAnimStatic
        (
        SubType ( Default )
        Shape ( SD40SnowShields_Exhaust_Lifter.s )
        Offset ( 0.0 0.0 0.0 )
        )
        )
        FreightAnim ( SD40FAHandbrake.s 1 1 )


        I am now confused. Of the two examples I have highlighted, doesn't the firsts have a missing closing bracket, and the second an additional closing bracket after "Offset ( 0.0 0.0 0.0 )"?

        Comment

        • crstagg
          4500 Post Veteran


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

          #5
          Originally posted by dforrestc

          I am now confused. Of the two examples I have highlighted, doesn't the firsts have a missing closing bracket, and the second an additional closing bracket after "Offset ( 0.0 0.0 0.0 )"?
          First Highlight: YES! That is copied from the OP and is what is wrong with the OP.

          Second Highlight: NO! The first closing bracket closes the opening one on the 5th line. The second one closes the opening on the 2nd line.
          Charles

          Comment

          • Rick-MONON
            1500 Post Veteran
            • Feb 2008
            • 1795
            • Elizabethtown, Ky
            • ORTS

            #6
            Remember this line
            FreightAnim ( SD40FAHandbrake.s 1 1 )

            Is a MSTS code that this line MSTSFreightAnimsEnabled ( 1 ) authorizes to use the FreightAnim ( SD40FAHandbrake.s 1 1 ).

            It is not to be in the ORTSFreightAnims ( area

            I use this all the time
            Rick

            http:\\mononrr.com

            MONON-2

            sigpic

            Comment

            • chosenfrozen44
              Senior Member

              • Nov 1999
              • 702
              • Advance, NC
              • Reasonable attempt at English and Polish

              #7
              Originally posted by Rick-MONON
              Remember this line
              FreightAnim ( SD40FAHandbrake.s 1 1 )

              Is a MSTS code that this line MSTSFreightAnimsEnabled ( 1 ) authorizes to use the FreightAnim ( SD40FAHandbrake.s 1 1 ).

              It is not to be in the ORTSFreightAnims ( area

              I use this all the time

              Thank you all! There a reason why you all are some of the best in the hobby! Success! Went with Rick's code and it did the trick!

              Thanks again!
              CG

              Comment

              • R. Steele
                3500 Post Veteran

                • Feb 2013
                • 3928
                • known universe
                • ORTS

                #8
                Thread at ET about OR freight animations FYI: http://www.elvastower.com/forums/ind...10#entry266110
                Cheers, Gerry
                "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
                It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
                Forever, ridin' drag in railroad knowledge.
                Audi, Vide, Tace, Si Vis Vivere In Pace​

                https://www.trainsim.com/forums/filedata/fetch?filedataid=79656&type=medium​ https://www.trainsim.com/forums/filedata/fetch?filedataid=79654&type=small

                Comment

                • chosenfrozen44
                  Senior Member

                  • Nov 1999
                  • 702
                  • Advance, NC
                  • Reasonable attempt at English and Polish

                  #9
                  Originally posted by R. Steele
                  Thread at ET about OR freight animations FYI: http://www.elvastower.com/forums/ind...10#entry266110

                  Thanks Gerry! Excellent discussion at ET. Wish I can get in ....always difficult to operate in ET.
                  CG

                  Comment

                  Working...