So I am working on a solution that enables OR to automatically pass from the previous track sound to a switch track sound when any car passes over the switch.
To do this within the ttype.dat there must be one position where a switch track sound is defined (there are many around); if one is not there, it must be added (by also increasing by one the first number in the ttype.dat file). One of the legacy ttype.dat files could be modified as follows
SIMISA@@@@@@@@@@JINX0t1t______ 11 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" "New track sound/switchtrack7in.sms" "New track sound/switchtrack7ex.sms" )
where the last track type has been added.
In addition to this OR must know which one of these is the switch sound. This info must be inserted in the route's .trk file (better in an include file to be located as usual in a route's Openrails subfolder.
Such .trk file (that must have the same name as its big parent in the route's main folder) is e.g. as the following one
include ( "../ITALIA13.trk" ) ORTSDefaultTurntableSMS ( turntable.sms ) ORTSSwitchSMSNumber ( 10 )
where clearly the relevant line is the last one.
It is obvious that this has sense only if the route doesn't already have specific sound regions defined around every switch.
The .exe and .dll files to be replaced in release x.3760 or in stable release 1.2 are contained here
Blueprint created https://blueprints.l...tch-track-sound .
28/1/2017: attachment removed because new version available