Switch sound

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hannes44
    Senior Member
    • Nov 1999
    • 133
    • Austria.

    #1

    Switch sound

    I found the implementation of the switch sound in a thread on ET. I added the lines following the example to the ttype.dat and added the line "ORTSSwitchSMSNumber ( 10 )" to the existing include file in the Openrails folder. I found a soundset (italianpoint7) and copied it to the Sound folder of the route and as a precaution (I never know, what's the correct folder; btw. what is it??) to the common sound folder, too. Is there more to do? Because sofar no sounds, when passing switches. I looked through the new manual but couldn't find anything about this feature.
    Maybe there is a problem with the OR Versions: I have installed OR 1.2 alongside with OR 1.1 and I am always using the experimental versions atm X3773. I'm a little confused, for although I installed OR1.2 in a separate folder, but from the first start it had all adjustments and options, I had previously used with OR1.1. Now the only visible difference between my two versions of X3773 is, when I start OR1.1, I get the old manual and with OR1.2 I get the new one. Can I check somehow, if I start the right version for the switch-sounds?
  • crstagg
    4500 Post Veteran


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

    #2
    Originally posted by Hannes44
    I found the implementation of the switch sound in a thread on ET. I added the lines following the example to the ttype.dat and added the line "ORTSSwitchSMSNumber ( 10 )" to the existing include file in the Openrails folder. I found a soundset (italianpoint7) and copied it to the Sound folder of the route and as a precaution (I never know, what's the correct folder; btw. what is it??) to the common sound folder, too. Is there more to do? Because sofar no sounds, when passing switches. I looked through the new manual but couldn't find anything about this feature.
    Maybe there is a problem with the OR Versions: I have installed OR 1.2 alongside with OR 1.1 and I am always using the experimental versions atm X3773. I'm a little confused, for although I installed OR1.2 in a separate folder, but from the first start it had all adjustments and options, I had previously used with OR1.1. Now the only visible difference between my two versions of X3773 is, when I start OR1.1, I get the old manual and with OR1.2 I get the new one. Can I check somehow, if I start the right version for the switch-sounds?
    ORTS records any adjustments set in the options in your PC registry and uses that information at startup. If you have more than one install of ORTS all of your installs are using the same area of the registry.

    Can I check somehow, if I start the right version for the switch-sounds?
    Only way I know of is to use a different icon for shortcut to the executable of the different installs.

    BUT it sounds like you have upgraded your 1.1 install to x3773. If that is the case then it is the same as 1.2 upgraded to x3773.
    Last edited by crstagg; 01-31-2017, 16:52.
    Charles

    Comment

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

      #3
      Manual updates are available weekly in the testing versions. So next one, containing info about the sound switch, should be available starting from this Friday evening.
      The reasons you don't hear the switch sound can be multiple, among them the fact that the volume of the sound you selected is low.
      I have checked italianpoint7, but it does not seem well done to me. You should find another one. You could try with the one included in the Bernina freeware route, or maybe someone else has a better hint for this.
      You can put your sound files either in the root sound folder or in the route's sound folder.
      Anyhow to help analyse your problem you should attach:
      - Openrailslog.txt file
      - include file
      - ttype.dat file.
      Last edited by csantucci; 02-01-2017, 05:09.
      sigpic

      Comment

      • Hannes44
        Senior Member
        • Nov 1999
        • 133
        • Austria.

        #4
        Thanks for your help. Now I installed the bernina switch soundfiles, but still no luck.
        Attached Files

        Comment

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

          #5
          Some trivial questions:
          - have you installed the Bernina switch sound in Sound/Bernina Track Sound?
          - have you installed also the .wav files that are recalled within the .sms files?
          - do you have more than one .trk file in your route's root folder? If yes, remember that OR takes the alphabetically first as the right one for the route, and the .trk file within the Openrails subfolder must have the same name.
          sigpic

          Comment

          • Hannes44
            Senior Member
            • Nov 1999
            • 133
            • Austria.

            #6
            Short answer:

            1 - yes
            2 - yes
            3 - only one trk file present


            Thanks!

            Comment

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

              #7
              I tried again and it works here.
              Can you try inserting the line
              ORTSSwitchSMSNumber ( 10 )
              in your base .trk file and check if it works that way?
              sigpic

              Comment

              • Hannes44
                Senior Member
                • Nov 1999
                • 133
                • Austria.

                #8
                That did it. I don't know what's wrong with my include file.

                Comment

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

                  #9
                  Try inserting a newline at the end of the ORTSSwitch line.
                  sigpic

                  Comment

                  • Hannes44
                    Senior Member
                    • Nov 1999
                    • 133
                    • Austria.

                    #10
                    Thanks for your suggestion, unfortunately it didn't change anything.

                    Comment

                    • burgerbern
                      1000 Post Veteran



                      • Mar 2005
                      • 1088
                      • United Kingdom.
                      • UK English
                      • MSOR

                      #11
                      In your Austria.trk file change the spaces above the entry so there is just one space line not 2 as you have it now every include file i have done that works only has one blank line above the first entry. i seem to recall that being a must
                      ​
                      Processor: Intel 13th Gen i5-13400F, - Mobo: MSI PRO Z790-P​, - OS: Win 11 Prof 64bit. - Memory: Corsair Vengeance 64GB​ Ram, - Graphics MSI RTX 4060 Ventus 2x Black OC 8GB, - Sound: Asus STRIX SOAR Gaming Soundcard​, - Storage: 7TB SSD's. - Case: BeQuiet! Pure Base 500 Black​.

                      Comment

                      • Hannes44
                        Senior Member
                        • Nov 1999
                        • 133
                        • Austria.

                        #12
                        That was the crucial point, thank you. I knew, that text wasn't to be written in the first line, but I didn't know that there has to be exactly one free line and no more.

                        Comment

                        • cjakeman
                          Senior Member
                          • Mar 2010
                          • 137

                          #13
                          Originally posted by burgerbern
                          In your Austria.trk file change the spaces above the entry so there is just one space line not 2 as you have it now every include file i have done that works only has one blank line above the first entry. i seem to recall that being a must
                          That requirement seems to be over-fussy and I would like to report it as a bug, because of the bad reputation it leads to.

                          Are you aware of any other strange parsing restrictions?
                          Chris Jakeman

                          sigpic

                          Comment

                          Working...