Lights not lighting up.

General MSTS related discussion that doesn't really fit into any of the other specific forums.

Moderator: Moderators

Locked
User avatar
expressboy1983
Well Established Forum Member
Posts: 981
Joined: Sun Nov 13, 2005 10:13 pm
Location: Trowbridge. In England, not Wales. :P

Lights not lighting up.

Post 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:

Invalid File ID [18819]


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? :roll:

Ta in advance.
Kindest regards,
Simon.

[.....The Briscard Fanatic.....]
[.....Author of Westington (BETA) for MSTS.....]
dennisat
Well Established Forum Member
Posts: 777
Joined: Fri Sep 07, 2007 3:28 pm

Re: Lights not lighting up.

Post 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 )
)
)
)
)
User avatar
expressboy1983
Well Established Forum Member
Posts: 981
Joined: Sun Nov 13, 2005 10:13 pm
Location: Trowbridge. In England, not Wales. :P

Re: Lights not lighting up.

Post by expressboy1983 »

Ahhh, whatever happened to good ole' simplicity... :)

Thanks Dennis, i'll give it a shot. :)
Kindest regards,
Simon.

[.....The Briscard Fanatic.....]
[.....Author of Westington (BETA) for MSTS.....]
User avatar
steam4me
Well Established Forum Member
Posts: 583
Joined: Thu Dec 06, 2001 12:00 am
Location: Melbourne, Victoria, Australia
Contact:

Re: Lights not lighting up.

Post 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.
Yuri
______________________________
steam4me
Freeware Australian MSTS Add-Ons & Tutorials
team-ALCO retail
Quality Australian payware MSTS Add-Ons
_______________________________
Locked

Return to “[MSTS1] General MSTS Discussion”