BVEStation Forums

BVE => General BVE/OpenBVE => Topic started by: TJay1724 on April 24, 2011, 02:24:07 pm

Title: (For Developers) BVE and Route Annoucements
Post by: TJay1724 on April 24, 2011, 02:24:07 pm
What's up people? I've noticed that on all the routes here, the departure annoucements are being overrun by the sound of the doors closing. The reason for that is BVE as well as openBVE plays the departure sound 5 secs before the doors close. Now that is not realistic as in real life, the conductor will not close doors until the annoucement is fully completed and all passengers have boarded. (Except in NYC. We like to close doors on people  ;D ) Now for all new tech trains, R142, R143, R160 and so on, the departure annoucements are played as soon as the doors are OPENED. Now this CAN be done in both BVE 2/4 and openBVE for automated annoucements and manual annoucements. Here's how:

In both BVE 2/4 and openBVE, you have the .annouce command. This can be used anywhere along the route and we mainly use it to annouce the name of the station as we are arriving into the station. In the station namespace, there are 2 places for sound: arrival sound and departure sound. All of the routes here place their departure sounds in the departure namspace thus the overlapping, but if you place the departure sound in the ARRIVAL namespace, you will get that realistic automated annoucement as soon as the doors open. This is how its works:

Track.Sta Name; ArrivalTime; DepartureTime; PassAlarm; Doors; ForcedRedSignal; System; ARRIVALSOUND; StopDuration; PassengerRatio; DepartureSound; TimetableIndex
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Lance on April 24, 2011, 03:28:46 pm
[post deleted]
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Lexington456 on April 24, 2011, 05:56:42 pm
Sometimes it also depends on the train. Some of the trains developed have automatic door closing. Others have semi automatic and then there are ones with manual.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: error46146 on April 24, 2011, 06:29:33 pm
The problem is that RW does not support the ArrivalSound variable, therefore those who code in RW are pretty much forced to do it via the door-close method and just pray it plays right, which 99% of the time it doesn't..it's been a long long problem lol but not much we can do about it except for code in csv (this is the main reason why I began to switch to csv coding)
Title: Re: (For Developers) BVE and Route Annoucements
Post by: TJay1724 on April 24, 2011, 06:39:25 pm
It's cool. I just thought I'd mention it for future reference. I switched to csv because it allows more features than rw and because at the time there was only BVE 2/4 and BVE 4 only supports csv.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Bombardier01800 on April 24, 2011, 09:23:57 pm
I'm resuming work on the L tonight. Thanks for this. What I'll do is, play the announcement in the ARRIVAL sound as in: This is a Manhattan - Bound L Train..., and in the departure, I'll put the Stand Clear of the closing doors please. Do you think that'd work?
Title: Re: (For Developers) BVE and Route Annoucements
Post by: TJay1724 on April 24, 2011, 09:34:50 pm
It should work Jose. If you have the stand clear of the closing doors please sound, could you send that to me?
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Bombardier01800 on April 24, 2011, 09:37:09 pm
I'll go ahead and get it for you
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Lance on April 25, 2011, 08:07:53 am
http://www.4shared.com/audio/auhyZWPf/Stand_Clear_of_the_Doors.html (http://www.4shared.com/audio/auhyZWPf/Stand_Clear_of_the_Doors.html)

You're welcome.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Queens Blvd Express on April 25, 2011, 10:12:23 am
Would this work for .RW as well?
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Simon on April 25, 2011, 04:45:35 pm
Would this work for .RW as well?

Nope.

By the way Jose, I've noticed that on NTT routes, the annoucement plays too late. In real life, the train plays the announcements the second the train doors are finished opening (On all B division routes), and on IRT routes, they start playing while the doors are opening.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Lance on April 25, 2011, 05:01:09 pm
That's the point TJay was making. Instead of playing as the doors would close, using the code provided, they would play as the doors open.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: kawasakir160 on April 25, 2011, 05:49:59 pm
where can you find the .announce command so you can change it to play the annoucnement as soon as the doors OPEN? :-\
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Bombardier01800 on April 25, 2011, 06:02:08 pm
Would this work for .RW as well?

Nope.

By the way Jose, I've noticed that on NTT routes, the annoucement plays too late. In real life, the train plays the announcements the second the train doors are finished opening (On all B division routes), and on IRT routes, they start playing while the doors are opening.
Exactly, that's what I want to experiment with. However, the announcement identifying the train and what not plays when the doors open, but the Stand Clear one plays before they close.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: TJay1724 on April 25, 2011, 06:22:37 pm
Lance thanks for the link, Queens Blvd Express, this will not work on rw files and yes I put all this together in a demo file which as soon as cam studio stops annoying me, I will post a vid for.
Title: Re: (For Developers) BVE and Route Annoucements
Post by: Rayvon on April 25, 2011, 06:44:29 pm
Lance thanks for the link, Queens Blvd Express, this will not work on rw files and yes I put all this together in a demo file which as soon as cam studio stops annoying me, I will post a vid for.
You should Try HyperCam or FRAPS, CamStudio is too 'raw' in my opinion and isn't as flexible