Elvas Tower: Headlights - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Headlights Rate Topic: -----

#11 User is offline   X3D 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 28-January 19
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 03 September 2019 - 05:47 AM

Hi, Ged

That light section you posted works fine for me now when switching cabs, thankyou.

The lighting code for London & South East locos I posted, I added to actually make them work because previously they had no function at all in ORTS.

Thanks, Graeme

#12 User is offline   slipperman 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 760
  • Joined: 09-February 12
  • Gender:Male
  • Location:North Nottinghamshire
  • Simulator:MSTS & ORTS
  • Country:

Posted 03 September 2019 - 06:12 AM

Hi Graeme,
London & South East lights.
The units you specified don't have any modelled lights, so have no lights section. I tested your sample with a 201 and there are two problems :

1. The first line needs changing from 'Lights ( 1' to 'Lights ( 4' [because there are four lights sub-sections!]
2. The light's position is much too far forward - for the 201, the third value of 'Position' should be 8.80 (instead of 10.0). This should be applied to all 4 'Position' entries. The value will probably need changing for other vehicle types - you can use Paul Gausden's Shape Viewer (UKTS_7930) together with Ian Macmillan's Measuring Tool (UKTS_14872) to determine the position (width (x), height (y) and length (z)) of any point on a model.

Cheers,
Ged

#13 User is offline   X3D 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 28-January 19
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 03 September 2019 - 08:22 AM

Hi Ged, I was not aware of these tools and how they work together so perfectly, so many hidden gems to be found.

Regarding the L&SE, I positioned the lights according to the MT_DB_BlueGrey_BR_EPB thinking that the others would fall into place, thanks for that extra info about the 4 light sub sections.

Your info is much appreciated, Graeme

#14 User is offline   X3D 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 28-January 19
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 04 September 2019 - 07:48 AM

After using the complete lights section for NWC_45048 I noticed 2 of the North Wales Coast 2 activities show as an error: 1A46 & 1D02 both use the 45048

I have also got the same issue with a diesel I updated in L&SE, any idea why this is occurring, no doubt its an easy fix? [hopefully]

Thanks, Graeme

#15 User is offline   slipperman 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 760
  • Joined: 09-February 12
  • Gender:Male
  • Location:North Nottinghamshire
  • Simulator:MSTS & ORTS
  • Country:

Posted 04 September 2019 - 09:10 AM

Hi Graeme,
What, exactly, is the error you're getting?

You reported that the 45048 lights worked correctly in your 02:47PM post of yesterday. Have you made any changes to the .eng file since then?

First thing which comes to mind is that you're either short of a close bracket, or have too many!

Having checked the file I posted, the open- & close-brackets are all balanced so I'm pretty sure the problem isn't there.

Cheers,
Ged

#16 User is offline   X3D 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 28-January 19
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 04 September 2019 - 10:35 AM

Hi Ged, The 45048 does work correctly when I first checked it with the Peak Army Activity and it still does, I haven't tampered with your code because it is working perfectly.

EDIT: I just replaced the NWC_45048 with the original code and all activities are working now.

This is the error now on 2 activities that utilises the 45048:

https://i.postimg.cc/sXDNLqfH/capture-001-04092019-191859.jpg

I have the same problem concerning a Class 33 from L&SE, an error has appeared for its activity.

