The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: michelstadt on January 10, 2022, 09:54:56 AM

Title: Two trains on one platform may lead to deadlocks
Post by: michelstadt on January 10, 2022, 09:54:56 AM
With simutrans 123.0 trains do no longer only stop at the end of station platforms which looks nice. It even looks nice when two trains stop at a platform. Unfortunately this ends up in a deadlock when they lead to opposite directions as shown with the image.Pathfinding does not help at least one of the trains to leave the station by a free platform, each train waits for clearance.

Either platforms should get reserved to only one train as it was before 123.0 or pathfinding should allow an alternative route to leave the platform.

(https://i.imgur.com/PvOjoZb.jpg)
Title: Re: Two trains on one platform may lead to deadlocks
Post by: prissi on January 10, 2022, 02:15:36 PM
Then you (or some pakset maintainer) has set stop_halt_as_scheduled=1 in simuconf.tab. Default is zero, which should drive to the end of the platform.

EDIT: Default was enabled, I do not know why. In r10345 it is disabled again as default.
Title: Re: Two trains on one platform may lead to deadlocks
Post by: makie on January 10, 2022, 04:07:31 PM
build in here:
https://forum.simutrans.com/index.php/topic,21195.msg197545.html#msg197545

but: if a train use a platform, no other train should go in.
No matter where the train stops, whether at front of the platform, in the middle, or at the tile that is noted in the schedule.

I think it is a bug, THLeaderH not has noticed.
Title: Re: Two trains on one platform may lead to deadlocks
Post by: michelstadt on January 10, 2022, 06:32:25 PM
Sure it would still be nice to see trains stopping in the middle of a platform. In the meantime I install r10345. Thanks for helping!
Title: Re: Two trains on one platform may lead to deadlocks
Post by: michelstadt on January 20, 2022, 09:50:13 AM
r10369: Trains still behave like stop_halt_as_scheduled=1. No change if I add explicitly stop_halt_as_scheduled=0 to simuconf. I even added it to the pak's simuconf - without changes.
Title: Re: Two trains on one platform may lead to deadlocks
Post by: prissi on January 20, 2022, 01:49:21 PM
It will only apply for new games, or games where the setting has been edited and saved and loaded again.
Title: Re: Two trains on one platform may lead to deadlocks
Post by: michelstadt on January 20, 2022, 06:38:38 PM
Oh sorry, I did not notice that there is a new entry in the ingame settings. To me the issue is solved, things work as expected. Thank you !