Script SC30 Main line signals (by adlet)
Script 30: Main Line Signals – Visual signaling system
This script does not change the signals’ actual state (pass or stop), it is visual only.
It includes a departure signal, a route signal, a distant signal and a siding signal. This script includes all functionality from Script SC32, allowing to connect route and departure signals. SC32 is no longer recommended for use.
Departure Signal: Use as departure (exit) signal from stations
• Activates on departure, turns off 6s after train passes it
• Does not connect to the next signal(s)
• Shows diverging route based on line/line tag
• Shows departure ready (eg 30s before) with enabled stations
• For passing trains activates from set distance
• Up to five aspects
Route Signal: Use as station entrance, junction entrance or block signal
• Activates at set distance, detects route if set (next signal, station)
• Diverging route detected automatically
• Set speed limit and texture based on track and next signal’s state
• Up to eight aspects
Distant Signal (marker): Use at distance, as repeater or as extension
Siding Signal: Route indicator for diverging routes
• Place as marker (off-track okay) and select desired appearance
• Link from the main signal (multiple possible)
• Activates and turns off with main signal
• Distant signal: up to 5 aspects (no Stop). Mapping below. When used as extension, place Stop on main head
• Siding Signal: Stop (texture 1) and Pass (configurable) aspects
All signals:
• Align with standard AVP indications and configurable textures
• Speed limits applied at 100m, or 2.78 x speed(km/h), if longer
• Allow flashing aspects
Route Signal Setup:
• Include all next path signals into Route detection, straight route first. All next signals should have Route Signal or Departure Signal script
• Set markers at all possible platform stops and add to Route detection straight route first. Marker should be under train when stopped
• When balise is next, as alternative can place path signal in front of balise and include it in Route detection
• Set up speed and textures as desired, also lookahead distance
• Add siding and distant signals as desired
Departure Signal Setup:
• Set up speed and textures as desired, also lookahead distance
• For diverging aspect, set up lines or line tag
• For departure ready aspect, add struct 305 to station
• Add siding and distant signals as desired
Station Setup:
• Activates Departure Ready aspect for this station’s signals
• Add struct 305 to the station, add all departure signals
• To initialize, have train pass once through any route signal.
Standard Main Signal Indications (signal appearance is configurable):
0 = Default/Off
1 = Stop
2 = Pass
3 = Caution (when next signal is Stop)
4 = Reduce Speed (when next signal is Caution)
5 = Diverge/Warn (diverge, next signal Pass)
6 = Diverge/Slow (diverge, next signal Stop)
7 = Diverge Ahead (when diverging after next signal)
8 = Departure Ready (Departure Signal only)
Standard Distant Signal Indications (signal appearance configurable):
Main 0 (Off) → Distant 0 (Off)
Main 1 (Stop) → Distant 3 (Next Stop)
Main 2 (Pass) → Distant 2 (Next Pass)
Main 3 (Caution) → Distant 4 (Next Caution)
Main 5 → Distant 7 (Next Diverge)
Main 6 → Distant 7 (Next Diverge)
Main 8 → Distant 0 (Off)
Aspect format: (flash)speed.texture:
0.2 = no speed limit, texture 2
60.5 = 60 km/h limit, texture 5
-60.5 = 60 km/h limit, texture 5 flashing