Train-Sim.Com
MSTS Locomotive Design

Lighting question/problem

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

Member since May-31-03 · 15 posts

Lighting question/problem – image 1

Hello
I've got a lighting problem with a loco I can't seem to figure out. What causes a loco to have the headlight visible on the engine itself, but not to be projecting a beam, meaning not illuminating the track in front of it when on bright? What is the variable that needs to be adjusted to correct this? Thanks for any help!GrizzlyLighting question/problem – image 2 Lighting question/problem – image 3

Alert | IP

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

Charter Member · 161 posts

RE: Lighting question/problem

Lighting question/problem – image 4




Hey Grizz, it's all in the .eng file. If you open your file in question, one of the first lights you see listed should look similar to this:
Light (
Type ( 1 #Sphere of light)
Conditions (
Headlight ( 2 )
Unit ( 2 )
)
Cycle ( 0 )
FadeIn ( 0.5 )
FadeOut ( 0.5 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffF9DFB2 )
Position ( 0 3.894 12 )
Transition ( 0 )
Radius ( 200.0 )
Angle ( 75.0 )
)
)
)
This is just a sample, I'm sure your values will differ. What is important though is what I highlighted in blue. The condition followed by the words headlight ( 2) above, means that the person has their lights set to dim for that condition. Find the light that says sphere of light and has "condition headlight ( 2 )" in your .eng file. This is the light for the light settings on dim. Copy this light section and change the condition number to "3" for bright. Be sure to add one to the total number of lights listed at the top of the lighting section or you're sure to get the send/don't send reminder! If you want to make the light brighter, you will see something like: "lightcolour ( ffaabbcc )" I'm just exaggerating the letters to let you know they are for different things. The first two: ff represent how bright the light will be. They are hexadecimal numbers like web page value for colors, but these control the brightness of the light. ff is the highest they can be. The next six letters represent the actual color of the light as Red, Green, and Blue in those respective orders. So this is how you break it down: (Underline= brightness) FFAABBCC. I hope this helps and doesn't confuse you more. If you have any other questions just ask, maybe someone else could explain it more simply than I have!


Lighting question/problem – image 5

Alert | IP

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

Member since May-31-03 · 15 posts

RE: Lighting question/problem

Lighting question/problem – image 6

Thanks for the info Kyle, I got it working now. The problem occurs on NALW Challengers, if anyone else hasn't noticed. Seems they forgot the Headlight ( 3 ) line in the Part 2 eng file. Works good now.GrizzlyLighting question/problem – image 7 Lighting question/problem – image 8

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 July 29, 2003. About this archive.