Train-Sim.Com
MSTS Locomotive Design

Night switching/reversed light cone from MU trailing en

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 #7215

Member since Sep-6-03 · 31 posts

LAST EDITED ON Sep-26-03 AT 09:07 AM (EDT)

Maybe some of you oldtimers already knew this, and maybe not--but just in case . . . . If you'd like to have lighting for night switching operations, set up one engine having a unique filename, e.g. "Engine_#123R.eng", according to the following but don't subject it to the Shape File Manager reversing process (which invalidates this code change). You will obtain a very realistic headlight (cone of light) illumination of the cars to be switched at the rear of your MU lashup, like so:
Night switching/reversed light cone from MU trailing en – image 1 Night switching/reversed light cone from MU trailing en – image 2 You do this by modifying the "Lights" section of the '.Eng' file, to include the following lines of code. Using this code provides appropriate 'cones of light' at both ends of the MU lashup, depending on whether you want to see ahead or to the rear. Running at night, with headlights on, produces lighting ahead; headlights off, lighting to the rear. With the 'PassengerCabinFile' view included here, attached to the "#5" key, you can move the camera around, using the arrow keys, and obtain a realistic switchman's view of the coupling operation. Inside (
PassengerCabinFile ( "Engine_#123R.s" )
PassengerCabinHeadPos ( -0.55 3.38 8.11 #adjust to suit engine )
RotationLimit ( 90 360 0 )
StartDirection ( 80 0 0 )
Sound ( "..\\..\\GP38\\Sound\\GP38Eng.sms" )
) Lights ( 23 #appropriate light count
Light (
Type ( 1 #Cone of light front d )
Conditions (
Headlight ( 1 )
Unit ( 3 )
Service ( 2 )
TimeOfDay ( 2 )
)
FadeIn ( 0.6 )
FadeOut ( 0.6 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0 )
LightColour ( fdffffff )
Position ( 0 2 2 )
Transition ( 0 )
Radius ( 300 )
Angle ( -18 )
)
)
)
Light (
Type ( 0 #Headlight top d )
Conditions (
Headlight ( 1 )
Unit ( 3 )
Service ( 2 )
TimeOfDay ( 2 # or '0' for always 'on' w/ headlight 'off' )
)
FadeIn ( 0.6 )
FadeOut ( 0.6 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0 )
LightColour ( ffffe0e0 )
Position ( 0 4.178 4.97 #adjust to suit engine )
Azimuth ( 0 0 0 )
Transition ( 0 )
Radius ( 0.75 )
)
)
)I have probably left something out, so if you have any questions, you can ask them here or e-mail me at: jwtitus@dslextreme.com (Ore car pictured is a product of "3DTrains", LTV package.) Wishing you all good simming.

JW Titus - Busy fixing what's broke and breaking what's not.
Night switching/reversed light cone from MU trailing en – image 3

Alert | IP

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

Member since Apr-15-03 · 1004 posts

RE: Night switching/reversed light cone from MU trailin

Oh that's cool!

Alert | IP


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

Restored from the Train-Sim.Com archive, captured October 28, 2003. About this archive.