The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Simutrans-Extended bug reports => Topic started by: Ranran(retired) on August 03, 2021, 10:14:19 PM

Title: Overtaking algorithm is broken at a railroad crossing
Post by: Ranran(retired) on August 03, 2021, 10:14:19 PM
The overtaking behavior around the railroad crossing is broken.

If there is no overtaking, a car will not enter the railroad crossing unless the tile at the next of the railroad crossing is empty to prevent a car from getting stuck at a railroad crossing and colliding with or stopping the train.
However, if overtaking occurs at a railroad crossing, those rules will be ignored.
(It is strange that it can overtake at a railroad crossing in the first place...) (´・ω・`)

Pay attention to the behavior of these cars.
(https://i.imgur.com/vV4TE4N.png)

Red one is an outdated and very slow carriage. Scenes of such a carriage citycar obstructing road traffic are often found in simutrans.
The car marked in green is a modern private car that is frustrated by slow carriages. They are waiting for a chance to overtake.


(https://i.imgur.com/g10eITq.gif)
Overtaking can easily occur while the carriage is at the railroad crossing as shown in the image above.



Next, try "Overtaking prohibited" around the railroad crossing.

(https://i.imgur.com/38krpZ2.gif)
"Overtaking prohibited" seems to be ignored at railroad crossings. (´・ω・`)
It can overtake at railroad crossings even though it is an area where overtaking is prohibited.
The reason why railroad crossing roads do not appear to be highlighted is due to display priority.


Certainly this is a bug, but fortunately, this works in a way that the overtaker, who is as frustrated as the player, just cheats and rather eases the traffic and helps the player.
So in my opinion it may not be a high priority bug.
Title: Re: Overtaking algorithm is broken at a railroad crossing
Post by: jamespetts on August 03, 2021, 11:09:53 PM
Thank you for your report. Yes, I agree that this is not a high priority bug as it does not confound the player and the effect of the cheating is so small as not to be economically significant. Probably the best solution would be for all railway level crossings to prohibit overtaking entirely.
Title: Re: Overtaking algorithm is broken at a railroad crossing
Post by: ampersand on August 04, 2021, 12:04:55 PM
(https://i.imgur.com/g10eITq.gif)

Would be even more exciting with a surround sound system to hear this train increasingly whistling and puffing from the bottom of the screen.
Title: Re: Overtaking algorithm is broken at a railroad crossing
Post by: Ranran(retired) on January 21, 2022, 09:11:25 AM
Quote from: Ranran on August 03, 2021, 10:14:19 PMThe overtaking behavior around the railroad crossing is broken.
I think this is not overtaking occurring, but can_enter_tile somehow returning true.
Because it is not accompanied by a lane change.