Elvas Tower: Automatic Switch and Curve Squeal - Elvas Tower

Jump to content

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Automatic Switch and Curve Squeal Rate Topic: -----

#1 User is offline   Niknak 

  • Fireman
  • Group: Status: First Class
  • Posts: 149
  • Joined: 19-July 20
  • Gender:Male
  • Simulator:OR Monogame
  • Country:

Posted 10 February 2021 - 07:01 AM

I'm trying out the demo sounds that Carlos kindly put a link to in section 13.03 of the OR manual. The trouble is I keep getting the switch sound "Scambi_2_22050 wav" on the CURVED track sections as well, which obviously isn't very realistic. I'm trying the sounds on Donner Pass route using the latest OR MG. Can Carlos or anyone else help please?

#2 User is online   Aldarion 

  • Conductor
  • Group: Status: First Class
  • Posts: 443
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 10 February 2021 - 04:20 PM

Hi.
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 User is offline   Niknak 

  • Fireman
  • Group: Status: First Class
  • Posts: 149
  • Joined: 19-July 20
  • Gender:Male
  • Simulator:OR Monogame
  • Country:

Posted 11 February 2021 - 03:48 AM

Hi Aldarion, well I don't know why taking off 1 should work but it did! lol. Many thanks for your solution.

#4 User is offline   scottb613 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,547
  • Joined: 06-July 09
  • Gender:Male
  • Location:Downeast Maine (soon)
  • Simulator:ORTS
  • Country:

Posted 11 February 2021 - 04:36 AM

View PostNiknak, on 11 February 2021 - 03:48 AM, said:

Hi Aldarion, well I don't know why taking off 1 should work but it did! lol. Many thanks for your solution.


Hi Folks,

Perhaps the count starts with zero ?

Regards,
Scott

#5 User is offline   Niknak 

  • Fireman
  • Group: Status: First Class
  • Posts: 149
  • Joined: 19-July 20
  • Gender:Male
  • Simulator:OR Monogame
  • Country:

Posted 11 February 2021 - 05:43 AM

Could well be Scott. I'm just glad I got to the bottom of it. I was tearing my hair out trying to get this to work correctly lol. Carlos' sounds certainly add a lot to the experience.

#6 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,119
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 11 February 2021 - 09:00 AM

I believe the default package of files that Carlo provided already has this numbering scheme

ORTSSwitchSMSNumber ( 10 )
ORTSCurveSMSNumber ( 11 )
ORTSCurveSwitchSMSNumber ( 12 )
why are people even changing it???


#7 User is offline   Niknak 

  • Fireman
  • Group: Status: First Class
  • Posts: 149
  • Joined: 19-July 20
  • Gender:Male
  • Simulator:OR Monogame
  • Country:

Posted 11 February 2021 - 09:30 AM

My ttype dat file has a total of 14 Tracktype entries. When I used 10-11-12 on the trk file for the three DemoAutoSound sms files I didn't get the correct sound. When I used 11-12-13 I did.

#8 User is offline   slipperman 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 684
  • Joined: 09-February 12
  • Gender:Male
  • Location:North Nottinghamshire
  • Simulator:MSTS & ORTS
  • Country:

Posted 11 February 2021 - 11:12 AM

View PostNiknak, on 11 February 2021 - 09:30 AM, said:

My ttype dat file has a total of 14 Tracktype entries. When I used 10-11-12 on the trk file for the three DemoAutoSound sms files I didn't get the correct sound. When I used 11-12-13 I did.

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 User is offline   Niknak 

  • Fireman
  • Group: Status: First Class
  • Posts: 149
  • Joined: 19-July 20
  • Gender:Male
  • Simulator:OR Monogame
  • Country:

Posted 11 February 2021 - 11:55 AM

Ged, yes I noticed the error in the manual example. Also the list is headed "13" although there are 14 entries. Made me even more confused when I was trying to sort this out! lol.

#10 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,119
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 11 February 2021 - 11:56 AM

Thanks Ged, I did not realize that others had different number of entries to start with. I did know what Scott posted that starting with "0" was a given. That's mostly been the norm with all the files that have tables or blocks of data in msts and OR ( all the tabs in the ORTS Diesel engine definition start with zero. )

  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users