Enabling automatic track sounds for switches, curves, and switches+curves

View previous topic View next topic Go down

Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Thu 26 Oct 2017, 10:24 pm

Looking for some help here!

In an effort to do something about the lack of any additional sound as a loco crosses points, I found a description of how to do this in the Open Rails Manual's Sound Management section (#13 - which wasn't lucky for me) - subsection 13.3 to be precise. I've cut and pasted the complete description at the end of this post, tho it's probably better read in the manual.

I have tried all the steps indicated, including both options for editing the .trk file - and I cannot hear the sounds. I'm using the ones linked to in the manual's description (a zip file, DemoAutoSound, containing many more sounds than the three needed for this).

The route I'm trying this out on is Irish Enterprise North and testing is being done with an NIR GM Class 111 at Belfast Central, where there are plenty of sets of points near at hand.

In applying the steps described in the manual to this route, what I did was:

1. Downloaded the zip of sample sounds linked to at Step 1, and unzipped the whole lot into the route's sound folder, ie C:\Train Simulator\Routes\Ireland1\Sounds\DemoAutoSound - the  latter subfolder being as in the zp and also as per the edit to the tttype.dat file as described in section 13.3, Step 1.

2. Edited the file C:\Train Simulator\Routes\Ireland1\ttype.dat, and added 3 to the number on line 3 of the file increasing it from 1 to 4, as per 13.3 Step 2. So that file, which just had one entry, now looks like this:

IMISA@@@@@@@@@@JINX0t1t______

4
TrackType ( "Default" "USATrack0In.sms" "USATrack0Ex.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"   )

3. As per 13.3 Step 2, I then edited the file C:\Train Simulator\Routes\Ireland1\Ireland1.trk, and added the required lines (in blue below) to the end of the file, but ahead of the final 'close bracket', so it now looks like this:

       DefaultDieselTowerSMS ( dtower.sms )
TempRestrictedSpeed ( 11.176 )
ORTSSwitchSMSNumber ( 2 )
ORTSCurveSMSNumber ( 3 )
ORTSCurveSwitchSMSNumber ( 4 )

)

I used the numbers 2, 3 and 4 at the end of each line, because that seemed to be the logic of 13.3 Step 2 - although the numbers used there are ONE LESS than the line # of the corresponding entry in the ttype.dat file.

This didn't work, so I changed the numbers to in brackets at the end of the new lines to 10, 11 & 12 in case they were an absolute reference, unlikely tho that seemed. No joy. I then tried the second method, described in the manual's Step 3 - creating an 'integration' .trk file as instructed, C:\Train Simulator\Routes\Ireland1\OpenRails\Ireland1.trk. This file looked like this:

SIMISA@@@@@@@@@@JINX0r0t______

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

No Joy, so tried it with the numbers changed to 10, 11 & 12, and both options with the line of gash at the start deleted but preserving the required blank line above 'include'.

I think I've tried every combination I can think of, of file edits, with the main .trk file edited and with the edit in the shortened 'integration' version in a new OpenRails subfolder.

If anyone can spot where I'm going wrong, I'd be most grateful - not having any additional sound as your train clatters silently (?) across a set of points is a bit counter-immersive and it would be good to get this great feature of OR operational!


Extract from section 13 of Open Rails Manual 2016


13.3. Automatic switch and curve squeal track sound

With this feature a specific track sound is played when a train passes over any switch or crossover, or over a curve with a low radius, which highly enhances the sound experience. If this feature is enabled there is no more need to lay down specific sound regions around or sound sources above every switch or over curves. This is a lengthy task, and in fact most of the routes aren’t equipped with such sound regions or sound sources. Three automatic sounds are supported:

-  switch sound
-  curve squeal sound
-  curve + switch sound (when wagon is both on curve and switch).

It is possible to define also only one or two of these automatic sounds. If switch and curve squeal sound are defined, and no curve + switch sound is defined, the curve squeal sound is played when a wagon is both on curve and switch. The curve radius threshold below which the curve squeal sound is played is 350 meters for freight wagons and 301 meters for all other trainsets.

