AI Honk

Discussion of rolling-stock creation & re-painting.

AI Honk

Unread postby aksingha » Wed Oct 22, 2014 10:20 am

Hi,
How can i make an AI train honk while crossing another train, arriving at station and before reaching a level crossing?
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: AI Honk

Unread postby artimrj » Wed Oct 22, 2014 11:12 am

If you figure out how, you will be my new hero!
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4722
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: AI Honk

Unread postby BNSFdude » Wed Oct 22, 2014 12:23 pm

Isn't that hard, I would suppose. I'd do it like how Matt Florack did with MSTS. Distance triggered sound event.
Anthony Wood
Audio Engineer - Searchlight Simulations
User avatar
BNSFdude
 
Posts: 2721
Joined: Tue Nov 29, 2011 1:46 am

Re: AI Honk

Unread postby aksingha » Wed Oct 22, 2014 12:46 pm

Would love to have this feature in RW...We really need a HERO :D
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: AI Honk

Unread postby PapaXpress » Wed Oct 22, 2014 7:50 pm

Trigger the scenario lua to call the horn control?
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: AI Honk

Unread postby aksingha » Thu Oct 23, 2014 1:15 am

PapaXpress wrote:Trigger the scenario lua to call the horn control?

Do you know how to? I do not have any knowledge of lua script !*don-know!*
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: AI Honk

Unread postby PapaXpress » Thu Oct 23, 2014 11:17 am

I know how I would go about writing the code, I just am tight on time.
Image
"Just post some random unrelated text. We have members here who can help you with that." ~ Chacal
"When all else fails, read the instructions... if that doesn't work either, try following them." ~ Old Prof
Image
The Grade Crossing - Atlanta North Project - Virtual Rail Creations
User avatar
PapaXpress
 
Posts: 5147
Joined: Sat Oct 23, 2010 10:30 pm
Location: that "other" timezone

Re: AI Honk

Unread postby aksingha » Thu Oct 23, 2014 12:12 pm

PapaXpress wrote:I know how I would go about writing the code, I just am tight on time.

!!*ok*!! That's great....Please do work on it, If you get time later..It would be awesome to have such option in Railworks..
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am

Re: AI Honk

Unread postby Kali » Fri Oct 31, 2014 2:59 am

I'm not remotely up to date on scenario scripting, so if people say you can trigger AI sounds from there then I will believe them ( and ask how! ).

There is another tool introduced with 2015, whistle boards - which are unsurprisingly meant to trigger whistles/horns. Unfortunately they don't work properly yet ( they had to be pulled out of one of the recent dlc ) and I'm not sure if they work as scenario objects, but it's worth some investigation because they'll probably get fixed.

Sadly the AI doesn't read custom signal messages so that sort of simple marker approach is also out. The hardest part of your query is honking when crossing another train - if you can do that from the scenario script, which presumably you can based on proximity, that sounds like a useful piece of code to put in a generic scenario scripting library. Presumably if markers and trains are interchangeable in the scenario script you can use the same code for all of it.
Kali
 
Posts: 1600
Joined: Mon Mar 14, 2011 1:00 am
Location: England-by-Sea

Re: AI Honk

Unread postby aksingha » Fri Oct 31, 2014 3:23 am

I think that some scenarios in the Munich-Augsburg route have this feature. I am not sure though, played it some time ago.
aksingha
 
Posts: 197
Joined: Thu Apr 10, 2014 9:25 am


Return to Rolling-Stock Design

Who is online

Users browsing this forum: No registered users and 3 guests