Adding Automatic Switch Sounds in Openrails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • R. Steele
    3500 Post Veteran

    • Feb 2013
    • 3928
    • known universe
    • ORTS

    #46
    Originally posted by slipperman
    ...** Open the main Mactier .trk file and scroll to the bottom. There, you'll see 56 followed by 16 x close brackets - delete all these characters to leave just one close bracket following the "TempRestrictedSpeed" line.
    Cheers,
    Ged
    That's a humdinger that I'd forgotten about ( I keep a log in each route of the changes I've made ) and I noted that fix.
    Ged, really fine work on the the sound problems outlined in this thread...they work fine...thank you sir!
    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

    • slipperman
      3500 Post Veteran



      • May 2010
      • 3787
      • Worksop, UK
      • MSOR

      #47
      Hi,
      @Niknak : I've just downloaded the latest version of Mactier from TSN and found, as you reported, that the ttype.dat file has no entries! However, as you've found, carrying out the procedures in my last two messages also works perfectly OK for this version.

      @Gerry : Thanks, mate I don't know why those characters are at the end of the .trk file but, somehow, they prevent Carlo's sounds from working!

      Cheers,
      Ged

      Comment

      • csantucci
        Senior Member
        • Nov 1999
        • 856
        • Torino, Italy.

        #48
        Originally posted by csx8851
        Hello all,

        I am now able to hear the switch sounds from Carlo's Demo sounds. I did notice when the train is moving slowly over multiple switches, under 10mph, the sounds will keep looping as if the train is moving faster than 10mph. Also some abrupt noises also play. Does anyone know a way to smooth this out? Just trying to make it as real as possible when doing yard work
        I also sometimes noticed the switch problem you mentioned, and unfortunately up to now wasn't able to find the cause of it.
        Can you be more detailed about the abrupt noises?

        Carlo
        sigpic

        Comment

        • csx8851
          Senior Member
          • Feb 2013
          • 347
          • CSX Freemont Secondary

          #49
          Hello Carlo,

          I believe this only happens when the train is moving under 10 mph or slowing down to under 10mph, then the switch sounds 1-10 are being triggered. I was going to try to see if I can mute them. I’m not sure if there’s a way in openrails to do this but I think what will solve the problem is if the switch sound can be trigged only when a unique car goes over a switch, that will sound more realistic than switch sounds looping while the train is moving.
          Visit me on Youtube:
          https://www.youtube.com/user/csx8851

          Comment

          • dougbrow
            Member
            • May 2010
            • 36

            #50
            I have DemoAutoSound running in Ted Kocyla's BlackfootV2. However the switch sounds more like something dragging than an actual switch noise.

            Comment

            • slipperman
              3500 Post Veteran



              • May 2010
              • 3787
              • Worksop, UK
              • MSOR

              #51
              Hi,
              For starters, can you please post a copy of your BlackfootV2's ttype.dat file and your OpenRails can99v2.trk file

              Cheers,
              Ged

              Comment

              • dougbrow
                Member
                • May 2010
                • 36

                #52
                can99v2.trk:


                include ( "../CAN99v2.trk" )
                ORTSDefaultTurntableSMS ( turntable.sms )
                ORTSSwitchSMSNumber ( 2 )
                ORTSCurveSMSNumber ( 3 )
                ORTSCurveSwitchSMSNumber ( 4 )

                I changed the numbers in the entries. I don't think they mean anything in OR. They're just placeholders for now. Originals were 11, 12, and 13, I think. There is supposed to be a blank line above the include( "../CAN99v2.trk" ).

                ttype.dat:

                SIMISA@@@@@@@@@@JINX0t1t______

                4
                TrackType ( "Default" "CAN99track0_in.sms" "CAN99track0_ex.sms" )
                TrackType ( "Switch" "DemoAutoSound/switchtrackin.sms" "DemoAutoSound/switchtrackex.sms" )
                TrackType ( "Squeal Curve" "DemoAutoSound/curvesquealtrackin.sms" "DemoAutoSound/curvesquealtrackex.sms" )
                TrackType ( "Squeal Switch" "DemoAutoSound/curveswitchtrackin.sms" "DemoAutoSound/curveswitchtrackex.sms" )


                I tried the same thing in a route I'm working on in TSRE, but it doesn't work there. I even copied the sound folder from can99v2.

                Comment

                • commec61
                  Senior Member

                  • Dec 2004
                  • 166
                  • Davenport, FL
                  • English
                  • MSOR

                  #53
                  Originally posted by dougbrow
                  can99v2.trk:


                  include ( "../CAN99v2.trk" )
                  ORTSDefaultTurntableSMS ( turntable.sms )
                  ORTSSwitchSMSNumber ( 1 )
                  ORTSCurveSMSNumber ( 2 )
                  ORTSCurveSwitchSMSNumber ( 3 )

                  I changed the numbers in the entries. I don't think they mean anything in OR. They're just placeholders for now. Originals were 11, 12, and 13, I think. There is supposed to be a blank line above the include( "../CAN99v2.trk" ).

                  ttype.dat:

                  SIMISA@@@@@@@@@@JINX0t1t______

                  4
                  TrackType ( "Default" "CAN99track0_in.sms" "CAN99track0_ex.sms" &nbsp
                  TrackType ( "Switch" "DemoAutoSound/switchtrackin.sms" "DemoAutoSound/switchtrackex.sms" )
                  TrackType ( "Squeal Curve" "DemoAutoSound/curvesquealtrackin.sms" "DemoAutoSound/curvesquealtrackex.sms" )
                  TrackType ( "Squeal Switch" "DemoAutoSound/curveswitchtrackin.sms" "DemoAutoSound/curveswitchtrackex.sms" )


                  I tried the same thing in a route I'm working on in TSRE, but it doesn't work there. I even copied the sound folder from can99v2.

                  Your numbers are off. They should be 1 2 3, as the sim starts counting at 0.
                  Steve
                  USAF Veteran

                  Comment

                  • R. Steele
                    3500 Post Veteran

                    • Feb 2013
                    • 3928
                    • known universe
                    • ORTS

                    #54
                    Hopefully with Ged's permission (slipperman) I'll post his to reply over at ET in a thread about this same problem, hope it clears it up...or adds a little information.

                    ...numbering of the ttype.dat entries starts from zero, which means that 14 entries translate into 'positions' 0 to 13.

                    The numbers allocated by Carlo to the three DemoAutoSound entries will only apply if there are already 11 sound entries in the ttype.dat file. I have seen existing ttype.dat files with 10 sound entries, so adding the 3 DemoAutoSound lines will make a total of 13 entries (ie positions 0 to 12). In this case, the .trk values must be changed 10, 11 and 12 respectively.

                    Cheers,
                    Ged

                    Edit : By the way, I believe the example shown in Paragraph 2 of 13.3 of the Open Rails manual won't work as intended. There are 14 entries in the ttype.dat file with the DemoAutoSound entries being the last three, but the .trk file has them allocated to positions 10, 11 and 12.
                    ...so locate and look at your existing ttype.dat file to see how many entries there are before numbering the DemoAutoSound entries. They do mean something in OR.
                    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

                    • slipperman
                      3500 Post Veteran



                      • May 2010
                      • 3787
                      • Worksop, UK
                      • MSOR

                      #55
                      Hi Gerry,
                      Permission granted, Sir

                      Cheers,
                      Ged

                      Comment

                      • niknak
                        1000 Post Veteran


                        • Nov 1999
                        • 1254
                        • UK.
                        • MSOR

                        #56
                        Can I just jump in on this thread to ask if anyone has managed to get DemoAutoSounds working on TrainSimulations Ruel and Mullan routes? Ged was most helpful a while back in enabling them in various other routes but these two have defeated me so far.
                        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

                        • derekmorton
                          5500 Post Veteran



                          • Nov 1999
                          • 5699
                          • Eltham, Victoria, Australia.
                          • ORTS

                          #57
                          Hi Nick,

                          I will have a look tomorrow ( its 2100 here )

                          Comment

                          • niknak
                            1000 Post Veteran


                            • Nov 1999
                            • 1254
                            • UK.
                            • MSOR

                            #58
                            Many thanks Derek
                            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

                            • slipperman
                              3500 Post Veteran



                              • May 2010
                              • 3787
                              • Worksop, UK
                              • MSOR

                              #59
                              Hi Nick,
                              I've had another look at the Ruel route (I still don't have Mullan) and, using the 'normal' OpenRails .trk file, the switch and curve sounds aren't heard.

                              I tried putting the three DemoSound parameters in the route's main .trk file, just before the final close bracket. IT WORKS!!!!
                              Please don't ask me why!! I've tried everything I can think of regarding format of and positioning in, the OpenRails .trk file, without success. I even unsuccessfully tried creating a new OpenRails .trk file using the NoTrees utility - I wonder if any other OR parameters will work from that file??

                              Mactier route is in the same installation as Ruel and the sounds work correctly. I even copied the ttype.dat and OpenRails .trk files from that route into Ruel (changing names in the latter!!), again, without success. I appreciate there could be problems mixing MSTS and ORTS routes in one installation, but both seem to run and display correctly.

                              Cheers (puzzled!!)
                              Ged
                              Last edited by slipperman; 09-05-2021, 08:56.

                              Comment

                              • niknak
                                1000 Post Veteran


                                • Nov 1999
                                • 1254
                                • UK.
                                • MSOR

                                #60
                                That is VERY good news Ged! Thank you so much for your persistence in all of this. I have always put the sounds in the main trk folder on MSTS routes (eg:MLT's routes and freeware routes such as Monon, MP5 etc) but with Ruel being an OR route I didn't think that would work there. For me these sounds make a huge difference to my enjoyment of a route so I will be installing them in Ruel asap.

                                Thanks again.

                                Nick
                                Last edited by niknak; 09-05-2021, 09:16.
                                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

                                Working...