Results 1 to 4 of 4

Thread: Playing Random Music in Observation Car

  1. #1

    Default Playing Random Music in Observation Car

    Hi there

    I'm playing around with the SMS file for the passenger view of an observation car. I've got it to the point of playing 1 of 4 different songs on a random basis each time I change to the passenger view. Once a song finishes it then repeats. If I leave the passenger view and come back, a different song plays and repeats.

    What I would like it to do is when a song finishes, another of the 4 songs starts, on a random basis.

    I've searched the forum and came up with a thread from 2002 that has instructions but they don't work for me.

    I'm wondering if what I want to do is even possible.

    Thanks

    Bert

  2. #2

    Default

    Well, after a bit of playing around, and more searching, I found a more recent thread from 2012 that used a different trigger statement and now I have want I want.

    I can sit in the observation car and listen to random songs playing one after another.

    If there is any interest I can post what worked for me.

    Bert

  3. #3
    Join Date
    Feb 2013
    Location
    known universe
    Posts
    1,927

    Default

    Yep, there is...post here or PM me Bert, I think I'm ready to start learning about sms files and sounds...seems like an interesting place to start. Cheers, Gerry
    Cheers, R. Steele [Gerry] It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.


  4. #4

    Default

    So this is the SMS file that ended up working for me.

    What this accomplishes is with the Quantity of Sounds slider in MSTS set to high, or Sound Detail Level in OR set to 5, the 2 streams in ScalabilityGroup 5 will play. When you engage the Passenger view (5 on the keyboard) you will get some background chatter along with the 4 songs played one after the other in random order.

    If you set the Quantity of Sounds slider in MSTS to medium, or Sound Detail Level in OR set to 3, all you will get is the background chatter in the ScalabilityGroup 3.

    Of course all the wave files should be in the Sound folder of the car with the passenger view set up in the WAG file (or aliased - but I haven't tried that).

    This is the first time I've tried setting up an SMS file so the above could just be beginners luck LOL!

    Bert

    Code:
    [email protected]@@@@@@@@@JINX0x1t______
    
    
    Tr_SMS (
    
    	ScalabiltyGroup( 5
    		Activation (	PassengerCam()	)
    		Deactivation (	ExternalCam()	CabCam()	)
    		Stereo()
    		Streams ( 2
    			Stream (
    				Priority ( 3 )
    				Triggers ( 1
    					Initial_Trigger (	
    						StartLoop ( 2	
    							File ( "cdnlite1.wav" -1 )	
    							File ( "cdnfull1.wav" -1 )	
    							SelectionMethod ( RandomSelection )	
    						)	
    					)
    				)
    			)
    			Stream (
    				Priority ( 3 )
    				Triggers ( 1
    					Random_Trigger ( Delay_Min_Max ( 1 1 ) Volume_Min_Max ( 1 1 )
    						PlayOneShot ( 4
    							File ( "Song1.wav" -1 )
    							File ( "Song2.wav" -1 )
    							File ( "Song3.wav" -1 )
    							File ( "Song4.wav" -1 )
    							SelectionMethod ( RandomSelection )
    						)
    					)
    				)
    			)
    		)
    	)
    
    	Skip ( ** As above but no Music ** )
    	ScalabiltyGroup( 3
    		Activation (	PassengerCam()	Distance    (55))
    		Deactivation (	ExternalCam()	CabCam()	Distance(50)	)
    		Stereo()
    		Streams ( 1
    			Stream (
    				Priority ( 3 )
    				Triggers ( 1
    					Initial_Trigger (
    						StartLoop ( 2	
    							File ( "cdnlite1.wav" -1 )	
    							File ( "cdnfull1.wav" -1 )	
    							SelectionMethod ( RandomSelection )
    						)	
    					)
    				)
    			)
    		)
    	)
    )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •