BVEStation Forums

BVE => BVE/OpenBVE Support => Topic started by: NYC-T-Driver on March 25, 2012, 05:31:25 pm

Title: OPEn BVE code for the doors to open automatically
Post by: NYC-T-Driver on March 25, 2012, 05:31:25 pm
i have a problem that the doors on my train wanna open automatically on the wrong side, or the doors wanna open on the right side when the station is on the left, or when i pull in the station, both doors wanna open when i stop my train.

can someone show me the code so i can change it myself. idk what the code looks like so i need help finding it
Title: Re: OPEn BVE code for the doors to open automatically
Post by: SubwayTrainOperator5 on March 25, 2012, 06:01:05 pm
It is in the station code line

7875,.sta 207th Street;11.2800;11.2830;0;1;0;0;;20;45;\A2\207_DEP.wav,

The 4th number after the station name (The red one that I underlined and put in bold) controls which side the doors open. If it is -1, they will open on the left, 0 opens on both sides, and 1 opens on the right
Title: Re: OPEn BVE code for the doors to open automatically
Post by: NYC-T-Driver on March 25, 2012, 06:40:48 pm
thank you. you have been a excellent help
Title: Re: OPEn BVE code for the doors to open automatically
Post by: NYC-T-Driver on March 28, 2012, 10:21:17 am
Where is the Door Code on this code ???

2050@station(116th Street/5th Avenue,11.3700,11.3715,1,ats,12\116D.wav)@freeobj(1,110,0.4,0,0)@freeobj(0,110,4.85,0,0)

Title: Re: OPEn BVE code for the doors to open automatically
Post by: SubwayTrainOperator5 on March 28, 2012, 02:25:56 pm
That is the type of station code found in RW route files, unfortunately I do not know how to change the door opening side in RW's. I only know how to do it in CSV's
Title: Re: OPEn BVE code for the doors to open automatically
Post by: error46146 on March 28, 2012, 02:56:48 pm
Where is the Door Code on this code ???

2050@station(116th Street/5th Avenue,11.3700,11.3715,1,ats,12\116D.wav)@freeobj(1,110,0.4,0,0)@freeobj(0,110,4.85,0,0)

In RW there is no way to set which sides the doors open on - the doors open on both sides in a RW file.

Title: Re: OPEn BVE code for the doors to open automatically
Post by: NYC-T-Driver on March 28, 2012, 03:25:25 pm
ok. thank you though
Title: Re: OPEn BVE code for the doors to open automatically
Post by: TJay1724 on March 28, 2012, 06:09:11 pm
For RW files, that's not completely true. There is a way to determine which side the doors open on. While the @station command most likely doesn't allow this, the @STA command does. It needs to be coded like this:

@sta(Patapsco Street,,,0, -1,0,0,,25,65)

Where the -1 is to have the doors open on the left side only. 1 for the right, or 0 for both.
Title: Re: OPEn BVE code for the doors to open automatically
Post by: NYC-T-Driver on March 28, 2012, 06:21:17 pm
I don't see that in this code though
Title: Re: OPEn BVE code for the doors to open automatically
Post by: SubwayTrainOperator5 on March 28, 2012, 06:30:32 pm
You will have to completely change the code from the @STATION code to the @STA code, RW files allow both of them.