The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: THLeaderH on July 25, 2019, 05:55:37 AM

Title: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: THLeaderH on July 25, 2019, 05:55:37 AM
Hello, everyone.

One of Japanese players reported me that road trains shrink when more than one road trains are shipped from a depot. The first one has no problem, but the second and later are shrunk like the image below.

(https://simutrans-germany.com/files/upload/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88_2019-07-25_14.39.18.png)

This happens because the state of the convoy is set DRIVING before it leaves the depot completely. The attached patch can fix this bug.
Title: Re: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: Vladki on July 25, 2019, 06:56:49 AM
I noticed the same behavior with trains, if they have to wait at signal at danger soon after leaving the depot.
Title: Re: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: DrSuperGood on July 25, 2019, 10:22:03 AM
This bug effects Simutrans Extended as well. At least for trains as described by Vladki.
Title: Re: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: Ters on July 25, 2019, 01:36:27 PM
I think a bug like this was fixed a couple of years ago. It is strange that there is another one just like it.
Title: Re: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: THLeaderH on July 26, 2019, 02:31:11 AM
This bug effects Simutrans Extended as well. At least for trains as described by Vladki.
The bug fixing patch is so simple that you can apply the fix to Extended by hand.
Title: Re: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: prissi on April 24, 2020, 12:51:45 PM
Somehow overlooked, in in r 9044. Thank you.
Title: Re: [r8794] Road trains shrink when more than one are shipped from a depot.
Post by: Vladki on April 24, 2020, 06:11:28 PM
Backported to extended in https://github.com/vladki77/simutrans-extended/commit/c40f5bcb06034d4807682cc459aae91c0252dea4