The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Carl on September 18, 2011, 07:47:14 PM

Title: Bug: "De-lining"
Post by: Carl on September 18, 2011, 07:47:14 PM
Just a small bug to report from 10.0. Trains have a tendency to occasionally "forget" which line they belong to. That is, they are assigned to a line, but subsequently become "lineless convoys" despite no changes having been made to either the convoy schedule or the line schedule.

This appears to be related to the '[R]' flags which form part of the line's schedule where it reverses. The lineless convoys in question usually have identical schedules to the line they should belong to, only without the [R] flags.

It's difficult to provide a savegame to demonstrate this, since it's not clear to me what conditions cause "de-lining" to occur. If there's something specific it would be helpful to see - or, indeed, if just looking at a savegame where this *has* occurred would be helpful -- then let me know and I'll upload something.
Title: Re: Bug: "De-lining"
Post by: jamespetts on September 18, 2011, 08:23:00 PM
Thank you for the report: I think that I have fixed this on the 10.x branch. Can you test (and check to see whether the fix has side effects)?
Title: Re: Bug: "De-lining"
Post by: Carl on September 22, 2011, 02:28:23 PM
Sorry for taking so long to check this -- I've only just found a moment to compile the latest sources.

As far as I can see, this fix has no unintended side effects. After brief testing I haven't noticed any de-lining reoccuring -- but since it's a sporadic occurrence anyway, I'll get back to you on whether I come across any at a later date.

Many thanks!