To enable this feature steps here below must be followed:

Step 1   Suitable external and internal automatic sounds must be available (.sms files); usually you find them in the root’s SOUND. It often occurs that switch track and curve squeal sounds are available in modern routes. If not, they must be created or searched on the web. A test sound set may be downloaded from here.

Step 2    For every route it must be checked whether a reference to the three automatic track sounds are present in the route’s ttype.dat file. If they are, you can proceed to next step. Else you must insert three new lines at the end of ttype.dat, adding the reference to the automatic track sounds, and you must add 3 to the number on top of the file. Here below an example of a default ttype.dat can be found, where three new lines referring to the above test sound have been added in last position:

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

   13
   TrackType ( "Default" "EuropeSteamTrack0In.sms" "EuropeSteamTrack0Ex.sms" )
   TrackType ( "Concrete Supported"   "EuropeSteamTrack1In.sms" "EuropeSteamTrack1Ex.sms" )
   TrackType ( "Wood Supported"       "EuropeSteamTrack2In.sms" "EuropeSteamTrack2Ex.sms" )
   TrackType ( "In Tunnel" "EuropeSteamTrack3In.sms" "EuropeSteamTrack3Ex.sms" )
   TrackType ( "Steel Bridge" "EuropeSteamTrack4In.sms" "EuropeSteamTrack4Ex.sms" )
   TrackType ( "Girder Bridge" "EuropeSteamTrack5In.sms" "EuropeSteamTrack5Ex.sms" )
   TrackType ( "Under Bridge" "EuropeSteamTrack6In.sms" "EuropeSteamTrack6Ex.sms" )
   TrackType ( "Concrete Bridge" "EuropeSteamTrack7In.sms" "EuropeSteamTrack7Ex.sms" )
   TrackType ( "Crossing Platform" "EuropeSteamTrack8In.sms" "EuropeSteamTrack8Ex.sms" )
   TrackType ( "Wooden Bridge" "EuropeSteamTrack9In.sms" "EuropeSteamTrack9Ex.sms" )
   TrackType ( "Switch" "switchtrack7in.sms" "switchtrack7ex.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"   )

   For every route you must tell OR which of the ttype sound files are those related to automatic sounds. This is done by inserting following line in the route’s .trk file:

   ORTSSwitchSMSNumber ( 10 )
   ORTSCurveSMSNumber ( 11 )
   ORTSCurveSwitchSMSNumber ( 12 )

