Elvas Tower: Diesel locomotives starting and stopping - Elvas Tower

Jump to content

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

Diesel locomotives starting and stopping A few question about triggers and cab controls in diesel locomotives Rate Topic: -----

#11 User is offline   DirtyRam 

  • Fireman
  • Group: Status: First Class
  • Posts: 108
  • Joined: 23-October 12
  • Gender:Male
  • Location:Northwest Lake Ontario
  • Simulator:OR
  • Country:

Posted 12 January 2017 - 03:37 PM

View PostCoolhand101, on 11 January 2017 - 05:40 PM, said:

You mean the mention wav files above ? Haven't a clue, other than i believe it's german. But i can safely say what they mean :


V100_Leerlauf.wav = Engine_Idle.wav
V100_an.wav = Engine_Startup.wav
V100_aus.wav = Engine_Shutdown.wav

Apologies if you mean something completely different!

Thanks

No that's exactly what I mean't, Thanks very much

#12 User is offline   Aldarion 

  • Engineer
  • PipPipPipPipPip
  • Group: ET Owner
  • Posts: 629
  • Joined: 11-February 13
  • Gender:Male
  • Location:Lisbon, Portugal
  • Simulator:Open Rails
  • Country:

Posted 09 November 2019 - 04:37 AM

Hi everyone.
I wonder if you good people can give me a help with one thing:
I've been playing with this engine on/off switch, made one wav for the engine start and one for the engine stop. read the manual and a couple of threads and all is working almost fine... when i press shift+y the idle engine wav stops playing and the stop engine wav immediatly kicks in.... after everything is silent i press shift+y again for engine start. This is where things are not working has I wanted. I want the star engine wav file to play all the way to the end and the normal cruise to kick in after that, but what is happening is the cruise wav file starts playing after too few seconds and the start engine stops playing not going all the way through.

