Page 1 of 1
Lights not lighting up.
Posted: Thu Feb 03, 2011 6:50 pm
by expressboy1983
Hi folks.
I've made an AI version of the FGW 153 from the library, and i can not for the life of me get the lights to show on the AI version.
This is the model:
Here's the lights statement:
Lights ( 3
Light (
Type ( 0 )
Conditions (
Control ( 1 )
Headlight ( 3 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffffffff )
Position ( 0.93 1.873 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 1.0 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
Type ( 0 )
Conditions (
Control ( 1 )
Headlight ( 3 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.35 )
LightColour ( ffff0000 )
Position ( -0.705 1.873 -11.36 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 1.0 )
)
)
)
Light (
Type ( 0 )
Conditions (
Control ( 1 )
Headlight ( 3 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.35 )
LightColour ( ffff0000 )
Position ( 0.705 1.873 -11.36 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 1.0 )
)
)
)
)
I've tried all different combinations of 'Conditions' but none of them came to anything. Where have i gone wrong? Or is the lights statement just too simple?
Ta in advance.
Re: Lights not lighting up.
Posted: Thu Feb 03, 2011 7:12 pm
by dennisat
Here's an example which allows the model to be used for both AI and Driver. You may need to adjust the position parameters for the model you're using.
Dennis
Lights ( 18
Light (
comment( Sphere of light )
Type ( 1 )
Conditions (
Headlight ( 3 )
Unit ( 2 )
)
Cycle ( 0 )
FadeIn ( 0.5 )
FadeOut ( 0.5 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 90ffffff )
Position ( 0.0 1.66 11 )
Transition ( 0 )
Radius ( 250.0 )
Angle ( 15.0 )
)
)
)
Light (
comment( Red light right )
Type ( 0 )
Conditions (
Headlight ( 0 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ff0000 )
Position ( 0.68 1.7 -11.36 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Red light left )
Type ( 0 )
Conditions (
Headlight ( 0 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ff0000 )
Position ( -0.68 1.7 -11.36 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light right off )
Type ( 0 )
Conditions (
Headlight ( 1 )
Control ( 2 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ffffff )
Position ( -1.0 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light left off )
Type ( 0 )
Conditions (
Headlight ( 1 )
Control ( 2 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ffffff )
Position ( 1.0 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light right dim )
Type ( 0 )
Conditions (
Headlight ( 2 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ffffff )
Position ( -1.0 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light left dim )
Type ( 0 )
Conditions (
Headlight ( 2 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffffffff )
Position ( 0.89 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light right bright )
Type ( 0 )
Conditions (
Headlight ( 3 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffffffff )
Position ( -0.89 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light left bright )
Type ( 0 )
Conditions (
Headlight ( 3 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ffffff )
Position ( 1.0 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Comment ( AI Light Section )
Light (
comment( Left Rear red light AI )
Type ( 0 )
Conditions (
Headlight ( 0 )
Unit ( 3 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.35 )
LightColour ( 80ff0000 )
Position ( -0.68 1.7 -11.36 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 1.0 )
)
)
)
Light (
comment( right Rear red light AI )
Type ( 0 )
Conditions (
Headlight ( 0 )
Unit ( 3 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.35 )
LightColour ( 80ff0000 )
Position ( 0.68 1.7 -11.36 )
Azimuth ( -180 -180 -180 )
Transition ( 0 )
Radius ( 1.0 )
)
)
)
Light (
comment( Head light right AI )
Type ( 0 )
Conditions (
Control ( 1 )
Service ( 2 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( 80ffffff )
Position ( -1.0 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
Light (
comment( Head light left AI )
Type ( 0 )
Conditions (
Control ( 1 )
Service ( 2 )
Unit ( 2 )
)
FadeIn ( 0.5 )
FadeOut ( 0.5 )
Cycle ( 0 )
States ( 1
State (
Duration ( 0.0 )
LightColour ( ffffffff )
Position ( 0.89 1.98 11.36 )
Azimuth ( 0.0 0.0 0.0 )
Transition ( 0 )
Radius ( 0.75 )
Elevation ( 0.0 0.0 0.0 )
)
)
)
)
Re: Lights not lighting up.
Posted: Thu Feb 03, 2011 7:15 pm
by expressboy1983
Ahhh, whatever happened to good ole' simplicity...
Thanks Dennis, i'll give it a shot.

Re: Lights not lighting up.
Posted: Fri Feb 04, 2011 1:13 am
by steam4me
expressboy1983 wrote:Ahhh, whatever happened to good ole' simplicity...
Headlight (3) is a player loco command and means you've pressed the H key - which you can't do on an AI train.
Remove that line, leaving
Control (1)
Perhaps have a look at
http://msts.steam4me.net/tutorials/ai-lighting.html.