I am using MSTS and Open rails from almost 4 years. Generally I make the activities using MSTS editors and tools, and play in Open rails. But today after making one activity when I tried to play the activity I was unable to do so. So I tried that with MSTS it was workin fine there. The error reported by open rails is as follows. Please show me the guidelines and do the needful.
Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at Orts.Simulation.Physics.Train.CreateStationStop(Int32 platformStartID, Int32 arrivalTime, Int32 departTime, DateTime arrivalDT, DateTime departureDT, Single clearingDistanceM, Int32& beginActiveSubroute, Int32& activeSubrouteNodeIndex) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Physics\Train.cs:line 10649
at Orts.Simulation.Physics.Train.BuildStationList(Single clearingDistanceM) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Physics\Train.cs:line 10629
at Orts.Simulation.AIs.AITrain.PostInit() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\AIs\AITrain.cs:line 410
at Orts.Simulation.Simulator.InitializeAPTrains(CancellationToken cancellation) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Simulator.cs:line 527
at Orts.Simulation.Simulator.Start(CancellationToken cancellation) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Simulation\Simulation\Simulator.cs:line 394
at Orts.Viewer3D.Processes.GameStateRunActivity.Start(UserSettings settings, String acttype, String[] args) in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:line 275
at Orts.Viewer3D.Processes.GameStateRunActivity.<>c__DisplayClass8.<Load>b__3() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:line 149
at Orts.Viewer3D.Processes.GameStateRunActivity.Load() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:line 190
at Orts.Viewer3D.Processes.LoaderProcess.Load() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:line 158
at Orts.Viewer3D.Processes.LoaderProcess.DoLoad() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:line 138
at Orts.Viewer3D.Processes.LoaderProcess.LoaderThread() in e:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:line 109
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Loader: Time = 00:00:03.6035661 ms
Loader: Expected = 20,550,897 bytes
Loader: Actual = 20,928,607 bytes
Loader: Difference = 377,710 bytes (1.8 %)
Information: Game.PopState()
Hi Shreyas,
you should attach the full OpenRailsLog.txt file. To help you one should first know what OR version you are using, and this is written in the first part of the logfile.