Automatic Switch and Curve Squeal
#1
Posted 10 February 2021 - 07:01 AM
#2
Posted 10 February 2021 - 04:20 PM
that sounds similar to what happened to me when i tired it in my route.
For instance, my ttype.dat is has following:
13 TrackType ( "Default" "JapanTrack0In.sms" "JapanTrack0Ex.sms" ) TrackType ( "Concrete Supported" "JapanTrack1In.sms" "JapanTrack1Ex.sms" ) TrackType ( "Wood Supported" "JapanTrack2In.sms" "JapanTrack2Ex.sms" ) TrackType ( "In Tunnel" "JapanTrack3In.sms" "JapanTrack3Ex.sms" ) TrackType ( "Steel Bridge" "JapanTrack4In.sms" "JapanTrack4Ex.sms" ) TrackType ( "Girder Bridge" "JapanTrack5In.sms" "JapanTrack5Ex.sms" ) TrackType ( "Under Bridge" "JapanTrack6In.sms" "JapanTrack6Ex.sms" ) TrackType ( "Concrete Bridge" "JapanTrack7In.sms" "JapanTrack7Ex.sms" ) TrackType ( "Crossing Platform" "JapanTrack8In.sms" "JapanTrack8Ex.sms" ) TrackType ( "Wooden Bridge" "JapanTrack9In.sms" "JapanTrack9Ex.sms" ) TrackType ( "Switch" "DemoAutoSound/switchtrackin.sms" "DemoAutoSound/switchtrackex.sms" ) TrackType ( "Squeal Curve" "pt_sound/curvesquealtrackin.sms" "pt_sound/curvesquealtrackex.sms" ) TrackType ( "Squeal Switch" "DemoAutoSound/curveswitchtrackin.sms" "DemoAutoSound/curveswitchtrackex.sms" )
So, in the *.trk i should have:
ORTSSwitchSMSNumber ( 11 ) ORTSCurveSMSNumber ( 12 ) ORTSCurveSwitchSMSNumber ( 13 )
Right?
Well, I did it and the same thing you describe happened.
Then, I just tried -1 to all those number:
ORTSSwitchSMSNumber ( 10 ) ORTSCurveSMSNumber ( 11 ) ORTSCurveSwitchSMSNumber ( 12 )
and it worked!
Try it and see how it goes.
#3
Posted 11 February 2021 - 03:48 AM
#4
Posted 11 February 2021 - 04:36 AM
#5
Posted 11 February 2021 - 05:43 AM
#6
Posted 11 February 2021 - 09:00 AM
ORTSSwitchSMSNumber ( 10 ) ORTSCurveSMSNumber ( 11 ) ORTSCurveSwitchSMSNumber ( 12 )why are people even changing it???
#7
Posted 11 February 2021 - 09:30 AM
#8
Posted 11 February 2021 - 11:12 AM
Niknak, on 11 February 2021 - 09:30 AM, said:
Scott is quite correct, 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.
#9
Posted 11 February 2021 - 11:55 AM
#10
Posted 11 February 2021 - 11:56 AM