The International Simutrans Forum

 

Author Topic: Trains brake 1 tile too late in front of signals  (Read 264 times)

0 Members and 1 Guest are viewing this topic.

Offline ceeac

  • Devotee
  • *
  • Posts: 290
Trains brake 1 tile too late in front of signals
« on: January 09, 2022, 10:32:40 AM »
If a train has to stop in front of a red signal, the train decelerates from 50 km/h to a stop instead of from 25 km/h as in stations. This is especially visible when changing brake_speed_countdown (in simconvoi.cc) to this for demonstration purposes:
Code: [Select]
static sint32 brake_speed_countdown[4] = {
kmh_to_speed(25),
kmh_to_speed(100), // was: kmh_to_speed(50)
kmh_to_speed(100),
kmh_to_speed(200)
};

Online makie

  • Devotee
  • *
  • Posts: 360
    • Homepage PAK128-German
  • Languages: DE
Re: Trains brake 1 tile too late in front of signals
« Reply #1 on: January 09, 2022, 11:39:41 AM »
Trains stop one tile after a signal. Not in front of a signal, if they drive from right bottom to the top left or left bottom to the top right

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11060
  • Languages: De,EN,JP
Re: Trains brake 1 tile too late in front of signals
« Reply #2 on: January 09, 2022, 11:57:56 AM »
@makie: They stop on the signal tile, but it appear as if they drove half a tile further. This is a longstanding issue, which would be solved by a different alignment. However, this creates problems in curves. Please look at other thread in the patches section.

On the 25 km/h issue: The problem is that all trains would pass a choose  signal to another than the default track and any longblock signal at 25 km/h. Therefore the 25 km/h was omitted.

Online makie

  • Devotee
  • *
  • Posts: 360
    • Homepage PAK128-German
  • Languages: DE
Re: Trains brake 1 tile too late in front of signals
« Reply #3 on: January 09, 2022, 09:28:57 PM »
This is a longstanding issue, which would be solved by a different alignment
No, the alignment in the graphic can not be changed because it fits perfect to the stops. It need a program solution.
But ok, this problem is about 10 years old, and nobody has dared to solve it.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 11060
  • Languages: De,EN,JP
Re: Trains brake 1 tile too late in front of signals
« Reply #4 on: January 10, 2022, 02:29:53 PM »
The alingement of the  graphics can be easily changed. Simutrans can change them even on load. In stops convoi stop early to avoid overhanding, which gave a bunch of other problems, which would not be needed with "proper" alignment.