Comment 5 for bug 1468108

Revision history for this message
Carlo Santucci (carlosanit1) wrote :

James, thanks for the link.
The immediate cause is quite surely the same ( PresentPosition[0].RouteListIndex = -1 ), that is train front off path, the initial cause however is probably different. In bug 1213361 the train was voluntarily put off path, while this is not Derek's case (computer unattended and autopiloted player train running). A check on RouteListIndex == -1 should be added, however what should be done then? If it is a pure AI train, it could be simply removed, as standard for AI trains off path, but if it is the autopiloted player train this would replace a crash with a game end, which has the same effect. I see that in Derek's case ProcessEndOfPath is called when the train is at a station. So maybe the path is terminated just within (or immediately after) the station's platform.
Derek, could you pls. attach a screenshot of the path's end taken with the MSTS activity editor?