Elvas Tower: Signal GLow - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Signal GLow A feature request Rate Topic: -----

#1 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 22 April 2017 - 02:45 AM

I want to say that can we have a feature of SIGNAL GLOW in NIGHT only.



#2 User is offline   roeter 

  • Vice President
  • Group: Posts: Elite Member
  • Posts: 2,453
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 22 April 2017 - 04:08 AM

See this post.

Regards,
Rob Roeterdink

#3 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 12 August 2017 - 05:56 AM

View Postroeter, on 22 April 2017 - 04:08 AM, said:

See this post.

Regards,
Rob Roeterdink


With reference to above link, I am not able to find the correct place to insert the code.
I guess it should be inserted somewhere after SignalType ( "xxx" ?
I am sharing you a small script of configuration as example to show me the correct use of this code.
SignalType ( "IND_2x_Automatic"

		SignalFnType ( NORMAL )
		SignalLightTex ( "Main Light of Signal" )

		SignalLights ( 3
			SignalLight ( 0 "Red Light"
				Position ( 0 3.9 0.2 )
				Radius ( 0.5 )
			)
		SignalLight ( 1 "Green Light"
				Position ( 0 4.2 0.2 )
				Radius ( 0.5 )
			)
        SignalLight ( 2 "White Light"
				Position ( 0 2.77 0.28 )
				Radius ( 0.32 )
			)

	)

		SignalDrawStates ( 2
			SignalDrawState ( 0
				"Red"
				DrawLights ( 1
				DrawLight ( 0 )
				)
			)
			SignalDrawState ( 1
				"Green"
				DrawLights ( 2
				DrawLight ( 1 )
                DrawLight ( 2 )
				)
			)
		)
		SignalAspects ( 6
			SignalAspect ( STOP        			"Red"		SpeedKPH ( 0 ) )
			SignalAspect ( RESTRICTING		"Green"        	SpeedKPH ( 20 ) )
			SignalAspect ( APPROACH_2		"Green"        	SpeedKPH ( 110 ) )
			SignalAspect ( APPROACH_3		"Green"        	SpeedKPH ( 110 ) )
			SignalAspect ( CLEAR_1			"Green"    	SpeedKPH ( 110 ) )
			SignalAspect ( CLEAR_2			"Green"   	SpeedKPH ( 110 ) )
		)
		SignalNumClearAhead ( 2 )
	)  


#4 User is offline   Jovet 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 2,320
  • Joined: 14-January 08
  • Gender:Male
  • Location:Omaha, Nebraska.
  • Simulator:MSTS/Open Rails
  • Country:

Posted 13 August 2017 - 01:39 PM

A tip for when posting contents of files: The formatting will be preserved if you include them as a "code" block. It will be easier to interpret and understand. You can select all the "code" text and click the <> button.

SignalType ( "IND_2x_Automatic"
	SignalFnType ( NORMAL )
	SignalLightTex ( "Main Light of Signal" )
	
	SignalLights ( 3
		SignalLight ( 0 "Red Light"
			Position ( 0 3.9 0.2 )
			Radius ( 0.5 )
		)
		SignalLight ( 1 "Green Light"
			Position ( 0 4.2 0.2 )
			Radius ( 0.5 )
		)
		SignalLight ( 2 "White Light"
			Position ( 0 2.77 0.28 )
			Radius ( 0.32 )
		)
	)
	SignalDrawStates ( 2
		SignalDrawState ( 0
			"Red"
			DrawLights ( 1
				DrawLight ( 0 )
			)
		)
		SignalDrawState ( 1
			"Green"
			DrawLights ( 2
				DrawLight ( 1 )
				DrawLight ( 2 )
			)
		)
	)
	SignalAspects ( 6
		SignalAspect ( STOP 		"Red" 		SpeedKPH (   0 ) )
		SignalAspect ( RESTRICTING 	"Green" 	SpeedKPH (  20 ) )
		SignalAspect ( APPROACH_2 	"Green" 	SpeedKPH ( 110 ) )
		SignalAspect ( APPROACH_3 	"Green" 	SpeedKPH ( 110 ) )
		SignalAspect ( CLEAR_1 		"Green" 	SpeedKPH ( 110 ) )
		SignalAspect ( CLEAR_2 		"Green" 	SpeedKPH ( 110 ) )
	)
	SignalNumClearAhead ( 2 )
)


#5 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 13 August 2017 - 11:40 PM

View PostJovet, on 13 August 2017 - 01:39 PM, said:

A tip for when posting contents of files: The formatting will be preserved if you include them as a "code" block. It will be easier to interpret and understand. You can select all the "code" text and click the <> button.

SignalType ( "IND_2x_Automatic"
	SignalFnType ( NORMAL )
	SignalLightTex ( "Main Light of Signal" )
	
	SignalLights ( 3
		SignalLight ( 0 "Red Light"
			Position ( 0 3.9 0.2 )
			Radius ( 0.5 )
		)
		SignalLight ( 1 "Green Light"
			Position ( 0 4.2 0.2 )
			Radius ( 0.5 )
		)
		SignalLight ( 2 "White Light"
			Position ( 0 2.77 0.28 )
			Radius ( 0.32 )
		)
	)
	SignalDrawStates ( 2
		SignalDrawState ( 0
			"Red"
			DrawLights ( 1
				DrawLight ( 0 )
			)
		)
		SignalDrawState ( 1
			"Green"
			DrawLights ( 2
				DrawLight ( 1 )
				DrawLight ( 2 )
			)
		)
	)
	SignalAspects ( 6
		SignalAspect ( STOP 		"Red" 		SpeedKPH (   0 ) )
		SignalAspect ( RESTRICTING 	"Green" 	SpeedKPH (  20 ) )
		SignalAspect ( APPROACH_2 	"Green" 	SpeedKPH ( 110 ) )
		SignalAspect ( APPROACH_3 	"Green" 	SpeedKPH ( 110 ) )
		SignalAspect ( CLEAR_1 		"Green" 	SpeedKPH ( 110 ) )
		SignalAspect ( CLEAR_2 		"Green" 	SpeedKPH ( 110 ) )
	)
	SignalNumClearAhead ( 2 )
)


Done.
Please also provide a solution for the question
Thanks


#6 User is offline   roeter 

  • Vice President
  • Group: Posts: Elite Member
  • Posts: 2,453
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 14 August 2017 - 12:38 AM

	SignalType ( "NF_PPL_HOME_LOW"
		SignalFnType ( SHUNTING )
		SignalLightTex ( "ltex" )
		ORTSDayglow( 4.0 )
		ORTSNightglow( 3.0 )

		SignalLights ( 7
etc...


Regards,
Rob Roeterdink

#7 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 14 August 2017 - 02:48 AM

View Postroeter, on 14 August 2017 - 12:38 AM, said:

	SignalType ( "NF_PPL_HOME_LOW"
		SignalFnType ( SHUNTING )
		SignalLightTex ( "ltex" )
		ORTSDayglow( 4.0 )
		ORTSNightglow( 3.0 )

		SignalLights ( 7
etc...


Regards,
Rob Roeterdink


Thank You.
By the way 4.0 and 3.0 represents intensity or anything?


#8 User is offline   roeter 

  • Vice President
  • Group: Posts: Elite Member
  • Posts: 2,453
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 14 August 2017 - 03:17 PM

View PostSumit Singh, on 14 August 2017 - 02:48 AM, said:

Thank You.
By the way 4.0 and 3.0 represents intensity or anything?

Yes - the higher the value the more intense the light. What value suits you best is a matter of trial and error (and personal preference).

Regards,
Rob Roeterdink

#9 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 15 August 2017 - 01:59 AM

View Postroeter, on 14 August 2017 - 03:17 PM, said:

Yes - the higher the value the more intense the light. What value suits you best is a matter of trial and error (and personal preference).

Regards,
Rob Roeterdink

Yes , working peacefully now.
Looks natural in simulation.
Thank You for the efforts


#10 User is online   James Ross 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 5,514
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 15 August 2017 - 12:00 PM

View PostSumit Singh, on 14 August 2017 - 02:48 AM, said:

Thank You.
By the way 4.0 and 3.0 represents intensity or anything?

The glow itself is sized according to the formula: log_e(1 + max(0, distance - 100) / 40) * GlowFactor. The values you are inputting is the GlowFactor; this equates to the size at around 170m: (e - 1) * 40 + 100 = 168.73127313836180941441149885411.

In practice, just adjust to suit. :)

#11 User is offline   Sumit Singh 

  • Fireman
  • Group: Status: Inactive
  • Posts: 150
  • Joined: 19-April 17
  • Gender:Not Telling
  • Simulator:Train Simulator 2017
  • Country:

Posted 16 August 2017 - 02:22 AM

View PostJames Ross, on 15 August 2017 - 12:00 PM, said:

The glow itself is sized according to the formula: log_e(1 + max(0, distance - 100) / 40) * GlowFactor. The values you are inputting is the GlowFactor; this equates to the size at around 170m: (e - 1) * 40 + 100 = 168.73127313836180941441149885411.

In practice, just adjust to suit. :)


I will post a tutorial on it on TS.http://www.elvastower.com/forums/public/style_emoticons/default/sign_thank_you.gif
Most of India friends are not on ET hence they do not have much idea about it.


#12 User is offline   shadowmane 

  • Fireman
  • Group: Posts: Active Member
  • Posts: 128
  • Joined: 27-November 17
  • Gender:Male
  • Location:Norfolk Southern Linwood Yard
  • Simulator:Open Rails
  • Country:

Posted 08 January 2018 - 08:51 AM

So which file will you edit for this signal glow. My son enabled this option on an old route and the signal glow was way too bright. If you were not head on to the signal, you couldn't even see the signal post it was glowing from.

#13 User is offline   ebnertra000 

  • Superintendant
  • Group: Posts: Elite Member
  • Posts: 1,259
  • Joined: 27-February 17
  • Gender:Male
  • Location:East-Central Minnesota
  • Simulator:OR/TSRE
  • Country:

Posted 08 January 2018 - 09:11 AM

If you don't have one of those light textures that expands as you move away from it, all you have to do is check the box in the 'experimental' options menu of OR. If you do have an expanding texture, you'll have to replace it with one that doesn't expand, and the change the radius of lights in the sigcfg file. If you use the replace tool, it's pretty quick. The line looks like this:

Radius ( x )

Where x is a decimal number, usually around 0.1 for non-expanding textures, and around 1.0 for expanding ones

#14 User is offline   Jovet 

  • Open Rails Developer
  • Group: Posts: Elite Member
  • Posts: 2,320
  • Joined: 14-January 08
  • Gender:Male
  • Location:Omaha, Nebraska.
  • Simulator:MSTS/Open Rails
  • Country:

Posted 19 January 2018 - 06:39 AM

View Postshadowmane, on 08 January 2018 - 08:51 AM, said:

So which file will you edit for this signal glow.

The file in question is the sigcfg.dat file found in the route's folder.

#15 User is offline   avatrain1 

  • Apprentice
  • Group: Posts: Active Member
  • Posts: 25
  • Joined: 17-August 14
  • Gender:Male
  • Simulator:MSTS and OR
  • Country:

Posted 27 July 2020 - 06:16 AM

Hi everyone, sorry if after 3 years that these two commands ORTSDayglow() and ORTSNightglow() have been created I ask you for a clarification on these:
my doubt is, do they only work when I put the check mark under Signal light glow in the options or do they work even if I don't put the check mark under Signal light glow?

Thank you and good day to all,

Sergio.


Page 1 of 1
  • 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