The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: wlindley on January 28, 2023, 03:14:37 PM

Title: Trains entirely ignoring signals
Post by: wlindley on January 28, 2023, 03:14:37 PM
For the past month or so, builds from latest source all result in trains utterly ignoring signals and every train on the map crashing into each other. This occurs in fresh new games (1850 start, for example) as well as all my old saved games.  I have been building signalled lines for many years; did something fundamental change about how we have to signal lines, or is the codebase broken? Very discouraging.
Title: Re: Trains entirely ignoring signals
Post by: jamespetts on January 28, 2023, 08:18:49 PM
Quote from: wlindley on January 28, 2023, 03:14:37 PMFor the past month or so, builds from latest source all result in trains utterly ignoring signals and every train on the map crashing into each other. This occurs in fresh new games (1850 start, for example) as well as all my old saved games.  I have been building signalled lines for many years; did something fundamental change about how we have to signal lines, or is the codebase broken? Very discouraging.
I cannot reproduce this, I am afraid: using the demo.sve saved game, signals work correctly. Can I check whether you have tested with the downloaded binaries or whether you are self-compiling?
Title: Re: Trains entirely ignoring signals
Post by: wlindley on February 01, 2023, 01:34:38 PM
Self-compiled, but directly against the latest sources.  Here is an example save file (https://wlindley.com/simutrans/2022-02-01-signals.sve).

Two trains are leaving Bumbleham. The second should wait at the signal ("time interval with telegraph" style) but instead proceeds right through it and crashes into the first at the other station.

Edit: Moving time forward and replacing the signals with "Semaphore Stop" makes things work as expected.  Did the function of the time-with-telegraph signals change? And if so, how is it even possible to arrange time-with-telegraph to work for a simple line like this? It always worked before just as shown. Very confused.
Title: Re: Trains entirely ignoring signals
Post by: wlindley on February 05, 2023, 02:29:41 PM
Confirm the save file works the same in the current nightly binary with the current nightly pakset.  Trains blithely pass signals at danger and collide into each other.
Title: Re: Trains entirely ignoring signals
Post by: jamespetts on February 05, 2023, 08:39:46 PM
Thank you for the report. I am currently doing some intensive work on the 15.x branch, but will look at this when I next turn back to the master branch for bug fixes and the incorporation of patches.
Title: Re: Trains entirely ignoring signals
Post by: jamespetts on March 04, 2023, 11:07:21 PM
Apologies for the delay - I believe that I have now fixed this. I should be grateful if you could re-test with the next nightly build.
Title: Re: Trains entirely ignoring signals
Post by: wlindley on March 06, 2023, 07:27:03 PM
Yes, the latest nightly does resolve the problem. Thank you!  (Now for me getting my local git repository to properly build things again... sigh)