BVEStation

Author Topic: (For Developers) BVE and Route Annoucements  (Read 6200 times)

Offline TJay1724

  • Developer
  • Conductor
  • **
  • Posts: 150
  • Gender: Male
  • BVEStation Member
    • View Profile
(For Developers) BVE and Route Annoucements
« 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
« Last Edit: April 24, 2011, 02:49:19 pm by TJay1724 »

Offline Lance

  • Operator
  • ***
  • Posts: 283
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #1 on: April 24, 2011, 03:28:46 pm »
[post deleted]

'70s style service sign at Times Sq-42 St.

Offline Lexington456

  • Regular Developer
  • New Recruit
  • **
  • Posts: 93
  • Gender: Male
  • Long Live the Lex
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #2 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.

Offline error46146

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 620
  • Gender: Male
    • View Profile
    • Photography by me.
Re: (For Developers) BVE and Route Annoucements
« Reply #3 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)

Offline TJay1724

  • Developer
  • Conductor
  • **
  • Posts: 150
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #4 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.

Offline Bombardier01800

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 749
  • Gender: Male
  • Apple Certified Macintosh Technician
    • View Profile
    • MBTA and NJT Transit Forums
Re: (For Developers) BVE and Route Annoucements
« Reply #5 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?
Jose
BVEStation Administrator

Offline TJay1724

  • Developer
  • Conductor
  • **
  • Posts: 150
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #6 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?

Offline Bombardier01800

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 749
  • Gender: Male
  • Apple Certified Macintosh Technician
    • View Profile
    • MBTA and NJT Transit Forums
Re: (For Developers) BVE and Route Annoucements
« Reply #7 on: April 24, 2011, 09:37:09 pm »
I'll go ahead and get it for you
Jose
BVEStation Administrator

Offline Lance

  • Operator
  • ***
  • Posts: 283
  • Gender: Male
  • BVEStation Member
    • View Profile

'70s style service sign at Times Sq-42 St.

Offline Queens Blvd Express

  • Regular Developer
  • New Recruit
  • **
  • Posts: 7
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #9 on: April 25, 2011, 10:12:23 am »
Would this work for .RW as well?

Offline Simon

  • Conductor
  • **
  • Posts: 223
  • Gender: Male
  • BVEStation Member / Community Critic
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #10 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.
Kawasaki_Plant

Offline Lance

  • Operator
  • ***
  • Posts: 283
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #11 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.

'70s style service sign at Times Sq-42 St.

Offline kawasakir160

  • New Recruit
  • *
  • Posts: 53
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #12 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? :-\

Offline Bombardier01800

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 749
  • Gender: Male
  • Apple Certified Macintosh Technician
    • View Profile
    • MBTA and NJT Transit Forums
Re: (For Developers) BVE and Route Annoucements
« Reply #13 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.
Jose
BVEStation Administrator

Offline TJay1724

  • Developer
  • Conductor
  • **
  • Posts: 150
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: (For Developers) BVE and Route Annoucements
« Reply #14 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.