Comment 6 for bug 1468108

Revision history for this message
Derek Morton (derek-a) wrote : Re: [Bug 1468108] Re: System.ArgumentOutOfRangeException at ORTS.AITrain.ProcessEndOfPath (X3169, 3DTrains WP 3rd Sub, CZ Eastbound)
  • route end.docx Edit (1.4 MiB, application/vnd.openxmlformats-officedocument.wordprocessingml.document; name="route end.docx")

Hi Carlo,

Is this pic good enough?

cheers
Derek

On 25/06/2015 19:09, Carlo Santucci 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?
>