Libre-TrainSim
Libre-TrainSim copied to clipboard
Signals prior to spawning point / jump to station / are not set properly
Summary
Signals prior to spawning point are not set properly, i.e. remain green
How to reproduce
Steps to reproduce the behavior:
i.
- Launch any scenario with 3+ stations 2a. Jump to station. 2b. Find NPC train just spawned.
- Check signals state before the spawn point
ii.
- Launch any scenario and spawn at the middle of the track
- Check signals state before the spawn point.
Observed behavior
Signals are green:
Spawn at the middle of the track:
NPC train:
Expected behavior
Signals are Yellow/Red
Version
- Game Version: master 3ffba0dc29d78ac237606524f0a782a3ef360ed3
Additional information
Linked to #315
Yeah, unfortunately the block system is very basic right now. Right now, signals switch themselves (and the signal before them) the moment a train drives over the signal. The "jump to station" feature just ignores this.
I want to completely refactor the signal system, but that's only going to happen in 0.10 unfortunately