OpenTTD

Tasklist

FS#716 - Train Crash in Depot with long long tracks

Attached to Project: OpenTTD
Opened by HankRearden (HankRearden) - Wednesday, 04 April 2007, 21:09 GMT
Last edited by Remko Bijker (Rubidium) - Friday, 16 November 2007, 15:47 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Very Low
Priority Low
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I've created 10 trains and started them all at the same time with the green flag in the depot
The depot was connected to a very long line with no signals
Result: 10 train crashes in the depot

Repeating the same procedure I was able to reproduce it on the same line.

When I added signalling the trains did no longer crash.
This task depends upon

Closed by  Zdeněk Sojka (SmatZ)
Wednesday, 09 January 2008, 23:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r11802
Comment by Patric Stout (TrueBrain) - Saturday, 28 April 2007, 09:41 GMT
The problem indeed appears to be the length of the track without signals. The code searches for a max depth for other signals or reasons to put a signal to red. When it doesn't find it, or when it aborts (like in this case), it goes wrong. When you make the track shorter for example, it also just works. I doubt there is an easy solution, so for now I would suggest to just not make such long non-signal tracks ;) Will be researched more...
Comment by Zdeněk Sojka (SmatZ) - Wednesday, 13 June 2007, 19:57 GMT
The same scenario I described there -> http://tt-forums.net/viewtopic.php?t=29285&highlight=

Reason:
First train leave the depot, but the 'signal' in depot doesn't go red, so immediatelly leaves the second train... It is clearly connected with too long track without dividing signal. The buffer for tiles goes full (by tiles in direction of train's way), and the second direction (where the depot lies) is not even searched.
All 10 trains leave the depot at once and this leads to their crash.

Loading...