Train-Sim.Com
MSTS Locomotive Design

Light coding

Notice to all visitors and members of the Train-Sim.Com message forums:
If you plan on using a signature banner in your posts, we would like to remind you that there is a maximum size for banners. That maximum is 450 pixels wide by 120 pixels high, and not to exceed 25k. Your compliance is appreciated. FORUM RULES Problems? There are two common reasons for problems with logging in and posting messages. The first is that you are running a firewall that prevents your messages from being sent to the server. The other is that you have cookies disabled; the DCForum software requires cookies to work properly.

Previous Topic | Next Topic

Printer-friendly copy Email this topic to a friend

Reading Topic #8023

Member since Apr-9-03 · 1136 posts

Light coding – image 1

Simple question: I'm just about done adjusting the lighting scheme Kelley Ellison did for Justin Cornell's SD40-2s to fit Dick Cowen's SD60M, but I have one question: How do you code the rear lights so that they will turn off when the locomotive couples to another piece of rolling stock?Jonathan Nikiforovs.
Milepost 180, CP Belleville Sub.Repainter for Yonder Locomotive Works.Light coding – image 2

"A crictic is a man who creates nothing and thereby feels qualified to judge the work of creative men. There is logic in this; he is unbiased - he hates all creative people equally." - Lazarus Long

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Apr-7-04 · 102 posts

RE: Light coding

To make the rear headlights turn off when coupled to another locomotive, under "Conditions" the "Unit" line should have the number 3 as in the section below. For more info on lihghting codes look at the TechDocs on Disc 1 of MSTS.Light (
Type ( 0 #Rear Left Headlight Bright )
Conditions (
Headlight ( 3 )
Unit ( 3 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffffffff )
Position ( 0.107 3.894 -8.12 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 0.4 )
)
)
)

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Member since Apr-9-03 · 1136 posts

RE: Light coding

Light coding – image 3

Thanks, that did the trick .Jonathan Nikiforovs.
Milepost 180, CP Belleville Sub.Repainter for Yonder Locomotive Works.Light coding – image 4

"A crictic is a man who creates nothing and thereby feels qualified to judge the work of creative men. There is logic in this; he is unbiased - he hates all creative people equally." - Lazarus Long

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 2085 posts

RE: Light coding

Hey there, Sorry I didn't see this sooner......Read the tech docs......Then FORGET what you read.......I/we have came SO FAR from those docs...many of the codes I do now are my own personal stuff. I am WAY beyond the originals. KUJU had NO clue what they were doing in lighting. If they did, they would have made the damn program without that STUPID 250-ish light limit. When I did Cornell's stuff, I hadn't started setting them (rear) to go off when coupled...I do that on ALL the systems I do now unless asked otherwise, along with numberboards and classification lights on trailing units. Next time you have questions on a lighting system, e-mail me direct at niceoneace@aol.com....remember, I still do custom stuff as well if you need me. Good luck!
Later!!

Kelley D. Ellison
CSX A-Line Chief Lighting Engineer
NALW Lighting Engineer
Light coding – image 5
Dekosoft Lighting Engineer
GM&O SIMULATIONS Chief Lighting Engineer

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 1553 posts

RE: Light coding

Hey, Kelley--have you ever thought of doing your own tutorial regarding lighting? Might be a pain in the butt short-term, but might free you up long-term. I, for one, would be interested in it b/c I like to fiddle with the lights when I do repaints, but have no other resource besides the tech docs. Anyway, just a thought. . .

Clayton

Alert | IP

Printer-friendly page | Edit | Reply | Reply With Quote | Top

Charter Member · 601 posts

RE: Light coding

Good idea, Clayton; what say Kelley ? Ron K of Rockford

Alert | IP


[ Home | MSTS Forum | MSTS FAQ | File Library ] Copyright © 2004 by Nels Anderson. All Rights Reserved.

Restored from the Train-Sim.Com archive, captured June 20, 2004. About this archive.