BVEStation

Author Topic: Code the sides where the doors opens.  (Read 4996 times)

Offline peacemak3r

  • Dispatcher
  • ****
  • Posts: 536
  • Gender: Male
  • NYCTF
    • View Profile
Code the sides where the doors opens.
« on: February 22, 2011, 07:22:05 pm »
So whenever I drive trains with animated doors and such, I find it weird when it opens on the sides with no platforms.  Just wondering where in the codes I can alter the side where the doors can open?  Just for realism.

Offline Lexington456

  • Regular Developer
  • New Recruit
  • **
  • Posts: 93
  • Gender: Male
  • Long Live the Lex
    • View Profile
Re: Code the sides where the doors opens.
« Reply #1 on: February 22, 2011, 07:52:44 pm »
It's in the coding of the route, in the .sta command. I forgot which line of coding it is, but 0 means the doors don't open, 1 means the doors open on the right, and -1 means the doors open on the left. Look in the .sta command of the stations where the wrong doors open, and change it. it's usually a 1 surrounded by a bunch of zeros.

Offline error46146

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 620
  • Gender: Male
    • View Profile
    • Photography by me.
Re: Code the sides where the doors opens.
« Reply #2 on: February 22, 2011, 08:11:16 pm »
here's how the sta command works in csv:

,.sta 1;2;3;4;5;6;7;8;9;10;11;12,
1 = station name
2 = arrival time (hh.mmss)
3 = departure time (hh.mmss)
4 = whether the train's Pass alarm sounds to alert the t/o to stop at the next stop; not used in the subway so leave it as 0
5 = -1 for left doors open; 0 for all doors open; 1 for right doors open
6 = indicates whether the departure signal should be red by default or not. 1 = red, 0 = not
7 = indicates safety system to be used; 0 = ATS, 1 = ATC
8 = sound that is played when doors open
9 = dwell time in the station including door open/closing times in seconds
10 = a number from 0-250 stating how many passengers are on the train (0 = none, 100 = normal, 250 = overcrowded)
11 = sound that is played when doors close
12 = (for openbve use only) which timetable should be shown for the station

Offline Lance

  • Operator
  • ***
  • Posts: 283
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: Code the sides where the doors opens.
« Reply #3 on: February 22, 2011, 10:44:13 pm »
Just a small error, error.

For number 5, 0 doesn't mean both doors open, but rather, no doors open. "B" means both doors open. You could also put "L" for left doors or "R" for right doors.

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

Offline r160bve

  • Conductor
  • **
  • Posts: 154
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: Code the sides where the doors opens.
« Reply #4 on: March 03, 2011, 08:09:06 am »
Hey guys....could you help me with something:
When i run the 2 line...it takes 20 seconds to depart the station,i noe that it's normal but how could you reduce that time to 10 seconds..
the way SIR North Shore does it in his videos
Check out my YouTube channel:
www.youtube.com/csx8851

Offline Lance

  • Operator
  • ***
  • Posts: 283
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: Code the sides where the doors opens.
« Reply #5 on: March 03, 2011, 08:51:55 am »
On the .sta line, there should be a "20" somewhere on that line. Change that to "10" (or whatever dwell time you want).

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

Offline r160bve

  • Conductor
  • **
  • Posts: 154
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: Code the sides where the doors opens.
« Reply #6 on: March 03, 2011, 05:30:14 pm »
thanks Lance ;D
Check out my YouTube channel:
www.youtube.com/csx8851