Elvas Tower: AI-HORNS - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AI-HORNS Rate Topic: -----

#1 User is offline   देव 

  • Hostler
  • Group: Status: Active Member
  • Posts: 55
  • Joined: 06-December 20
  • Gender:Male
  • Simulator:msts
  • Country:

Posted 03 March 2024 - 12:29 PM

According to this topic: https://www.elvastow...ns/#entry216060 , I added those streams, in the .sms file for the AI trains, but no sound or horn is heard. Following is the code for the .sms, And I am using OR NY MG x360 build Rev. 99.1 . The following is the complete code for the corresponding .sms file. The corresponding Streams have been added at the last before the coupling streams. Pls help me find the issues.

SIMISA@@@@@@@@@@JINX0x1t______


Tr_SMS (

	Skip ( ** Bahnbus Sound III - wespe 2003  ** )
			                                            
	ScalabiltyGroup( 5
		Activation (	CabCam()		ExternalCam ()			Distance    	(600)		)
		Deactivation (		PassengerCam()	Distance    	(600)		)
		Streams ( 24
			Stream (
				Priority ( 6 )
                                                                Volume ( 0.05 )
				Triggers ( 5
					Initial_Trigger  ( StartLoop   ( 1 File ( "x_Leerlauf.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Inc_Past 0.010 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Inc_Past 0.010 StartLoopRelease   ( 1 File ( "x_Fahrt.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Variable2_Dec_Past 0.010 ReleaseLoopRelease () )
					Variable_Trigger ( Variable2_Dec_Past 0.010 StartLoop   ( 1 File ( "x_Leerlauf.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					)
				VolumeCurve(
					Variable2Controlled
					CurvePoints ( 12
						 0.000		1.0
						 0.010		1.0
						 0.050		1.0
						 0.150		1.0
						 0.250		1.0
						 0.350		1.0
						 0.450		1.0
						 0.550		1.0
						 0.650		1.0
						 0.750		1.0
						 0.850		1.0
						 1.000		1.0
					)
					Granularity ( 0.05 )
				)
			)
			Stream (
				Skip ( **** Horn **** )
				Priority ( 6 )
                                                                Volume ( 3.00 )
				Triggers ( 2
					Discrete_Trigger ( 8	StartLoopRelease ( 3	File ( "VB_NEW_HORNC.wav" -1 )	
																	File ( "VB_NEW_HORNA.wav" -1 )	 
																	File ( "VB_NEW_HORNB.wav" -1 )			
																	SelectionMethod ( SequentialSelection )	)	) 

					Discrete_Trigger ( 9	ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( **** Bell **** )
				Priority ( 6 )
				Volume (3.00)
				Triggers ( 2
					Discrete_Trigger ( 10	StartLoopRelease ( 2	File ( "VB3ED.wav" -1 )	
																	File ( "VB2ED.wav" -1 )	
																	SelectionMethod ( SequentialSelection )	)	)
					Discrete_Trigger ( 11 ReleaseLoopReleaseWithJump ()	)
				)
			)
			Stream (
				Skip ( **** Sander **** )				
				Priority ( 5 )	
                                                                Volume ( 3.00 )		
				Triggers ( 2				
					Discrete_Trigger (  4	StartLoopRelease ( 1 File ( "VBHORN1.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  5	ReleaseLoopReleaseWithJump ()	) 
						)
			)
			Stream (
				Skip ( Acceleration )
				Priority ( 2 )
				Triggers ( 1
					Initial_Trigger  ( StartLoop   ( 1 File ( "T18_Power2_Mono.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-38.92	 68110
						-25.2		 44100
						0.000		  2000
						 25.2		 44100
						38.92		 68110
					)
					Granularity ( 10 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-150.0	 2.0
						-25.2		 1.5
						-8.34		  0.5
						0.000		  0
						8.34		0.5
						 25.2		 1.5
						150.0		 2.0
					)
				)				
			)
			Stream (
				Skip ( Low Speed Whine )
				Priority ( 2 )
				Volume ( 1.00 )
				Triggers ( 3
					Initial_Trigger  ( StartLoop   ( 1 File ( "T18_Acceleration_Mono.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past 8.34 SetStreamVolume ( 0.0 ) )
					Variable_Trigger ( Speed_Dec_Past 0.001 SetStreamVolume ( 0.5 ) )
						)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-8.34	 44100
						-5.56		 44100
						0.000		  44100
						 5.56	 44100
						8.34		 44100
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						-8.34	 	0
						-5.56		 1.0
						0.000		  0
						 5.56	 	1.0
						8.34		 0
					)
					Variable2Controlled
					CurvePoints ( 3
						 0.000		0.0
						 0.02			1.00
						 100.0		1.00
					)
					Granularity ( 10 )
				)				
			)

		        Stream (
				Skip ( Pantograph Up and Down Sounds )
				Priority ( 2 )
				Volume ( 0.6 )
				Triggers ( 2
					Discrete_Trigger (  45
                                                         PlayOneShot ( 1
                                                         File ( "panto_spark.wav" -1 )
                                                         File ( "panto_spark.wav" -1 )
                                                         SelectionMethod ( RandomSelection ) ) )
					Discrete_Trigger (  46
                                                         PlayOneShot ( 1
                                                         File ( "panto_down.wav" -1 )
                                                         SelectionMethod ( SequentialSelection ) ) )
                                          )
						)
		        Stream (
				Skip ( Pantograph Up and Down Sounds )
				Priority ( 2 )
				Volume ( 0.6 )
				Triggers ( 2
					Discrete_Trigger (  66
                                                         PlayOneShot ( 1
                                                         File ( "panto_spark.wav" -1 )
                                                         File ( "panto_spark.wav" -1 )
                                                         SelectionMethod ( RandomSelection ) ) )
					Discrete_Trigger (  67
                                                         PlayOneShot ( 1
                                                         File ( "panto_down.wav" -1 )
                                                         SelectionMethod ( SequentialSelection ) ) )
                                          )
                                          )
				Stream (
				Skip ( Blower Startup )
				Priority ( 2 )
				Volume ( 0.5 )
				Triggers ( 3
					Discrete_Trigger (  151
                                                         PlayOneShot ( 1
                                                         File ( "Startup_3ph.wav" -1 )
                                                         SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  152
                                                         StartLoopRelease ( 1
                                                         File ( "T18_Idle_mono.wav" -1 )
                                                         SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  150
                                                         ReleaseLoopRelease ()
                                          )
                                          )
                                          )
			Stream (
				Skip ( Compressor )
				Priority ( 3 )
                                Volume ( 0.8 )
				Triggers ( 2
					Discrete_Trigger (  12 	StartLoopRelease ( 1	File ( "3PH_AirComp.wav" -1 )
                                                         SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13 	ReleaseLoopRelease () )
				)
			        )
			Stream (
				Skip ( Engine Brake )
				Priority ( 3 )
				Volume ( 0.5 )
				Triggers ( 3
					Discrete_Trigger ( 21	StartLoopRelease ( 1	File ( "air_long.wav" -1 )	SelectionMethod ( SequentialSelection )	) )
					Discrete_Trigger ( 22	StartLoopRelease ( 1	File ( "air_long.wav" -1 )	SelectionMethod ( SequentialSelection )	) )
                                        Discrete_Trigger ( 140 ReleaseLoopRelease ( ) )
				)
			        )
			Stream (
				Skip ( Train Brakes )
				Priority ( 3 )
				Volume ( 0.5 )
				Triggers ( 3
					Discrete_Trigger ( 14	StartLoopRelease ( 1	File ( "air_long.wav" -1 )	SelectionMethod ( SequentialSelection )	) )
					Discrete_Trigger ( 54	StartLoopRelease ( 1	File ( "air_long.wav" -1 )	SelectionMethod ( SequentialSelection )	) )
                                        Discrete_Trigger ( 139 ReleaseLoopRelease ( ) )
				)
			        )
			Stream (
				Skip ( Alerter )
				Priority ( 3 )
				Volume ( 1.0 )
				Triggers ( 2
					Discrete_Trigger ( 56	StartLoopRelease ( 1	File ( "alerter.wav" -1 )	SelectionMethod ( SequentialSelection )	) )
                                        Discrete_Trigger ( 57 ReleaseLoopRelease ( ) )
			    )
			)
			Stream (
				Priority ( 6 )
				Volume ( 3.0 )
				Triggers ( 2
					Discrete_Trigger  ( 105  PlayOneShot    ( 1 File ( "door_tejaso.wav" -1 )   SelectionMethod ( SequentialSelection )  ) )
					Discrete_Trigger  ( 106  PlayOneShot    ( 1 File ( "doorsareclosing.wav" -1 )   SelectionMethod ( SequentialSelection )  ) )
				)
			)
			Stream (
				Skip ( Track Screeching )
				Priority ( 3 )
				Triggers ( 2
					Variable_Trigger ( CurveForce_Inc_Past 1 StartLoopRelease ( 1	File ( "screech_loop_1.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( CurveForce_Dec_Past 1	ReleaseLoopRelease ()	)

				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 6
						-150.0	 5000
						   0.0	0
						 4.17   40100
						 8.34	 44100
						 12.51   48000
						 33.36   52000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 6
						-150.0	0.35
						   0.0	0.0
						   4.15 0.0
						 4.17	0.2
						 8.34   4.0
						 33.36  0.6
					)
					Granularity ( 0.01 )	)
			)		
	 Stream (
				Skip ( **** Compressor **** )				
				Priority ( 6 )	
                                                                Volume ( 0.75 )		
				Triggers ( 2				
					Discrete_Trigger (  12	StartLoopRelease ( 1	File ( "x_Kompressor.wav" -1 )	SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  13	ReleaseLoopRelease () )	
				)
			)
			Stream (
				Skip ( **** Brake Rumble **** )				
				Priority ( 6 )			
				Triggers ( 6				
					Discrete_Trigger (  14	StartLoopRelease ( 1	File ( "acela_brake.wav" -1 )
SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 4.0	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						-150.0	 25000
						0.000		 10000
						150.0		 25000
					)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						 -150.0		1.0
						  -5.0		0.35
						   0.0		0.0
						   5.0		0.35
						 150.0		1.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** Brake Squeal **** )				
				Priority ( 6 )			
				Triggers ( 7				
					Discrete_Trigger (  14	StartLoopRelease ( 1	File ( "squeal.wav" -1 )
SelectionMethod ( SequentialSelection ) ) )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Discrete_Trigger (  54	ReleaseLoopRelease () )
					Variable_Trigger ( Speed_Dec_Past 0.2	ReleaseLoopRelease ()	)
					Variable_Trigger ( Speed_Inc_Past 7.0	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 3
						  -7.0		11000
						   0.0		12000
						   7.0		11000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 5
						  -5.0		0.0
						  -3.5		1.0
						   0.0		0.0
						   3.5		1.0
						   5.0		0.0
					)
					Granularity ( 0.05 )
				)				
			)
			Stream (
				Skip ( **** Wind Noise **** )
				Priority ( 6 )
				Triggers ( 2
					Variable_Trigger ( Speed_Inc_Past 30.0	StartLoop ( 1	File ( "wind.wav" -1 )	SelectionMethod ( SequentialSelection )	)	)
					Variable_Trigger ( Speed_Dec_Past 30.0	ReleaseLoopRelease ()	)
				)
				FrequencyCurve(
					SpeedControlled
					CurvePoints ( 5
						-150.0		18000
						 -30.0		11025
						   0.0		11025
						  30.0		11025
						 150.0		18000
						)
					Granularity ( 100 )
				)
				VolumeCurve(
					SpeedControlled
					CurvePoints ( 7
						-150.0		1.0
						 -35.0		0.1
						 -30.0		0.05
						   0.0		0.0
						  30.0		0.05
						  35.0		0.1
						 150.0		1.0
					)
					Granularity ( 0.01 )	)
			)
			Stream (
				Skip ( **** Train Brake **** )
				Volume ( 0.5 )
				Priority ( 5 )
				Triggers ( 1				
					Skip ( **** Brake Apply or Release **** )
					Discrete_Trigger (  54	
						PlayOneShot ( 3	
							File ( "acela_ibrake1.wav" -1 )	
							File ( "acela_ibrake2.wav" -1 )	
							File ( "acela_ibrake3.wav" -1 )	
							SelectionMethod ( RandomSelection ) 
						) 
					)
				)
			) 

			Stream (

                Priority ( 7 )
                Triggers ( 4
                                Initial_Trigger ( DisableTrigger ( 3 ) )
                                Discrete_Trigger ( 161 EnableTrigger ( 3 ) )
                                Variable_Trigger ( Distance_Dec_Past 70.0 PlayOneShot ( 8
        
                                                File ( "../../../AI-HORN/VandeBharat/VB2ED.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB3ED.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN1.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN2.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN3A.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN3B.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORNA.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VBHORN2.wav" -1 )

                                                SelectionMethod ( RandomSelection ) ) )
                                Variable_Trigger ( Distance_Dec_Past 35.0 DisableTrigger ( 3 ))
                                                
                )
                VolumeCurve(
                        SpeedControlled
                        CurvePoints ( 5
                                -100.0 1.0
                                -2.0 1.0
                                0 0.0
                                2.0 1.0
                                100.0 1.0
                        )
                        Granularity ( 0.1 )
                        )
                )      

				Stream (
                                Skip (**** ORTS AI: horn at train start ***************************************)
                Priority ( 7 )
                Triggers ( 3
                                Initial_Trigger ( DisableTrigger ( 3 ) )
                                Discrete_Trigger ( 161 EnableTrigger ( 3 ) )
                                Variable_Trigger ( Speed_Inc_Past 0.15 PlayOneShot ( 8
        
                                                File ( "../../../AI-HORN/VandeBharat/VB2ED.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB3ED.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN1.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN2.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN3A.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORN3B.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VB_NEW_HORNA.wav" -1 ) 
												File ( "../../../AI-HORN/VandeBharat/VBHORN2.wav" -1 )

                                                SelectionMethod ( RandomSelection ) ) )
                                                
                )
        )  

			Stream (
				Priority ( 6 )
				Volume ( 0.5 )
				Triggers ( 6
					Discrete_Trigger ( 58 
PlayOneShot ( 1 	File ( "x_couple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 59 PlayOneShot ( 1 	File ( "x_couple_chain2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 60 PlayOneShot ( 1 	File ( "x_couple_chain3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 61 PlayOneShot ( 1 	File ( "x_uncouple_chain1.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 62 PlayOneShot ( 1 	File ( "x_uncouple_chain2.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
					Discrete_Trigger ( 63 PlayOneShot ( 1 	File ( "x_uncouple_chain3.wav" -1 ) SelectionMethod (SequentialSelection) ) ) 
				)
			)
			Stream (
				Priority ( 4 )
				Triggers ( 6
					Variable_Trigger ( Speed_Inc_Past   1.0 StartLoop   ( 1 File ( "a_d_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 StartLoop   ( 1 File ( "a_d_comp2.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Inc_Past  50.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Speed_Dec_Past  49.0 StartLoop   ( 1 File ( "a_d_comp1.wav" -1 )   SelectionMethod ( SequentialSelection ) ) )
					Variable_Trigger ( Speed_Dec_Past  49.0 ReleaseLoopRelease () )					
					Variable_Trigger ( Speed_Dec_Past   1.0 ReleaseLoopRelease () )					
				)				
			)
		)
	)
)

<Admin comment:
Try to use "code" style for retaining original *.sms formation - copy file's content there, when needed>


#2 User is offline   steved 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,851
  • Joined: 19-December 09
  • Gender:Male
  • Location:South of here
  • Simulator:ORMG
  • Country:

Posted 03 March 2024 - 12:35 PM

You need to download a newer version. We're up to version 150. http://interazioni-e...loads/index.php
Who knows what's been fixed since v99.

Randy

#3 User is offline   देव 

  • Hostler
  • Group: Status: Active Member
  • Posts: 55
  • Joined: 06-December 20
  • Gender:Male
  • Simulator:msts
  • Country:

Posted 03 March 2024 - 12:44 PM

View Poststeved, on 03 March 2024 - 12:35 PM, said:

You need to download a newer version. We're up to version 150. http://interazioni-e...loads/index.php
Who knows what's been fixed since v99.

Randy



I tried in the latest version Rev150.3 also, in that also no sound is heard accordingly... :(

#4 User is offline   Csantucci 

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

Posted 04 March 2024 - 12:59 AM

See here for the new trigger numbers
https://www.elvastow...post__p__303606

#5 User is offline   देव 

  • Hostler
  • Group: Status: Active Member
  • Posts: 55
  • Joined: 06-December 20
  • Gender:Male
  • Simulator:msts
  • Country:

Posted 05 March 2024 - 02:52 AM

View PostCsantucci, on 04 March 2024 - 12:59 AM, said:

See here for the new trigger numbers
https://www.elvastow...post__p__303606

Thanks... :)

Page 1 of 1
  • 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