Here's how I have the sms cab:

		Streams ( 11
			Stream (
				Priority ( 6 )
				Triggers ( 17
					Skip( **** The engine\\current related sounds - Stream 1 {Xfade}         **** )
					Initial_Trigger  ( StartLoopRelease  ( 1 File ( "1960_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "1960_engine_start.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 23 StartLoopRelease  ( 1 File ( "1960_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.050 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past 0.150 StartLoop   ( 1 File ( "1960_power_cruise3.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.450 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past 0.550 StartLoop   ( 1 File ( "1960_power_cruise5.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.850 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.850 StartLoop   ( 1 File ( "1960_power_cruise5.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.550 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.450 StartLoop   ( 1 File ( "1960_power_cruise3.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.150 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.050 StartLoop   ( 1 File ( "1960_power_cruise1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 24 ReleaseLoopRelease ())
					Discrete_Trigger ( 24 DisableTrigger ( 1 ))
					Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "1960_engine_stop.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.050 DisableTrigger ( 1 ))
				)
				FrequencyCurve(
					Variable2Controlled
					CurvePoints ( 8
						0.000		12025
						0.150		12025
						0.450		13000
						0.500		13000
						0.501		12025
						0.550		12025
						0.850		13000
						1.000		13000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		1.0
						 0.010		1.0
						 0.050		0.0
						 0.150		0.0
						 0.250		1.0
						 0.350		1.0
						 0.450		0.0
						 0.550		0.0
						 0.650		1.0
						 0.750		1.0
						 0.850		0.0
						 1.000		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Priority ( 6 )
				Triggers ( 12
					Skip( **** The engine\\current related sounds - Stream 2 {Xfade}         **** )
					Discrete_Trigger ( 24 SetStreamVolume ( 0.0 ))
					Discrete_Trigger ( 23 SetStreamVolume ( 1.0 ))
					Variable_Trigger ( Variable2_Inc_Past 0.010 StartLoop   ( 1 File ( "1960_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.250 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Inc_Past 0.350 StartLoop   ( 1 File ( "1960_power_cruise4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.650 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Inc_Past 0.750 StartLoop   ( 1 File ( "1960_power_cruise6.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.750 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.650 StartLoop   ( 1 File ( "1960_power_cruise4.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.350 ReleaseLoopRelease () )					
					Variable_Trigger ( Variable2_Dec_Past 0.250 StartLoop   ( 1 File ( "1960_power_cruise2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.010 ReleaseLoopRelease () )					
				)
				FrequencyCurve(
etc...


#13 User is offline   Diter258r 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 38
  • Joined: 30-November 19
  • Gender:Male
  • Location:Brazil
  • Simulator:open rails
  • Country:

Posted 07 February 2020 - 07:50 AM

gostaria de ajuda sobre esse recurso

#14 User is offline   Diter258r 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 38
  • Joined: 30-November 19
  • Gender:Male
  • Location:Brazil
  • Simulator:open rails
  • Country:

Posted 07 February 2020 - 09:38 AM

Estou tendo um problema com o som quando desligo a locomotiva ... o som não aparece
alguém que possa me ajudar


Stream (
Priority ( 6 )
Volume( 0.6 )
Triggers ( 5
Initial_Trigger ( StartLoopRelease ( 1 File ( "x_AC_power_cruise.wav" -1 ) SelectionMethod (SequentialSelection) ) )
Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "x_AC_power_cruise.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 23 StartLoopRelease ( 1 File ( "xGE_FDL16_0.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
Discrete_Trigger ( 24 ReleaseLoopRelease() )
Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "GW_eBell.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
)

)
)
)
)
)




#15 User is offline   Csantucci 

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

Posted 07 February 2020 - 01:06 PM

You cannot have two continuous sounds (in your case triggered by StartLoopRelease) active at the same moment. If you want to StartLoopRelease xGE_FDL16_0.wav when you power on the loco, first you have to ReleaseLoopRelease x_AC_power_cruise.wav, because you started that sound with the Initial_Trigger.

#16 User is offline   Jonatan 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,656
  • Joined: 29-March 10
  • Gender:Male
  • Location:Somewhere.
  • Simulator:MSTS and Vehicle Simulator
  • Country:

Posted 26 January 2022 - 10:28 AM

Sorry to dig up an old thread but I felt this is relevant to the topic.

I've experimented with this function and decided to copy the example shown in this post on the previous page for my initial experiments as well as reading the manual and coals-to-newcastle site for details.

The startup sound and transition to the running sound works fine but after shutting down and the running sound stops, the startup plays before playing the stop sound.

Another problem is that the engine sound vanishes when changing views or the train comes within range to play sounds, stopping and restarting the engine solves it but it's not an ideal situation. I can't find any examples or info on how to solve this and playing with the triggers don't seem to help.

I currently run T1.3.1-1833.

#17 User is offline   Laci1959 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 943
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

Posted 26 January 2022 - 11:05 AM

Hello.

We discussed this topic in an earlier thread before Christmas. I tried to search for it but failed.
If you are using version 1.4 and start the game with the engine stopped, the Initial_Trigger line is not required. After the line that starts the engine [Discrete_Trigger (23 PlayOneShot ...] this line must be closed [Disable_Trigger]. This will prevent recurrence.
Full code:
Stream (
				Priority ( 8 )
				Triggers ( 14
					Initial_Trigger  ( DisableTrigger ( 11 ) )
					Initial_Trigger  ( DisableTrigger ( 12 ) )
					Discrete_Trigger ( 23 PlayOneShot ( 1 File ( "m61_indit_x.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 23  StartLoopRelease ( 1 File ( "m61_alapjarat.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 23 DisableTrigger ( 3 ) )
		
					Discrete_Trigger ( 23 EnableTrigger ( 11 ) )
					Discrete_Trigger ( 23 EnableTrigger ( 12 ) )
					Discrete_Trigger ( 24 ReleaseLoopRelease () )
					Discrete_Trigger ( 24 PlayOneShot ( 1 File ( "m61_leall_x.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 24 EnableTrigger ( 3 ) )
					
					Variable_Trigger ( Variable2_Inc_Past 0.10 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.12 StartLoopRelease ( 1 File ( "m61_alapjarat.wav" -1 ) SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger ( 24 DisableTrigger ( 11 ) )
					Discrete_Trigger ( 24 DisableTrigger ( 12 ) )
				)
				VolumeCurve(
					DistanceControlled
					CurvePoints ( 3
						 0	  		1.0
						 100			1.0
						 400			0.0
					)
					Granularity ( 0.05 )
				)
			)

Hello.

We discussed this topic in an earlier thread before Christmas. I tried to search for it but failed.
If you are using version 1.4 and start the game with the engine stopped, the Initial_Trigger line is not required. After the line that starts the engine [Discrete_Trigger (23 PlayOneShot ...] this line must be closed [Disable_Trigger]. This will prevent recurrence.
Full code:

Of course, this solution works if you have three audio files.
1. Engine start sound (m61_indit_x.wav)
2. Idle sound (m61_alapjarat.wav)
3. Engine stop sound. (m61_leall_x.wav).
There was also a solution for starting an engine with an audio file in said thread.

Laci1959

#18 User is offline   Laci1959 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 943
  • Joined: 01-March 15
  • Gender:Male
  • Simulator:Alföld
  • Country:

Posted 26 January 2022 - 11:47 AM

View PostWeter, on 26 January 2022 - 11:09 AM, said:



Hi.

Thanks for your help.

Laci1959

#19 User is offline   Jonatan 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,656
  • Joined: 29-March 10
  • Gender:Male
  • Location:Somewhere.
  • Simulator:MSTS and Vehicle Simulator
  • Country:

Posted 26 January 2022 - 11:54 AM

Laci and Weter,

I tested your code and now it works. It seems this was more complex than I'm used to! Thanks for the help. :good:

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