The International Simutrans Forum

 

Author Topic: Two trains on one platform may lead to deadlocks  (Read 213 times)

0 Members and 1 Guest are viewing this topic.

Offline michelstadt

  • *
  • Posts: 118
  • Team PAK128.german
  • Languages: GE, EN, FR
Two trains on one platform may lead to deadlocks
« 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.


Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11060
  • Languages: De,EN,JP
Re: Two trains on one platform may lead to deadlocks
« Reply #1 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.
« Last Edit: January 10, 2022, 02:27:27 PM by prissi »

Online makie

  • Devotee
  • *
  • Posts: 360
    • Homepage PAK128-German
  • Languages: DE
Re: Two trains on one platform may lead to deadlocks
« Reply #2 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.

Offline michelstadt

  • *
  • Posts: 118
  • Team PAK128.german
  • Languages: GE, EN, FR
Re: Two trains on one platform may lead to deadlocks
« Reply #3 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!