Elvas Tower: AI horn blow on timetable acts? - Elvas Tower

Jump to content

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

AI horn blow on timetable acts? AI horn blow on timetable acts? Rate Topic: -----

#11 User is offline   Laci1959 

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

Posted 13 June 2023 - 06:36 AM

Hello.

This Discrete_Trigger number 320 is only available in the NYMG version or in the official release.

Sincerely, Laci 1959

#12 User is offline   Niknak 

  • Conductor
  • Group: Status: First Class
  • Posts: 280
  • Joined: 19-July 20
  • Gender:Male
  • Location:Kent UK
  • Simulator:OR NewYear MG
  • Country:

Posted 13 June 2023 - 06:45 AM

View PostAldarion, on 13 June 2023 - 04:35 AM, said:

Weter, thanks for locating the thread.

Right now my oown solution totally based on Carlo's is this:

                        Stream (
                                Skip (**** ORTS AI: horn at train meet ***************************************)
                                Priority ( 7 )
                                Triggers ( 4
                                        Initial_Trigger ( DisableTrigger ( 3 ) )
                                        Discrete_Trigger ( 320 EnableTrigger ( 3 ) )
                                        Variable_Trigger ( Distance_Dec_Past 100.0 PlayOneShot ( 6 File ( "x_2600buzina3.wav" -1 ) File ( "x_2600buzina4.wav" -1 ) File ( "x_2600buzina5.wav" -1 ) File ( "x_2600buzina6.wav" -1 ) File ( "x_2600buzina7.wav" -1 ) File ( "2600buzina8.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 )
                                )
                        )


Even though it looks a little above my brain grade I'll give that a try as I have the NYMG version. I'm assuming it goes in the loco external sms file and is it just for timetable or all acts? also I notice there are 6 different whistle wav files in the example.

#13 User is online   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 7,041
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 13 June 2023 - 07:59 AM

That's simple:
Initially, third trigger for sounding horns is deactivated,
If condition 320 is met, it activates third trigger, and one of 6 horn's sound variations will be played one time, as soon as AI train approaches to player's point of view closer, than 100m.
Then, being closer, than 35m - third trigger will be deactivated again.

#14 User is offline   Niknak 

  • Conductor
  • Group: Status: First Class
  • Posts: 280
  • Joined: 19-July 20
  • Gender:Male
  • Location:Kent UK
  • Simulator:OR NewYear MG
  • Country:

Posted 16 June 2023 - 11:54 AM

Well what do you know, it works lol. Thanks guys. :)

#15 User is offline   Aldarion 

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

Posted 16 June 2023 - 10:11 PM

View PostNiknak, on 13 June 2023 - 06:45 AM, said:

Even though it looks a little above my brain grade I'll give that a try as I have the NYMG version. I'm assuming it goes in the loco external sms file and is it just for timetable or all acts? also I notice there are 6 different whistle wav files in the example.


It goes to the external sms - normally ending with *eng.sms.
My solution in particular has 6 files because I had multiple recordings of the horn of the same locomotive in various combinations of the two tones, thus adding a little randomness. But the original example is just with one wave file. You can add as many as you want...
Be carefulll as to place it at the end of the respective scalabity group (5, i think). The first times i just added the code to the end of the file and t did not work cause I was adding it do a different scalabity group and changing the number of streams in another Scalabity Group... :wallbash:

#16 User is offline   Niknak 

  • Conductor
  • Group: Status: First Class
  • Posts: 280
  • Joined: 19-July 20
  • Gender:Male
  • Location:Kent UK
  • Simulator:OR NewYear MG
  • Country:

Posted 16 June 2023 - 11:33 PM

I put the new lines in between the ordinary whistle and sanding lines in the eng sms. There only appears to be one scalability shown at the very beginning of the file, which is 1. but it works ok. This is in the Cab Forward loco 4212.

Attached File(s)



#17 User is offline   Niknak 

  • Conductor
  • Group: Status: First Class
  • Posts: 280
  • Joined: 19-July 20
  • Gender:Male
  • Location:Kent UK
  • Simulator:OR NewYear MG
  • Country:

Posted 18 June 2023 - 06:40 AM

Also, it works equally well using the cab sms file too. I find the volume both internal and external a little quiet though but it's a great feature nevertheless.

#18 User is online   Weter 

  • Member, Board of Directors
  • PipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 7,041
  • Joined: 01-June 20
  • Gender:Not Telling
  • Simulator:ORTS
  • Country:

Posted 18 June 2023 - 12:17 PM

There can be set Volume () parameter for stream.

#19 User is offline   Niknak 

  • Conductor
  • Group: Status: First Class
  • Posts: 280
  • Joined: 19-July 20
  • Gender:Male
  • Location:Kent UK
  • Simulator:OR NewYear MG
  • Country:

Posted 19 June 2023 - 01:51 AM

Thank you Weter. I set the volume line I inserted to 2.0 and it seems to be somewhat louder although I'm never sure whether any volume level over 1.0 registers with OR.

#20 User is offline   Jonatan 

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

Posted 19 June 2023 - 04:32 AM

I've noticed in my experience that having volume set to above 1.0 makes a horn or whistle louder when far away, which is cool.

  • 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