The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Jando on May 10, 2017, 08:58:02 AM

Title: Odd bug of train switching destination en-route
Post by: Jando on May 10, 2017, 08:58:02 AM
I'm seeing a very odd bug with a train driving under one train staff. Basically the train drives to a destination and switches to another destination en-route a few tiles before reaching the original destination. I can reliably reproduce this bug on this saved game: http://files.simutrans.com/index.php/s/pY4aPLSMiIpOPxp

How to reproduce:

1. Load saved game, hit pause. You see train #4 running under absolute block approaching Rocknell Power Station South. Here the train will off-load part of it's cargo before continuing to Little Durerlock Power Station under one train staff.
2. Do not open the train's schedule window because if you do the bug won't happen. The bug will also not happen when you save and load the game after Rocknell Power Station South or if you replace the one staff cabinet there with a token block signal.
3. Unpause and let the train run. It will correctly stop at Rocknell Power Station South, unload some cargo, switch to one train staff and continue to the next station.
4. Best follow the train and watch the destination line in the vehicle information window. Be ready to pause the game when the train is almost at it's destination (on that little beam bridge) about 6 or 7 tiles before the station. On that bridge the train will switch to another destination in it's route.
Title: Re: Odd bug of train switching destination en-route
Post by: jamespetts on May 10, 2017, 11:20:12 AM
I think that I have managed to fix this one; would you be able to re-test with the next nightly build? Thank you for the report.
Title: Re: Odd bug of train switching destination en-route
Post by: Jando on May 11, 2017, 01:03:08 PM
Indeed, the actual error reported above does not happen any more. Thank you for the quick fix, James.

While testing this on multiple routes I noticed another odd behaviour of one train staff, but I believe it's unrelated to this bug (and may even be related to my poor understanding and placement of signals) thus I will make a new thread for that. Thank you again.