Horn activated ditchlights

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huha435
    Member
    • Jul 2019
    • 43

    #1

    Horn activated ditchlights

    Would anyone in here be interested in having the horn operate to ditchlights in OpenRails 1.5.1
    So far I've got it to work on SLI and MLT locomotives. Heres a list of what I've got so far.

    NS 38-2 High Hood 5075 5088 5219 5221 5222

    UP SD70ACe 1982

    SD70MAC 9490 9782 9848 9985

    NS 40-2 6103 6115 6135

    BN sd40-2 6782 with freight anamation Parts6969.s

    BNSF C44_9W 1109 ( TrainSim Starter Rt ) BNSF_C44_9W_969

    BNSF ES44AC 5817 5852 5858 ( TrainSim Starter Rt )

    Conrail SD60i 5630 NS SD60i 6751

    SD 80mac 7202 7212

    MRL_SD45_330 with ditchlight_mrl

    Train Simulations Starter Rt P 55 & P 58

    Conrail SD 70mac 4130

  • Curt C
    1000 Post Veteran

    • Jul 2001
    • 1032
    • UP's dead Santa Barbara Sub
    • General

    #2
    I'm not sure that I fully understand your question, but if you're asking for any interest in having the horn activate flashing ditch-lights, then the only prototypical ones that I know of (from your list above) are NS, Conrail, and some MRL engines. I see a lot of BNSF and UP engines out in my area, and have never seen flashing ditch-lights.

    Comment

    • anderson martins
      Senior Member

      • Feb 2005
      • 553
      • belo horizonte, minas gerais, brasil

      #3
      Originally posted by huha435
      Would anyone in here be interested in having the horn operate to ditchlights in OpenRails 1.5.1
      So far I've got it to work on SLI and MLT locomotives. Heres a list of what I've got so far.

      NS 38-2 High Hood 5075 5088 5219 5221 5222

      UP SD70ACe 1982

      SD70MAC 9490 9782 9848 9985

      NS 40-2 6103 6115 6135

      BN sd40-2 6782 with freight anamation Parts6969.s

      BNSF C44_9W 1109 ( TrainSim Starter Rt ) BNSF_C44_9W_969

      BNSF ES44AC 5817 5852 5858 ( TrainSim Starter Rt )

      Conrail SD60i 5630 NS SD60i 6751

      SD 80mac 7202 7212

      MRL_SD45_330 with ditchlight_mrl

      Train Simulations Starter Rt P 55 & P 58

      Conrail SD 70mac 4130
      Very good idea.

      When you share how to do it, add me to the list.
      Please confirm that it only works in this version OpenRails 1.5.1.
      Chimbica Dash8

      Comment

      • wwhall
        Senior Member


        • May 2010
        • 652
        • Kansas
        • MSOR

        #4
        Originally posted by Curt C
        I'm not sure that I fully understand your question, but if you're asking for any interest in having the horn activate flashing ditch-lights, then the only prototypical ones that I know of (from your list above) are NS, Conrail, and some MRL engines. I see a lot of BNSF and UP engines out in my area, and have never seen flashing ditch-lights.
        I believe that some of the former SP AC4400s rostered by the UP have flashing ditch lights. They are rare, but I've seen a couple of UP locos with them.

        Comment

        • huha435
          Member
          • Jul 2019
          • 43

          #5
          Ok . Heres how the horn/ ditchlight work 1 Blast on the horn activates the ditchlights 2 blast on the horn ditchlights start to flash 3 i changed keys on keyboard so that ditchlights stop flashing and stay light . 4 pushing that same key shuts of headlight and ditchlights .
          I make a small tutorial on that along with ditchlights section as soon as possible

          Comment

          • huha435
            Member
            • Jul 2019
            • 43

            #6
            I found that once the ditchlight section was added it'll work on any loco , except steam .

            Comment

            • huha435
              Member
              • Jul 2019
              • 43

              #7
              i'm running OpenRails 1.5.1 . I actually got tired of Monogame working and crashing .

              Comment

              • huha435
                Member
                • Jul 2019
                • 43

                #8

                Here are the files needed to change the ditchlights.
                1 First and foremost backup your files.
                2 Make a test copy of one of the engines from the list.
                3 Change the keyboard layout according to the enclosed pic.
                4 Test it.
                I also added a UP SD70m to the list
                Replace ditch lights.zip

                Comment

                • CSRX
                  13500 Post Veteran



                  • Oct 2005
                  • 13646
                  • Lincoln, ME
                  • English
                  • ORTS

                  #9
                  So when you blow the horn, the lights flash, even in ORTS 1.5.1?
                  I've had several engines set up this way, and they constantly flash in this version, but when in the testing versions, they flash on horn activation.

                  CSX has many locomotives that have flashing ditch lights under horn activation in reality as well.

                  Same with the NBSR SD70M-2 units, which eventually I need to update with these codes..
                  -Shawn K-
                  MEC Mountain Subdivision - Trackwork 70%, Scenery 35%
                  ​

                  Comment

                  • huha435
                    Member
                    • Jul 2019
                    • 43

                    #10
                    The way the lights work described above does work for me in OR 1.5.1
                    Did you put in the horn ( 1 ) and horn ( 2 )
                    Change the keyboard layout where spacebar and and headlight increase go together
                    and headlight decease go to the ( H ) key
                    Ditchlights stay on headlight goes dim
                    Headlights and ditchlights also get shut off with the ( H ) key , no more shift/h
                    Did you change the headlights 2 and 3 where needed.
                    I know , I live near the CSX mainline thru Defiance Oh.

                    Comment

                    • huha435
                      Member
                      • Jul 2019
                      • 43

                      #11
                      Here's a small vid of csx 2 in OR blowing the horn with ditchlights working OR 1.5.1.zip

                      Comment

                      • huha435
                        Member
                        • Jul 2019
                        • 43

                        #12
                        Here is the the flashing ditchlight code . It's the same for every locomotive I did. I marked everything I changed
                        The only other change was to the keyboard layout.
                        ( 1 ) Changed Headlight Increase to Spacebar ( same as the horn )
                        ( 2 ) Changed Headlight Decrease to ( H ) eliminating shift/h to dim headlights.
                        Click OK when keyboard change pops up.
                        This was posted to show my changes and got it to work.
                        Light (
                        comment( Right ditch light )
                        Type ( 0 )
                        Conditions (
                        Headlight ( 3 ) <<<<<<<<Once in awhile lights might need changed from 2 to 3 or vice versa.
                        Unit ( 2 )
                        Horn ( 1 ) <<<<<<<<<<<<<< horn goes here ( 1 ) or ( 2 )
                        )
                        Cycle ( 0 )
                        FadeIn ( 0.5 )
                        FadeOut ( 0.5 )
                        States ( 1
                        State (
                        Duration ( 0.0 )
                        LightColour ( FFFFFFCA )
                        Position ( -0.577 1.83 8.406 )<<<<<<<<<< lights position from ditchlights back up .eng file
                        Transition ( 0 )
                        Radius ( 0.75 )
                        )
                        )
                        )
                        Light (
                        comment( Left ditch light )
                        Type ( 0 )
                        Conditions (
                        Headlight ( 3 ) <<<<<<<<Once in awhile lights might need changed from 2 to 3 or vice versa.
                        Unit ( 2 )
                        Horn ( 1 ) <<<<<<<<<<<<<< horn goes here ( 1 ) or ( 2 )
                        )
                        Cycle ( 0 )
                        FadeIn ( 0.5 )
                        FadeOut ( 0.5 )
                        States ( 1
                        State (
                        Duration ( 0.0 )
                        LightColour ( FFFFFFCA )
                        Position ( 0.577 1.83 8.420 ) )<<<<<<<<<< lights position from ditchlights back up .eng file
                        Transition ( 0 )
                        Radius ( 0.75 )
                        )
                        )
                        )
                        Light (
                        comment( Right ditch light Flashing )
                        Type ( 0 )
                        Conditions (
                        Headlight ( 3 ) <<<<<<<<Once in awhile lights might need changed from 2 to 3 or vice versa.
                        Unit ( 2 )
                        Horn ( 2 ) <<<<<<<<<<<<<< horn goes here ( 1 ) or ( 2 )

                        )
                        Cycle ( 0 )
                        FadeIn ( 0.5 )
                        FadeOut ( 0.5 )
                        States ( 2
                        State (
                        Duration ( 0.6 )
                        LightColour ( FFFFFFCA )
                        Position ( -0.577 1.83 8.406 ))<<<<<<<<<< lights position from ditchlights back up .eng file
                        Transition ( 1 )
                        Radius ( 0.750 )
                        )
                        State (
                        Duration ( 0.6 )
                        LightColour ( 30FFFFCA )
                        Position ( -0.577 1.83 8.406 )<<<<< )<<<<<<<<<< lights position from ditchlights back up .eng file

                        Transition ( 1 )
                        Radius ( 0.750 )
                        )
                        )
                        )
                        Light (
                        comment( Left ditch light Flashing )
                        Type ( 0 )
                        Conditions (
                        Headlight ( 3 ) <<<<<<<<Once in awhile lights might need changed from 2 to 3 or vice versa.
                        Unit ( 2 )
                        Horn ( 2 ) <<<<<<<<<<<<<< horn goes here ( 1 ) or ( 2 )
                        )
                        Cycle ( 0 )
                        FadeIn ( 0.5 )
                        FadeOut ( 0.5 )
                        States ( 2
                        State (
                        Duration ( 0.6 )
                        LightColour ( 30FFFFCA )
                        Position ( 0.577 1.83 8.406 )<<<<<<<<<< lights position from ditchlights back up .eng file
                        Transition ( 1 )
                        Radius ( 0.750 )
                        )
                        State (
                        Duration ( 0.6 )
                        LightColour ( FFFFFFCA )
                        Position ( 0.577 1.83 8.406 )<<<<<<<< lights position from ditchlights back up .eng file
                        Transition ( 1 )
                        Radius ( 0.750 )
                        )
                        )
                        )
                        Last edited by huha435; 03-22-2025, 05:08.

                        Comment

                        • CSRX
                          13500 Post Veteran



                          • Oct 2005
                          • 13646
                          • Lincoln, ME
                          • English
                          • ORTS

                          #13
                          You really don't need to go through all that hassle with the coding set up for ORTS 1.6 and testing versions. Especially changing the key bindings for it to actually work. Works fine with just the quick code changes.

                          I'll have to post what I'm referring to when I get the chance to actually sit down at the computer. I do know Brody W has done several codes for me for it to work without key bindings changes needed.

                          1.5.1 is great, but when it limits this feature to the point of key bindings changes just to make something work, it's time to move on from it.
                          -Shawn K-
                          MEC Mountain Subdivision - Trackwork 70%, Scenery 35%
                          ​

                          Comment

                          • CSRX
                            13500 Post Veteran



                            • Oct 2005
                            • 13646
                            • Lincoln, ME
                            • English
                            • ORTS

                            #14
                            Attached is the LSRC SD70MAC engine file, which shows the coding used for the ditch lights to flash in the current testing version, soon to be ORTS 1.6 and the MG versions of ORTS. These do not work in 1.5.1. With this coding, you do not need to make changes to the key bindings.

                            Needless to say, it might be worthwhile to make note that your current coding and set up will work fine in ORTS 1.5.1 but will need adjustments again in the newer versions. I guess that is kind of what I was getting at with this whole questioning the method and changes.
                            Attached Files
                            -Shawn K-
                            MEC Mountain Subdivision - Trackwork 70%, Scenery 35%
                            ​

                            Comment

                            • huha435
                              Member
                              • Jul 2019
                              • 43

                              #15
                              Thank you for the update. I've tried the monogames and they kept crashing for me. So I read the docs and got these results and it worked for me. I didn't know a new release was coming so soon.

                              Comment

                              Working...