It is well known that carriages in the era of carriage-to-automobile transitions are very disturbing in simutrans.
Player-owned cars can overtake slow carriages, but private cars cannot.
(https://i.imgur.com/biG8PWU.gif)
(https://i.imgur.com/wXu3SAL.gif)
For example, when the private horse, privatecar, players convoy are lined up in that order, the convoy cannot overtake the privatecar in front of it, so it has to run at the same speed as the slow private horse until they are gone...
(https://i.imgur.com/NCWnr9F.png)
(´・ω・`)WTF... なんてこったい
I think it's a bug that a fast enough privatecar can't overtake a slow privatecar(**** horse).
This is rather odd. I do not know the overtaking code well as I did not write it. Can you upload this saved game to save me time when I look into this? Thank you.
Quote from: jamespetts on January 15, 2022, 09:57:00 AMCan you upload this saved game to save me time when I look into this?
Here (https://simutrans-germany.com/files/upload/cannot-overtake-horse.sve) it is.
I think I've fixed this bug. Please check the pull request #476.
However, please note that the overtaking code is complex and I am not an expert in it.
As far as I checked, the privatecar overtaking algorithm was broken as of Extended14.5 (#afb863d) 4/7/2019. Earlier versions have not been checked.
Then in July 2020 I made an error in my code change when I reduced the overtaking mode, but regardless, overtaking was impossible. After sidling up to overtake, the overtaking will fail because can_enter_tile returns false. In other words, it will stop because it cannot change the driving lane.
It should be noted that while THleaderH has made many modifications to his own fork, he has not done any maintenance on extended. Checking for code diffs is a lot of work. (´・ω・`)
Excellent, thank you very much for this: now incorporated.