Bell No Longer Rings When Blowing Horn on US Trains

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kuckoo
    Senior Member
    • May 2021
    • 106

    #1

    Bell No Longer Rings When Blowing Horn on US Trains

    After running TrainSim's Mac Tier sub (first time running a non-US route since recently installing MSTS and OR), the bell no longer rings when blowing the whistle while running US trains on US routes. Manual operation of the bell still works.

    Issue persists after multiple restarts.

    I'm new with OR so I'm at a loss on how to correct this, or knowing if I'm doing anything incorrectly.

    Thanks.
    "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."
  • niknak
    1000 Post Veteran


    • Nov 1999
    • 1254
    • UK.
    • MSOR

    #2
    Hi, Have you checked this line in the relevant eng file? DoesHornTriggerBell ( 0 ) If it reads like that then just change the (0) to (1)
    Regards,

    Nick

    ( ' boffin0_reprised ' on TikTok )




    Cyberpower Desktop with AMD Ryzen 5 CPU /. 16GB RAM /. ATI AMD Radeon RX6700 12GB graphics /. Windows 11 Home 64bit /. RailDriver /. Partridge in a pear tree....​

    Comment

    • Kuckoo
      Senior Member
      • May 2021
      • 106

      #3
      Originally posted by niknak
      Hi, Have you checked this line in the relevant eng file? DoesHornTriggerBell ( 0 ) If it reads like that then just change the (0) to (1)
      Yep that was it. Found four such instances on BNSF trains.

      THanks.
      "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

      Comment

      • R. Steele
        3500 Post Veteran

        • Feb 2013
        • 3928
        • known universe
        • ORTS

        #4
        Originally posted by Kuckoo
        Yep that was it. Found four such instances on BNSF trains.

        THanks.
        There are quite a few tools that folks in this hobby use to make chores like this faster and easier...for example one such tool is Search and Replace >>> http://www.funduc.com/ -- there are other utilities like this, other forum members have their favorites...all are good and do the same task. They all make the replacement or changing of values and terms in any of the files quick and easy.
        A good search & replace tool will allow exclusion or inclusion of certain directories or files, using binary searches instead of single lines, and a variety of other flags to modify the search. Three examples below.
        bandicam 2021-05-10 13-01-17-269.jpg
        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

        • dcarleton
          1000 Post Veteran


          • Nov 2008
          • 1004
          • MSOR

          #5
          FYI, in real life the horn does not always ring the bell.

          Comment

          • Kuckoo
            Senior Member
            • May 2021
            • 106

            #6
            Originally posted by R. Steele
            There are quite a few tools that folks in this hobby use to make chores like this faster and easier...for example one such tool is Search and Replace >>> http://www.funduc.com/ -- there are other utilities like this, other forum members have their favorites...all are good and do the same task. They all make the replacement or changing of values and terms in any of the files quick and easy.
            A good search & replace tool will allow exclusion or inclusion of certain directories or files, using binary searches instead of single lines, and a variety of other flags to modify the search. Three examples below.
            [ATTACH=CONFIG]81645[/ATTACH]
            Thanks. I've been using Notepad++ for years. Used it in this case as well.
            "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

            Comment

            • R. Steele
              3500 Post Veteran

              • Feb 2013
              • 3928
              • known universe
              • ORTS

              #7
              I use Notepad++ also, I especially like the way it justifies the files to the left hand margin and then using the dotted lines to align brackets...also use ConText quite a lot for normal file work.
              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

              • crstagg
                4500 Post Veteran


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

                #8
                Originally posted by Kuckoo
                Thanks. I've been using Notepad++ for years. Used it in this case as well.

                Sounds like you did not understand his point. Notepad++ only searches and replaces in the ONE open text file. Where as the program Search and Replace looks in ALL (or only certain type) files throughout a folder for the specified phrase and replaces all occurrences.

                Example: Point Search and Replace to your Trainset folder, tell it to only look at .ENG files for the phrase "DoesHornTriggerBell ( 0 )" and replace with "DoesHornTriggerBell ( 1 )". S&R then searches Trainset folder and every subfolder, looks in 2346 files and finds 75 occurrences and then you can replace all or selective choose which you want to replace. Beats opening 2346 ENG files in Notepad++ and looking for the phrase.
                Charles

                Comment

                • Kuckoo
                  Senior Member
                  • May 2021
                  • 106

                  #9
                  Originally posted by crstagg
                  Sounds like you did not understand his point. Notepad++ only searches and replaces in the ONE open text file. Where as the program Search and Replace looks in ALL (or only certain type) files throughout a folder for the specified phrase and replaces all occurrences.

                  Example: Point Search and Replace to your Trainset folder, tell it to only look at .ENG files for the phrase "DoesHornTriggerBell ( 0 )" and replace with "DoesHornTriggerBell ( 1 )". S&R then searches Trainset folder and every subfolder, looks in 2346 files and finds 75 occurrences and then you can replace all or selective choose which you want to replace. Beats opening 2346 ENG files in Notepad++ and looking for the phrase.


                  Notepad++ can search and replace text located in multiple files and in multiple subfolders. It's been capable of this since forever ago, and it's one of the reasons why it was created in the first place:

                  NotepadPlusPlus.jpg

                  As I said I've been using this utility for years, modifying hundreds, if not thousands of pages of dat files etc. for multiple applications.
                  "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

                  Comment

                  • R. Steele
                    3500 Post Veteran

                    • Feb 2013
                    • 3928
                    • known universe
                    • ORTS

                    #10
                    Originally posted by Kuckoo
                    Notepad++ can search and replace text located in multiple files and in multiple subfolders. It's been capable of this since forever ago, and it's one of the reasons why it was created in the first place:

                    [ATTACH=CONFIG]81647[/ATTACH]

                    As I said I've been using this utility for years, modifying hundreds, if not thousands of pages of dat files etc. for multiple applications.
                    Does Notepad++ have a binary search & replace mode? ( I could never figure out how ...course I didn't spend much time with it ...as Search&Rpleace has this option )
                    For instance replace this section of code in engine files
                    Code:
                    Exhaust1
                       (
                        0 4.72 -3.515
                        0 1 0
                        0.13
                       )
                    with this

                    Code:
                    Exhaust1
                       (
                        0 4.52 -3.515
                        0 1 0
                        0.23
                       )
                    would be easy with S&R. Using other optional flags increases the complexity of the operation.

                    But like I stated in my original reply...for simple search&replace operations most any S&R option will do, even most word doc programs have this option.
                    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

                    • Kuckoo
                      Senior Member
                      • May 2021
                      • 106

                      #11
                      Originally posted by R. Steele
                      Does Notepad++ have a binary search & replace mode?
                      It depends on the extension that you filter for the search. I think Notepad++ edits binaries by default.

                      Be mindful of the search parameters. For example, if searching a string in an executable it is possible that binaries containing characters in the string could be modified as well, ruining the .exe. So be careful when setting up a search.

                      Notepad++ does have a Hex editor plugin available available for download (HexEditor.dll).

                      Here is the Notepad++ User Manual.

                      As far as plain integers and decimals are concerned (like what you posted in your reply) you can filter the search and treat it like any other search and replace, using extended mode and /n and /r as needed.
                      Last edited by Kuckoo; 05-11-2021, 14:55.
                      "My dog got loose once, what I did was show him his leash & he came running back, thinking it was time for a walk - stupid dog."

                      Comment

                      • R. Steele
                        3500 Post Veteran

                        • Feb 2013
                        • 3928
                        • known universe
                        • ORTS

                        #12
                        Ahhh, thanks Kuckoo...good to know. I've found Notepad++ to be among the many useful tools you need in this hobby ( if you treat it like virtual model railroading and like to get in the basement and do some work on the layout....strained metaphor, maybe...but you get the idea)
                        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

                        Working...