I meant to ask about this when I first encountered this problem over a year ago, but ended up sweeping it to the side until I tried reloading this route. I'm also posting this here and NOT in the MSTS discussion session, because I assume that this problem is another compatibility issue between MSTS and OR.
The issue occurred when I loaded the activity, "Hotshot into the Sun" (gnactd06.zip), between Harve and Cutbank. The activity ran well enough, until I made it just west of Xenia, where the program would fail. I examined the player path and any AI paths in the track viewer, and I didn't see any apparent issues with their routing, but I made some minor modifications anyway (mostly adding/removing passing paths). I tried reloading the activity again, only to have the same results. Then, I ran the activity in explorer mode, using a path that starts in Shelby. It ran smoothly again, until it made it to east of Rudyard, where it crashed once again.
I was planning on posting the log files separately, instead of pasting two huge blocks of text, but they're both too big to attach to this post. They mostly list a series of missing shape files and their respective world tile placements, but this problem hasn't caused any crashes in the past. My main focus is on the message that displayed at the end of both of them. Posted below is the message at the end of the western trial. The eastern trial is mostly the same, just a few minor numeric differences.
Error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Orts.Formats.Msts.TerrainAltitudeFile.GetElevation (Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Formats.Msts\TerrainA ltitudeFile.cs:line 52
at Orts.Viewer3D.Tile.GetElevation(Int32 ux, Int32 uz) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Tiles .cs:line 400
at Orts.Viewer3D.TileManager.GetElevation(Tile tile, Int32 ux, Int32 uz) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Tiles .cs:line 253
at Orts.Viewer3D.TerrainPrimitive.Elevation(Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 271
at Orts.Viewer3D.TerrainPrimitive.SpecificTerrainNorm al(Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 324
at Orts.Viewer3D.TerrainPrimitive.GetVertexBuffer(Sin gle& averageElevation) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 440
at Orts.Viewer3D.TerrainPrimitive..ctor(Viewer viewer, TileManager tileManager, Tile tile, Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 230
at Orts.Viewer3D.TerrainTile..ctor(Viewer viewer, TileManager tileManager, Tile tile) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 157
at Orts.Viewer3D.TerrainViewer.<>c__DisplayClass7_0.< Load>b__1(Tile tile) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 92
at System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()
at System.Linq.Enumerable.<UnionIterator>d__81`1.Move Next()
at System.Collections.Generic.List`1..ctor(IEnumerabl e`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Orts.Viewer3D.TerrainViewer.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 90
at Orts.Viewer3D.World.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\World .cs:line 91
at Orts.Viewer3D.Viewer.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Viewe r.cs:line 685
at Orts.Viewer3D.Processes.GameStateViewer3D.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateViewer3D.cs:line 126
at Orts.Viewer3D.Processes.LoaderProcess.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 158
at Orts.Viewer3D.Processes.LoaderProcess.DoLoad() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 138
at Orts.Viewer3D.Processes.LoaderProcess.LoaderThread () in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 109
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Information: Game.PopState()
The best that I could decipher from this is some potential issues with recognizing certain data regarding the world tile/terrain of the route. Hopefully, someone with more experience can clarify why this is happening. If this isn't enough, then I will paste the entire data from both log files if necessary.
The issue occurred when I loaded the activity, "Hotshot into the Sun" (gnactd06.zip), between Harve and Cutbank. The activity ran well enough, until I made it just west of Xenia, where the program would fail. I examined the player path and any AI paths in the track viewer, and I didn't see any apparent issues with their routing, but I made some minor modifications anyway (mostly adding/removing passing paths). I tried reloading the activity again, only to have the same results. Then, I ran the activity in explorer mode, using a path that starts in Shelby. It ran smoothly again, until it made it to east of Rudyard, where it crashed once again.
I was planning on posting the log files separately, instead of pasting two huge blocks of text, but they're both too big to attach to this post. They mostly list a series of missing shape files and their respective world tile placements, but this problem hasn't caused any crashes in the past. My main focus is on the message that displayed at the end of both of them. Posted below is the message at the end of the western trial. The eastern trial is mostly the same, just a few minor numeric differences.
Error: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Orts.Formats.Msts.TerrainAltitudeFile.GetElevation (Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\Orts.Formats.Msts\TerrainA ltitudeFile.cs:line 52
at Orts.Viewer3D.Tile.GetElevation(Int32 ux, Int32 uz) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Tiles .cs:line 400
at Orts.Viewer3D.TileManager.GetElevation(Tile tile, Int32 ux, Int32 uz) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Tiles .cs:line 253
at Orts.Viewer3D.TerrainPrimitive.Elevation(Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 271
at Orts.Viewer3D.TerrainPrimitive.SpecificTerrainNorm al(Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 324
at Orts.Viewer3D.TerrainPrimitive.GetVertexBuffer(Sin gle& averageElevation) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 440
at Orts.Viewer3D.TerrainPrimitive..ctor(Viewer viewer, TileManager tileManager, Tile tile, Int32 x, Int32 z) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 230
at Orts.Viewer3D.TerrainTile..ctor(Viewer viewer, TileManager tileManager, Tile tile) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 157
at Orts.Viewer3D.TerrainViewer.<>c__DisplayClass7_0.< Load>b__1(Tile tile) in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 92
at System.Linq.Enumerable.WhereSelectEnumerableIterat or`2.MoveNext()
at System.Linq.Enumerable.<UnionIterator>d__81`1.Move Next()
at System.Collections.Generic.List`1..ctor(IEnumerabl e`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Orts.Viewer3D.TerrainViewer.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Terra in.cs:line 90
at Orts.Viewer3D.World.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\World .cs:line 91
at Orts.Viewer3D.Viewer.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Viewe r.cs:line 685
at Orts.Viewer3D.Processes.GameStateViewer3D.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\GameStateViewer3D.cs:line 126
at Orts.Viewer3D.Processes.LoaderProcess.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 158
at Orts.Viewer3D.Processes.LoaderProcess.DoLoad() in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 138
at Orts.Viewer3D.Processes.LoaderProcess.LoaderThread () in E:\Documents\Coding\Jenkins\jobs\Open Rails Stable\workspace\Source\RunActivity\Viewer3D\Proce sses\LoaderProcess.cs:line 109
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Information: Game.PopState()
The best that I could decipher from this is some potential issues with recognizing certain data regarding the world tile/terrain of the route. Hopefully, someone with more experience can clarify why this is happening. If this isn't enough, then I will paste the entire data from both log files if necessary.




Comment