BVEStation Forums

BVE => BVE/OpenBVE Support => Topic started by: sj_ParkchesterXP on July 25, 2011, 02:36:34 pm

Title: Random Doors opening on some routes
Post by: sj_ParkchesterXP on July 25, 2011, 02:36:34 pm
Some routes I use like the K train have their doors open on the wrong side. I use some the new generation trains on the routes since the animation on them makes the route at least feel realistic. Is there a way to fix that the doors won't open on the wrong side?
Title: Re: Random Doors opening on some routes
Post by: bve on July 25, 2011, 02:37:44 pm
I believe there is a error in the coding that causes that.
Title: Re: Random Doors opening on some routes
Post by: SubwayTrainOperator5 on July 25, 2011, 02:47:45 pm
All older BVE4 routes do that too, because in BVE4 it didn't matter which side the doors opened because BVE4 did not have a left door/right door feature, which is why the doors always open on one side if you play the route on OpenBVE regardless of what side the platform is at
Title: Re: Random Doors opening on some routes
Post by: Bombardier01800 on July 25, 2011, 02:50:53 pm
The platform is just an object, and some of those routes are coded in RW. In BVE, you can't tell the difference. In OpenBVE, you can. RW, unless it has the command, will open the doors on both sides. If you convert an RW route to CSV using BRR, the doors will always open on the right (2 and A) Yes there is a way to fix it, you have to modify the .sta command.
Title: Re: Random Doors opening on some routes
Post by: Rayvon on July 25, 2011, 02:59:52 pm
All older BVE4 routes do that too, because in BVE4 it didn't matter which side the doors opened because BVE4 did not have a left door/right door feature, which is why the doors always open on one side if you play the route on OpenBVE regardless of what side the platform is at
yes it did, some developers just didn't add the code in right.
Title: Re: Random Doors opening on some routes
Post by: sj_ParkchesterXP on July 25, 2011, 03:18:02 pm
The platform is just an object, and some of those routes are coded in RW. In BVE, you can't tell the difference. In OpenBVE, you can. RW, unless it has the command, will open the doors on both sides. If you convert an RW route to CSV using BRR, the doors will always open on the right (2 and A) Yes there is a way to fix it, you have to modify the .sta command.

How can that be possible with BRR?
Title: Re: Random Doors opening on some routes
Post by: Lance on July 25, 2011, 04:58:14 pm
The platform is just an object, and some of those routes are coded in RW. In BVE, you can't tell the difference. In OpenBVE, you can. RW, unless it has the command, will open the doors on both sides. If you convert an RW route to CSV using BRR, the doors will always open on the right (2 and A) Yes there is a way to fix it, you have to modify the .sta command.

How can that be possible with BRR?

Don't worry about BRR, you can fix the door issue with .rw routes without the conversion process.
Below is a line of code from the fictional (K) line:
Code: [Select]
@station(Passaic Juction,,,1,ats,\K\Passaic Juction_dep.wav)The "1" is the default code for opening the right side. All you have to do is change that "1" to either "L", "R" (for left or right obviously) or "B" (for both) to determine which side the train doors open at a station so the line shows the following:
Code: [Select]
@station(Passaic Juction,,,R,ats,\K\Passaic Juction_dep.wav)Now you have to do the same for each station that's supposed to open on the left.

On a side note, I'd recommend downloading NotePad++ since it's much easier to see the code than it is in regular Notepad or Excel.