Elvas Tower: steam exhaust strokes controlled twotimes in sms stream - Elvas Tower

Jump to content

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

steam exhaust strokes controlled twotimes in sms stream steam exhaust strokes controlled twotimes in sms stream Rate Topic: -----

#1 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 27 October 2015 - 03:33 PM

Hello,

In OR I always hear the exhaust strokes with rolling steam locos, although the REGULATOR is off. In MSTS I wrote a sms-file that mutes the sound of the exhaust strokes in that case.

The concerning stream in the sms-file has two controllings of the volume. One with the "Variable1_Inc/Dec_Past" to mute the sound, the other is a speedcontrolled "VolumeCurve" to fade the wav-files in or out.

			Stream ( Skip( Auspuffschlaege Layer 01 )
				Priority ( 6 )
				Triggers ( 36

					Skip( Volume Auspuffschlaege Layer 01 ein/aus durch Regler und Richtungswender  )
					Variable_Trigger ( Variable1_Inc_Past  	0.05	SetStreamVolume ( 1.0 ) )
					Variable_Trigger ( Variable1_Dec_Past  	0.05	SetStreamVolume ( 0.0 ) )
					Variable_Trigger ( Variable1_Inc_Past 	-0.05	SetStreamVolume ( 0.0 ) )
					Variable_Trigger ( Variable1_Dec_Past 	-0.05	SetStreamVolume ( 1.0 ) )

					Skip( Auspuffschlaege Geschwindigkeitsabhaengig )
					Variable_Trigger ( Speed_Inc_Past	0.05	StartLoop ( 1	File ( "Schlag_01_Jm.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past	1.39	ReleaseLoopRelease () )	
					Variable_Trigger ( Speed_Inc_Past	2.69	StartLoop ( 1	File ( "Schlag_03_Jm.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past	5.28	ReleaseLoopRelease () )	
					...
					Variable_Trigger ( Speed_Dec_Past	5.28	StartLoop ( 1	File ( "Schlag_03_Jm.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past	2.69	ReleaseLoopRelease () )	
					Variable_Trigger ( Speed_Dec_Past	1.39	StartLoop ( 1	File ( "Schlag_01_Jm.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past	0.05	ReleaseLoopRelease () )	
				)
				VolumeCurve (
					SpeedControlled
					CurvePoints ( 33
						0.00	0.00
						0.08	1.00
						0.20	1.00
						1.31	1.00
						1.39	0.00
	
						2.69	0.00
						2.78	1.00
						5.19	1.00
						5.28	0.00
	
						7.69	0.00
						7.78	1.00
						10.19	1.00
						10.28	0.00
	
						12.69	0.00
						12.78	1.00
						15.19	1.00
						15.28	0.00
	
						17.69	0.00
						17.78	1.00
						20.19	1.00
						20.28	0.00
	
						22.69	0.00
						22.78	1.00
						25.19	1.00
						25.28	0.00
	
						27.69	0.00
						27.78	1.00
						30.19	1.00
						30.28	0.00
	
						32.69	0.00
						32.78	1.00
						35.19	1.00
						35.28	0.00
					)
					Granularity (0.01)
				)
			)


Is it possible, that in OR the "SetStreamVolume"-commands of the "Variable1_Inc/Dec_Past" mixed with the VolumeCurve-command will be interpreted the same way as in MSTS?

Best regards
Jonas

#2 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 28 October 2015 - 01:06 AM

This part of the code was revised a couple of years ago with the aim of compatibilizing OR with MSTS. Consider however that for OR Variable1 in steam locomotives is proportional to angular speed, and not linked to REGULATOR position.
Digging a bit more in the trainsim repository I found this line (referred to MSTS), see http://www.trainsim....light=Variable1 :
"Variable1 is the speed of train (wheel revs?) switched on and off by the regulator being set to idle or not."
So maybe the problem is that OR does not switch off Variable1 when the regulator is idle.
However, before adding this simple condition in the code, I'd be happy to get confirmation by some steam expert that the above quoted sentence is correct.

#3 User is offline   mirekkr 

  • Hostler
  • Group: Status: Active Member
  • Posts: 91
  • Joined: 18-January 15
  • Simulator:ORTS, MSTS
  • Country:

Posted 28 October 2015 - 11:29 AM

Hi Carlo and Jonas,
you can find use of Variable1 and Variable2 in steam SMS files in 3DTS locos (Consolidation, CabForward).
It works OK in Open Rails: if you pull the throttle to a position near zero, the puffing stream fades out.

Regards,
Mirek

#4 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 28 October 2015 - 01:45 PM

Hello mirekkr,

Can you please post a code part of the sms-file of a 3DTS loco?

#5 User is offline   mirekkr 

  • Hostler
  • Group: Status: Active Member
  • Posts: 91
  • Joined: 18-January 15
  • Simulator:ORTS, MSTS
  • Country:

Posted 29 October 2015 - 12:46 PM

Jonas,
I'm not sure if posting the code is not against copyright rules. But the trick is that you play only one "cruise" sound:

Variable_Trigger ( Variable1_Inc_Past 0.2 StartLoop ( 1 File ( "cruise_sound.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )

and change its pitch and volume this way:

FrequencyCurve ( Variable1Controlled ...

VolumeCurve ( Variable2Controlled ...

I hope this helps,
Mirek

#6 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 29 October 2015 - 02:35 PM

Hello Mirek,

thanks for the suggestion with "Volume Curve (Variable2Controlled ...". I will to experiment a bit with it and see, what can be done with it.

But here it is about, that the SMS file of my first post work in MSTS, but not in OR. That's why I start it under "Maybe it's a bug", ie a question of compatibility MSTS <-> OR.

It should not be a question of finding other solutions in OR to mute exhaust strokes of steam locos. But I ask for changing the C# code in OR to catch the compatibility to MSTS. As Carlo wrote: "... this simple condition in the code ...".
I hope a little change in the code can fix it.

Please do not misunderstand me. I really appreciate your suggestion and will do some tests with it.

Best regards
Jonas

(By the way, I think, there is no copyright problem with posting code snippets of SMS files. They are not compiled files, so everyone can open it and read it to discuss about it. In MSTS it is intended to do so, I think. But for sure it is against copyright rules, if you use SMS files of other rightholders in a simulator, definitely in commercial use.)

#7 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 29 October 2015 - 11:53 PM

jonas, I agree with you.
Pls. try following modified files. Simply replace then within Open Rails release x.3287 and report if they work correctly.
Attached File  Runactivities.zip (1.45MB)
Number of downloads: 164

#8 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 30 October 2015 - 09:45 AM

Carlo, It seems to be perfect this way. Thank you!

With the downloaded files from you it works like in MSTS now.

#9 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 6,999
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 30 October 2015 - 10:23 AM

That's good. Fixed in x.3288.

#10 User is offline   jonas 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 548
  • Joined: 04-April 14
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 15 April 2016 - 02:51 PM

Hello,

regrettably since the last few versions (X351?) the problem is present again. described in post #1:

View Postjonas, on 27 October 2015 - 03:33 PM, said:

... In OR I always hear the exhaust strokes with rolling steam locos, although the REGULATOR is off ...


Best regards
jonas

  • 3 Pages +
  • 1
  • 2
  • 3
  • 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