Announcement

Collapse
No announcement yet.

Playing Random Music in Observation Car

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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
    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

    Comment


      #3
      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, Gerry
      "A mind is like a parachute. It doesn't work if it is not open." Frank Zappa
      It's my railroad and I'll do what I want! Historically accurate attitude of US Railroad Barons.
      Forever, ridin' drag in railroad knowledge.
      Audi, Vide, Tace, Si Vis Vivere In Pace

      Comment


        #4
        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:
        SIMISA@@@@@@@@@@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 )
        						)	
        					)
        				)
        			)
        		)
        	)
        )

        Comment

        Working...
        X