BVEStation Forums

BVE => General BVE/OpenBVE => Topic started by: Simon on August 09, 2011, 04:23:25 pm

Title: Associating Brightness Commands
Post by: Simon on August 09, 2011, 04:23:25 pm
Took a stab at it today and opened up the (G)'s route file and tried to decipher the technique used to make it happen as well as read openBVE's documentation, but still have a few questions.

Is there an easier way to figure out which line of code starts when. The brightness commands are used when the platform begins (255/Fully Lighted) and when it hits the tunnels it goes to (0/Darkness). However, is there an easy way to pinpoint which numeric value it is when the platform ends and the tunnels start? That way, instead of flipping through the lines of code, I can easily determine what to put in after With Track?

Yes I know, I still haven't gotten the basics right.  :P
Title: Re: Associating Brightness Commands
Post by: Bombardier01800 on August 09, 2011, 04:40:16 pm
You use RouteViewer. Also, keep in mind that even though the train is in the station, I don't think that much light enters the cab. That's why I use a little less light
Title: Re: Associating Brightness Commands
Post by: Simon on August 09, 2011, 05:43:48 pm
Tried to do this on the (D), but failed. Gave me an error message saying the command track.brightness is not supported at line X.

Could someone offer an in depth tutorial at this.
Title: Re: Associating Brightness Commands
Post by: Bombardier01800 on August 09, 2011, 09:04:30 pm
ok there's a trick...
Let's say you're in station #1 which starts at meter mark 100.
Let's say the station is 50 meters long, and after it, you'd be going into the tunnel. You'd do:
100,.brightness 230,
145,.brightness 230,
155,.brightness 0,