Here is the code I prepared for the Class 33's, maybe I have done something to upset it?

  5.1N/rad/s  1  -1rad/s  0  1
 )

 Lights ( 12
       Light (
             comment( Marker light Right (Dim) CONE )
			 Type  ( 1 )
             Conditions (
                   Headlight ( 2 )
                   Unit ( 2 )
             )
             FadeIn ( 0.5 )
             FadeOut ( 0.5 )
			 Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffdd )
                         Position ( -1.05 1.50 7.24 )
                         Transition ( 1 )
                         Radius ( 20.0 )
                         Angle ( 15.0 )
                   )
             )
       )
       Light (
             comment( Marker light Right (Dim) GLOW )
             Type  ( 0 )
             Conditions (
                    Headlight ( 2 )
                    Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffcc )
                         Position ( -1.05 1.50 7.24 )
                         Azimuth ( 0.0 0.0 0.0 )
                         Transition ( 1 )
                         Radius ( 0.25 )
                   )
	          )
       )
       Light (
             comment( Marker light Left (Dim) CONE )
             Type  ( 1 )
             Conditions (
                   Headlight ( 2 )
                   Unit ( 2 )
             )  
             FadeIn ( 0.5 )
             FadeOut ( 0.5 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffdd ) 
                         Position ( 1.10 1.50 7.24 )
                         Transition ( 1 )
                         Radius ( 20.0 )
                         Angle ( 15.0 )
                   )
             )
       )
       Light (
             comment( Marker light Left (Dim) GLOW )
             Type  ( 0 )
             Conditions (
                   Headlight ( 2 )
                   Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffcc )
                         Position ( 1.10 1.50 7.24 )
                         Azimuth ( 0.0 0.0 0.0 )
                         Transition ( 1 )
                         Radius ( 0.25 )
                   )
             )
	  )
	  Light (
             comment( Marker light Right (Bright) CONE )
			 Type  ( 1 )
             Conditions (
                   Headlight ( 3 )
                   Unit ( 2 )
             )
             FadeIn ( 0.5 )
             FadeOut ( 0.5 )
			 Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffdd )
                         Position ( -1.05 1.50 7.24 )
                         Transition ( 1 )
                         Radius ( 60.0 )
                         Angle ( 15.0 )
                   )
             )
       )
       Light (
             comment( Marker light Right (Bright) GLOW )
             Type  ( 0 )
             Conditions (
                    Headlight ( 3 )
                    Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffcc )
                         Position ( -1.05 1.50 7.24 )
                         Azimuth ( 0.0 0.0 0.0 )
                         Transition ( 1 )
                         Radius ( 0.5 )
                   )
	          )
       )
       Light (
             comment( Marker light Left (Bright) CONE )
             Type  ( 1 )
             Conditions (
                   Headlight ( 3 )
                   Unit ( 2 )
             )  
             FadeIn ( 0.5 )
             FadeOut ( 0.5 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffdd ) 
                         Position ( 1.10 1.50 7.24 )
                         Transition ( 1 )
                         Radius ( 60.0 )
                         Angle ( 15.0 )
                   )
             )
       )
       Light (
             comment( Marker light Left (Bright) GLOW )
             Type  ( 0 )
             Conditions (
                   Headlight ( 3 )
                   Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( ffffffcc )
                         Position ( 1.10 1.50 7.24 )
                         Azimuth ( 0.0 0.0 0.0 )
                         Transition ( 1 )
                         Radius ( 0.5 )
                   )
             )
	  )
       Light (
             comment( Rear Marker light Right (Bright) GLOW )
             Type  ( 0 )
             Conditions (
                    Headlight ( 3 )
                    Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( 80ff0000 )
                         Position ( -1.10 1.50 -7.24 )
                         Azimuth ( -180.0 -180.0 -180.0 )
                         Transition ( 1 )
                         Radius ( 0.5 )
                   )
	          )
       )
       Light (
             comment( Marker light Left (Bright) GLOW )
             Type  ( 0 )
             Conditions (
                   Headlight ( 3 )
                   Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( 80ff0000 )
                         Position ( 1.05 1.50 -7.24 )
                         Azimuth ( -180.0 -180.0 -180.0 )
                         Transition ( 1 )
                         Radius ( 0.5 ) 
                  )
             )
	  )
       Light (
             comment( Rear Marker light Right (Dim) GLOW )
             Type  ( 0 )
             Conditions (
                    Headlight ( 2 )
                    Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( 80ff0000 )
                         Position ( -1.10 1.50 -7.24 )
                         Azimuth ( -180.0 -180.0 -180.0 )
                         Transition ( 1 )
                         Radius ( 0.25 )
                   )
	          )
       )
       Light (
             comment( Marker light Left (Dim) GLOW )
             Type  ( 0 )
             Conditions (
                   Headlight ( 2 )
                   Unit ( 2 )
             )
             FadeIn ( 0.9 )
             FadeOut ( 0.9 )
             Cycle ( 0 )
             States ( 1
                   State (
                         Duration ( 1.0 )
                         LightColour ( 80ff0000 )
                         Position ( 1.05 1.50 -7.24 )
                         Azimuth ( -180.0 -180.0 -180.0 )
                         Transition ( 1 )
                         Radius ( 0.25 ) 						 
	               )
	         )
       )
 )

 AntiSlip ()

BrakeEquipmentType( "Triple_valve, Auxilary_reservoir, Emergency_brake_reservoir" )


Thanks Graeme

#17 User is offline   slipperman 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 760
  • Joined: 09-February 12
  • Gender:Male
  • Location:North Nottinghamshire
  • Simulator:MSTS & ORTS
  • Country:

Posted 04 September 2019 - 01:44 PM

HI Graeme,
There's nothing wrong with your Lights section - I've just applied it to 33038. However, it seems to be located in a non-standard position within the .eng file, although that shouldn't stop it from working. It may be that you've 'lost' either an open bracket or a close bracket and the only way for us to check it is for you to zip up the .eng file and attach it to a post.

As far as the Open Rails problem with the NWC activities are concerned, the Open Rails log may give more information - please zip that up and attach it to a post. It's unlikely to be caused by 45048 itself as the loco works OK, but there may be a problem with the consist, or other file which makes up the activity.

Cheers,
Ged

#18 User is offline   X3D 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 28-January 19
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 04 September 2019 - 11:21 PM

Hi Ged,
I re-pasted your code back into the NWC_45048 and all is well with the consists, I did clear the cache folder but I doubt that could have been the culprit.

The L&SE Class 33: These had existing light sections each in different locations within the .eng file, again there function in ORTS was faulty, so I basically re-coded as shown and pasted in place of the old light section, maybe that is an issue? I'll move them to a different spot and see if that helps bring back '15: Redhill-Norwood Departmental'

Thanks, Graeme

Edit: I figured out the problem with the Class 33:

State (
Duration ( 1.0 )
LightColour ( 80ff0000 )
Position ( 1.05 1.50 -7.24 )
Azimuth ( -180.0 -180.0 -180.0 )
Transition ( 1 )
Radius ( 0.25 )
)
)
)
)


) <-- I had removed/pasted over this bracket

Engine ( 33038

#19 User is offline   X3D 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 35
  • Joined: 28-January 19
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 05 September 2019 - 04:38 AM

Another fix regarding .eng files:

Example instance - North Wales Coast 2:

Activity:
Explore Route

Locomotive:
<load error: NWC_101_DMBS_B
<load error: NWC_101_DMBS_BG
<load error: NWC_101_DMBS_W

These .eng files were lacking 'Description' information, copying the DTCL.eng description text fixes this <load error: message.

Graeme

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users