branchrust_reboot/main/rail_network_link/TrainSignalscancel
31 Commits over 0 Days - ∞cph!
Reworked the train signal lights and lighting.
Fix brief green flash in a different way, without requiring recursive calls
Add RefreshLightState to profiler
Fixed bugs with signals that were right next to each other, etc. Killing my recursive RefreshLightState until I stop it stack overflowing on complex rail networks.
A proper signal light refresh system
Signal lights now working correctly in test scene, detecting trains etc on rails and changing lights to red/yellow/green as expected
Setting up spline move methods to be more general
Signals seems to be managing to find each other in all situations now, while ignoring each other if facing the wrong way.
Fixed bugs with signals getting the next signal
Fixed distAlongSpline bug
Signal learns its block size
Signal can find the next signal and pass the info back
Accept stopAtSignal parameter
Some more track spline code cleanup
Merge rail_network_link -> TrainSignals
Factored out next/prev spline moves inside GetSplineAfterMove
Similar encapsulation for inputs, using new MoveRequest and TrackRequest
Refactored GetSplineAfterMove results into a struct since the method signature was getting a bit much
WIP on signals finding their track block sections and the next signal
Set default light state to green
Another test map edit, adding a train
Train signals on my test map
Point lights for the signal lights, new Test FX debug optin
Reduce signal light mat brightness
Temporary signal light FX test method. Fixed missing renderer assignments on signal light B.
Fixed missing toggle assignment
Setting up train signal lights and network flags