Step 3    A better solution, because it leaves the .trk file unaltered, is to create an OpenRails subfolder within the route’s folder, and to put in it an integration .trk file, named like the base one, and with following sample content (supposing the base .trk file is named ITALIA13.trk:

   include ( "../ITALIA13.trk" )
      ORTSDefaultTurntableSMS ( turntable.sms )
      ORTSSwitchSMSNumber ( 10 )
      ORTSCurveSMSNumber ( 11 )
      ORTSCurveSwitchSMSNumber ( 12 )

   Note that the above the include line a blank line must be present. Note also that with the same integration .trk file also the default turntable sound is defined, in case this route has turntables or transfertables.

   As already stated, you can also define in ttype.dat and in the .trk file only one or only two types of automatic sounds.


33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Thu 26 Oct 2017, 11:18 pm

Hi 33lima,
I haven't tried what you are attempting, recently, but if you'll notice the ttype.dat file after Step 2, although there are 13 different settings, they run from 0 to 12.  Going back to your paragraph 2 (Ireland1), there are 4 entries but you've numbered the last 3 as 2, 3 and 4 when they should be 1,2 and 3.  I don't know if that's the reason you hear nothing because I would have thought you'd hear at least one of the sounds.

I'm not sure how Open Rails uses those settings, because normally (ie in MSTS) the number of the sound to be played is written into the route using the Route Editor.

I do recall trying it out when it was first posted on Elvastower but don't remember the details - I'll have another look this weekend.

Final thought for tonight - usually the .sms and .wav files used by ttype.dat are stored in the 'global' SOUND folder and NOT the route's SOUND folder.

Cheers,
Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  mikeanddi on Thu 26 Oct 2017, 11:43 pm

Hi 33lima and Ged

I can confirm that the folder Demo Auto Sounds need to be stored in the global Sound folder.

Also, the numbers 2,3 and 4 are correct - Open Rails ignores the fact that the sounds commence at 0.

I have been using these sounds for a while, and they are a great addition to the enjoyment of the sim.

Mike

mikeanddi

Posts : 36
Join date : 2013-01-22

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Fri 27 Oct 2017, 8:56 am

Thanks Mike - I stand corrected Embarassed

Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  mikeanddi on Fri 27 Oct 2017, 9:31 am

Hi 33lima

My Open Rails .trk file for Black Country 1 looks like this -

"
include ( "../BC1.trk" )
ORTSDefaultTurntableSMS ( turntable.sms )
ORTSSwitchSMSNumber ( 02 )
ORTSCurveSMSNumber ( 03 )
ORTSCurveSwitchSMSNumber ( 04 )"

I do not have the SIMISA line included, but there is a blank line at the top.

I hope that this helps.

Mike

mikeanddi

Posts : 36
Join date : 2013-01-22

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  dforrest on Fri 27 Oct 2017, 12:09 pm

Mayke I am missing something but where do I find "DemoAutoSound.zip"?


David
avatar
dforrest

Posts : 423
Join date : 2013-01-21
Age : 72
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  mikeanddi on Fri 27 Oct 2017, 1:02 pm

Hi David

There is a download link in the Open Rails Manual, section 13.3 as follows -

A test sound set may be downloaded
from here.

Mike

mikeanddi

Posts : 36
Join date : 2013-01-22

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  dforrest on Fri 27 Oct 2017, 2:21 pm

Is this (from above) correct?

Code:
13
  TrackType ( "Default" "EuropeSteamTrack0In.sms" "EuropeSteamTrack0Ex.sms" )
  TrackType ( "Concrete Supported"  "EuropeSteamTrack1In.sms" "EuropeSteamTrack1Ex.sms" )
  TrackType ( "Wood Supported"      "EuropeSteamTrack2In.sms" "EuropeSteamTrack2Ex.sms" )
  TrackType ( "In Tunnel" "EuropeSteamTrack3In.sms" "EuropeSteamTrack3Ex.sms" )
  TrackType ( "Steel Bridge" "EuropeSteamTrack4In.sms" "EuropeSteamTrack4Ex.sms" )
  TrackType ( "Girder Bridge" "EuropeSteamTrack5In.sms" "EuropeSteamTrack5Ex.sms" )
  TrackType ( "Under Bridge" "EuropeSteamTrack6In.sms" "EuropeSteamTrack6Ex.sms" )
  TrackType ( "Concrete Bridge" "EuropeSteamTrack7In.sms" "EuropeSteamTrack7Ex.sms" )
  TrackType ( "Crossing Platform" "EuropeSteamTrack8In.sms" "EuropeSteamTrack8Ex.sms" )
  TrackType ( "Wooden Bridge" "EuropeSteamTrack9In.sms" "EuropeSteamTrack9Ex.sms" )
  TrackType ( "Switch" "switchtrack7in.sms" "switchtrack7ex.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"  )

  For every route you must tell OR which of the ttype sound files are those related to automatic sounds. This is done by inserting following line in the route’s .trk file:

  ORTSSwitchSMSNumber ( 10 )
  ORTSCurveSMSNumber ( 11 )
  ORTSCurveSwitchSMSNumber ( 12 )

Should the added lines not be:

Code:
  ORTSSwitchSMSNumber ( 12 )
  ORTSCurveSMSNumber ( 13 )
  ORTSCurveSwitchSMSNumber ( 14 )


David
avatar
dforrest

Posts : 423
Join date : 2013-01-21
Age : 72
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  StephenRWells on Fri 27 Oct 2017, 2:43 pm

Hi David,

For every route you must tell OR which of the ttype sound files are those related to automatic sounds. This is done by inserting following line in the route’s .trk file:

ORTSSwitchSMSNumber ( 10 )
ORTSCurveSMSNumber ( 11 )
ORTSCurveSwitchSMSNumber ( 12

preferably added to the OpenRails.trk file for the relevant route as here


include ( ../Dorset.trk)

ORTSUserPreferenceForestClearDistance ( 2 )
ORTSUserPreferenceRemoveForestTreesFromRoads ( 3 )
ORTSSwitchSMSNumber ( 10 )
ORTSCurveSMSNumber ( 11 )
ORTSCurveSwitchSMSNumber ( 12 )

making sure that the first line is left blank

Regards,

Stephen
avatar
StephenRWells

Posts : 438
Join date : 2013-07-15
Age : 66
Location : Arncott,Oxfordshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  dforrest on Fri 27 Oct 2017, 2:56 pm

But surely, if there are 14 total entries in the ttype.dat file and the last three are the ORTS track entries, the  numbering of them in the Open Rails .trk file should be 12, 13 and 14, or am I not understanding.


David
avatar
dforrest

Posts : 423
Join date : 2013-01-21
Age : 72
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Fri 27 Oct 2017, 5:13 pm

Thanks guys - and Mike in particular. I will move the demo sounds folder to Global and test again. When I say that it went into the 'root' folder, I mis-guessed it was a type for 'route' but despite being aware of making that assumption, that was one thing I didn't test!

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  mikeanddi on Fri 27 Oct 2017, 5:24 pm

Hi David

Yes, you are correct.

I think that there is an error in the manual in this respect.

Mike

mikeanddi

Posts : 36
Join date : 2013-01-22

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Fri 27 Oct 2017, 6:55 pm

mikeanddi wrote:Hi 33lima

My Open Rails .trk file for Black Country 1 looks like this -

"
include ( "../BC1.trk" )
ORTSDefaultTurntableSMS ( turntable.sms )
ORTSSwitchSMSNumber ( 02 )
ORTSCurveSMSNumber ( 03 )
ORTSCurveSwitchSMSNumber ( 04 )"

I do not have the SIMISA line included, but there is a blank line at the top.

I hope that this helps.

Mike

Hi Mike

still no joy at this end. I moved the subfolder DemoAutoSound (and all the .sms and .wav files inside it) to C:\Train Simulator\SOUNDS (the 'global' sound folder?) but they still don't play.

I have changed nothing in entries recommended in the manual, which seem designed to work with the demo sounds I'm using. The calls for the .sms files added to ttype.dat still reference the subfolder DemoAutoSound (not SOUNDS/DemoAutoSound) and the calls in the .sms files themselves reference the .wavs in the same subfolder. And taking the switch noise file switchtrackin.sms as a test, all the .wav files called in that file do exist in the DemoAutoSound folder they're called from.

Trying to eliminate possible other sources of 'driver error':

1. I'm guessing the opening and trailing quotation marks in your BC1.trk are NOT actually IN the .trk file? I've removed the line of 'gash' at the start and my file looks like this, starting with a blank first line:

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

2. I have the above file (Ireland1.trk, exactly the same name as the route's .trk file) in C:\Train Simulator\ROUTES\Ireland1\OpenRails - apart from the route name and possibly different installation folder, does that look the same as for your Black Country route?

In OR's Audio settings I have MTST bin compatible sounds checked, volume 100%, and sound Detail Level also maxed at 5. I had fiddled a bit with the SoundSystem row in Soundcfg.dat (recomemnded to increase the 'bandwidth' for sound channels) which now reads SoundSystem ( 5, 400, 100, 31457280 )

Getting a bit frustrated here - probably the problem's staring me in the face but I'm not seeing it! Any ideas?

Ivor


33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  mikeanddi on Fri 27 Oct 2017, 7:32 pm

Hi Ivor

Sorry to hear you are still having problems. I did have problems myself when I first installed these sounds, and I am still a bit wary when I add them to additional mini routes / routes.

Firstly, your "global" sounds folder seems to have the correct path but should be named "SOUND" rather than "SOUNDS" (may be just a typo in your post).

I confirm that my quotation marks are not actually in my .trk file - they were just to indicate where the file contents started and stopped. I wonder if leading zeros in the SMS Numbers in your .trk file may be required i.e. 02, 03 and 04.

The path to the .trk file is similar to my own path for Black Country, so there should be no problem there.

My Open Rails audio settings are exactly the same as yours.

I seem to have five different Sound System rows in my mini route soundcfg.dat file, which read as follows - ( 1, 400, 100, 0 )
, ( 2, 400, 100, 0 ) and so on, up to ( 5, 400, 100, 0 ). I have no idea what these mean, so cannot be of any help to you here.

Other than checking to see if there are any erroneous spaces in the file names or contents, I cannot think of anything else.

I hope there is something here to help you.

Mike

p.s. Looking back to your earlier post, your ttype.dat file starts with a missing 'S' - this may just be a typo in the post, but worth checking.

mikeanddi

Posts : 36
Join date : 2013-01-22

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Fri 27 Oct 2017, 8:30 pm

Thanks Mike. Yes I seem to be having problems with my 'S's - left one out and added one in somewhere else Smile

I think you may very well be onto something with those leading zeros. I hadn't spotted that, and you know how fussy computer programs are about these things! Will give that a whirl next! Thanks for the super-fast and once again most helpful reply. Must say the chaps here at TSSH seem a particularly helpful and friendly lot.

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Fri 27 Oct 2017, 9:44 pm

Still no joy here I'm afraid. Adding leading zeros didn't have any effect.

I tried deleting the first line from my OpenRails/Ireland1.trk file, thinking perhaps there was some conflict between it and the auto sounds, the zapped line being:

TrackType ( "Default" "USATrack0In.sms" "USATrack0Ex.sms" )

I remembered to renumber the auto track sounds accordingly and take one off the total at the start.

This had a noticeable effect, a change in the general track noises including a certain amount of creaking and at lower speed an intermittent sound like somebody hitting railings with a stick. And a prounced track joint sound in the loco cab which was not there before.

However, the sound for running over switches still doesn't play. I'll have another poke about over the weekend and re-check everything, but I'm baffled at the moment.

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  dforrest on Fri 27 Oct 2017, 10:32 pm

33lima wrote:
I tried deleting the first line from my OpenRails/Ireland1.trk file, thinking perhaps there was some conflict between it and the auto sounds, the zapped line being:

TrackType ( "Default" "USATrack0In.sms" "USATrack0Ex.sms" )

.

I think you mean "ttype.dat" not "Ireland1.trk".  If not ......................


David
avatar
dforrest

Posts : 423
Join date : 2013-01-21
Age : 72
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Fri 27 Oct 2017, 10:39 pm

Yes you're quite right David, ttype.dat it is. Looks like this pottering around getting no-where, is getting to me Smile

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sat 28 Oct 2017, 10:06 am

Hi Chaps,
I've done a little testing on this matter and come up with the following :

1. The new "integration" .trk file may have a standard text format, or a Unicode format
2. The SIMISA line may be absent or present
3. The numbering of the entries in the ttype.dat file goes from 0 and not 1

I proved the latter by using a route which originally only had one entry in its ttype file (Full Bucket Line v2) and adding only the DemoAutoSound switch sound. Alternating between 'ORTSSwitchSMSNumber ( 1 )' and 'ORTSSwitchSMSNumber ( 2 )' in the "include" file, only with the former were the switch sounds heard. NOTE : In these circumstances, if the ttype.dat file includes all three of the ORTS sounds, using ( 2 ) makes the next sound in the list (probably Curve) audible when going over points.

Hope this helps Smile Of course, this is only my experience - others may disagree!!

Cheers,
Ged



Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  mikeanddi on Sat 28 Oct 2017, 2:36 pm

Thanks Ged - you're quite right.

Sorry Ivor and others. Embarassed Embarassed


mikeanddi

Posts : 36
Join date : 2013-01-22

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  dforrest on Sat 28 Oct 2017, 2:39 pm

I'm please to hear that you have got the problem resolved.


David
avatar
dforrest

Posts : 423
Join date : 2013-01-21
Age : 72
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Sat 28 Oct 2017, 3:31 pm

Not me sadly...as in, sorted!

Using the 'Encoding' option in Notepad++, I can see that both the main .trk file and the new 'integration' one in the OpenRails subfolder in the route are encoded 'UCS-2 Little Endian'. Where the Wild West comes into this I don't know Smile but apparently this is a form of Unicode, so that looks ok. I changed the point sound from 2 to 1 but as I wasn't heading the second ' squeal' sound going over points, I wasn't surprised to discover that made no difference - still not hearing the point crossing sound.

At some point I'm going to try trhis from scratch in a different route with no point crossing sound, to try to eliminate the possibility that there is something in the one I'm using that conflicts with this feature. I gather that some routes have localised track sounds built in. I have heard a rumble crossing a bridge, in Cambrian Route IIRC, which I don't get in other routes. While there doesn't appear to be a sound built into 'Enterprise' for point crossing, maybe there is still something under the hood causing a problem.

Ivor

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sat 28 Oct 2017, 4:19 pm

Hi Ivor,
Little Endian, also shown as UTF-16LE, is correct for MSTS. NotePad++ v7.5.1 (64bit) shows it as UCS-2 LE BOM.
Anyway, forget that and try using a straight text file format (only for Open Rails' .trk file - the ttype.dat file must be in the correct Unicode format for MSTS) - ConText shows it as DOS, but NotePad++ shows it as UTF-8.

Cheers,
Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sat 28 Oct 2017, 6:18 pm

Hi All,
It appears that there might be errors in the .sms files supplied with DemoAutoSound, but it won't stop sounds from being heard.
Martin (brace_2011) has reported this on Elvastower and I'm waiting for a response before I commit myself (I could be wrong), but in the meantime will apply what I think should be the corrections!

Cheers,
Ged

EDIT : The man himself, Carlo, has given his reply!  I WAS wrong!!
Although the values entered against TrackType in the DemoAutoSound .sms files are, in some cases, incorrect, Open Rails doesn't use them! It only uses the position of the filename in the ttype.dat file.  This is brilliant thinking, and explains how these new sounds can be heard, irrespective of how many lines there are in a ttype.dat file.

EDIT 2 : What version of Open Rails are you using, Ivor?


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Sat 28 Oct 2017, 11:29 pm

Hi Ged. I'm using OR 1.2.3766. I had a look at the thread on Elvas Tower and as you say it is confirmed that the numbers in the round brackets are redundant, OR doesn't need them at all.

However, I'm not hearing the sound of the penny dropping, either (!) and can't make the connection to what I need to do, that I'm not doing.

Earlier this evening, I applied the same drill to London South East and again, I'm not hearing the auto sounds. So I'm getting consistent results. Consistently bad ones Smile

Ivir

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sun 29 Oct 2017, 9:01 am

Hi Ivor,
May I suggest that you install the latest version of Open Rails - X3967.

I'm pretty sure that these sounds were introduced in X3788 (February 2017), which was after the Stable v1.2 (which you appear to be running) was released.

Cheers,
Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Sun 29 Oct 2017, 11:54 am

That would explain my problem Ged - I had stuck to the major release and if there was a mention in the manual of auto sounds being tied to a testing release I missed it!

Well, that fixed it. I downloaded the latest version and put it in a separate folder from the 'stable' one, 'just in case', and the automated sounds are playing at last! You nailed it - It's all been down to using a version of OR which doesn't support this feature!

This Youtube video shows the results in action. The track squeal is a bit obtrusive and I might live without it. The point crossing is excellent, tho it seems to start a bit late, like it's not playing for the loco, just the coaches.



But such a difference - great to have this working, and thanks to everyone who has helped me get there!

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  dforrest on Sun 29 Oct 2017, 12:20 pm

So what openrails/***.trk setting do you finally have?


David
avatar
dforrest

Posts : 423
Join date : 2013-01-21
Age : 72
Location : St. Vincent and the Grenadines (and in an earlier life, Hull)

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sun 29 Oct 2017, 12:51 pm

Hi Ivor,
... tho it seems to start a bit late, like it's not playing for the loco, just the coaches.
I'm pretty sure the reason is that the sounds are triggered by the toe end of the points instead of the frog. When negotiating facing points, the sounds occur early, whereas on trailing points, they are late, ie when the loco is at the blades end.

I think the volume of the squealing can be reduced by changing the setting in the .sms file/s

Cheers,
Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Sun 29 Oct 2017, 7:11 pm

Hi David

I'm not sure whether or not I needed to, but I had saved my .trk file in ANSI format. It looks like this:

SIMISA@@@@@@@@@@JINX0r0t______

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

It appears I may not need the SIMSA header nor the SMS numbers in roudn brackets, but hey it works so I;m leaving it alone.

So in the end, I followed the instructions in 13.3 of the manual, with the sole exceptions:

1. saved the .trk file as ANSI, instead of in the original Unicode format (in Notepad++, File/Endocing/Convert to ANSI, IIRC); and
2. updated OR from the last stable version to the latest one.

#1 may actually be necessary, because I'm not getting these sounds in London SE (only tested with an EMU thus far) so I'm going to try that shortly.

Edit - changning LSE.trk from Unicode to ANSI had no effect - the switch soulnd isn't playing, now also tested in the Class 33. Weird it now works in Enterprise North with an apparently identical procedure, so I've a bit more testing to do.

I'll have a look at the track squal volume at some point, probably.

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sun 29 Oct 2017, 8:01 pm

Hi Ivor,
Weird it now works in Enterprise North with an apparently identical procedure
It's not identical!
The numbers ARE essential in the Open Rails .trk file! It's only in the .sms files where the file name is used instead if its ID number.
The ttype.dat file could be different for each route, but the same root SOUND folder is used for all routes in the installation, hence the need to use the file name as the identifier.

Cheers,
Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  33lima on Sun 29 Oct 2017, 9:44 pm

You're quite right, Ged. I had retained the original numbers in brackets in my OpenRails/LSE.trk - correcting them to 10, 12 and 13, corresponding to their position in the ttype.dat file, has resulted in the the sounds working - I got both point noise and squeal, taking this 4VEP out of Charing Cross - great stuff.



And I think I have finally also heard the sound of the penny dropping Smile

33lima

Posts : 35
Join date : 2017-10-21

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  slipperman12 on Sun 29 Oct 2017, 9:54 pm

Hi Ivor,
That's great, mate Smile
The main thing is that we got there in the end!

I don't use Open Rails very much, because I'm more comfortable with MSTS (probably an age thing!), but, thanks to you, I've learnt a bit more over the last few days!

Cheers,
Ged


Intel i5 4690K (3.5GHz), Gigabyte GA-Z97P-D3 m/b, 8GB RAM, NVIDIA GTX 750ti (2GB), ASUS Xonar DS Sound Card, Win 7 Pro 64 bit.

slipperman12

Posts : 1293
Join date : 2013-01-29
Age : 75
Location : North Nottinghamshire

Back to top Go down

Re: Enabling automatic track sounds for switches, curves, and switches+curves

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum