BVEStation Forums

BVE => BVE/OpenBVE Support => Topic started by: peacemak3r on February 22, 2011, 07:22:05 pm

Title: Code the sides where the doors opens.
Post by: peacemak3r 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.
Title: Re: Code the sides where the doors opens.
Post by: Lexington456 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.
Title: Re: Code the sides where the doors opens.
Post by: error46146 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
Title: Re: Code the sides where the doors opens.
Post by: Lance 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.
Title: Re: Code the sides where the doors opens.
Post by: r160bve 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
Title: Re: Code the sides where the doors opens.
Post by: Lance 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).
Title: Re: Code the sides where the doors opens.
Post by: r160bve on March 03, 2011, 05:30:14 pm
thanks Lance ;D