Trying to decypher the actual problem here. OR doens't like this F/A shapefile, reports the following error message and won't display. Bad .s file coding?
Information: e:\msts\train sim\train simulator\trains\trainset\csx_sd40-3_4000\parts.s
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.Collections.ArrayList.get_Item(Int32 index)
at MSTS.shader_names.get_Item(Int32 i)
at ORTS.SharedShape.SubObject..ctor(Viewer3D viewer, String filePath, TextureFlags textureFlags, SFile sFile, sub_object sub_object, Int32[] hierarchy, Int32& dLevelPrimCount)
at ORTS.SharedShape.DistanceLevel..ctor(Viewer3D viewer, String filePath, TextureFlags textureFlags, SFile sFile, distance_level MSTSdistance_level)
at ORTS.SharedShape.LodControl..ctor(Viewer3D viewer, String filePath, TextureFlags textureFlags, SFile sFile, lod_control MSTSlod_control)
at ORTS.SharedShape.LoadContent(String filePath)
at ORTS.SharedShape..ctor(Viewer3D viewer, String filePath)
at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)
at ORTS.ORTraceListener.TraceEventInternal(TraceEvent Cache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceError(String format, Object[] args)
at ORTS.ORTraceListener.WriteLine(Object o)
at System.Diagnostics.TraceInternal.WriteLine(Object value)
at System.Diagnostics.Trace.WriteLine(Object value)
at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)
at ORTS.StaticShape..ctor(Viewer3D viewer, String path, WorldPosition position, ShapeFlags flags)
at ORTS.PoseableShape..ctor(Viewer3D viewer, String path, WorldPosition initialPosition, ShapeFlags flags)
at ORTS.AnimatedShape..ctor(Viewer3D viewer, String path, WorldPosition initialPosition, ShapeFlags flags)
at ORTS.MSTSWagonViewer..ctor(Viewer3D viewer, MSTSWagon car)
at ORTS.MSTSLocomotiveViewer..ctor(Viewer3D viewer, MSTSLocomotive car)
at ORTS.MSTSDieselLocomotiveViewer..ctor(Viewer3D viewer, MSTSDieselLocomotive car)
at ORTS.MSTSDieselLocomotive.GetViewer(Viewer3D viewer)
at ORTS.TrainDrawer.GetViewer(TrainCar car)
at ORTS.Viewer3D.GetPlayerLocomotiveViewer()
at ORTS.Viewer3D.Initialize(RenderProcess renderProcess)
at ORTS.RenderProcess.Initialize()
at Microsoft.Xna.Framework.Game.Run()
at ORTS.Viewer3D.Run()
at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
at ORTS.Program.Start(UserSettings settings, String[] args)
at ORTS.Program.Main(String[] args
Information: e:\msts\train sim\train simulator\trains\trainset\csx_sd40-3_4000\parts.s
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.Collections.ArrayList.get_Item(Int32 index)
at MSTS.shader_names.get_Item(Int32 i)
at ORTS.SharedShape.SubObject..ctor(Viewer3D viewer, String filePath, TextureFlags textureFlags, SFile sFile, sub_object sub_object, Int32[] hierarchy, Int32& dLevelPrimCount)
at ORTS.SharedShape.DistanceLevel..ctor(Viewer3D viewer, String filePath, TextureFlags textureFlags, SFile sFile, distance_level MSTSdistance_level)
at ORTS.SharedShape.LodControl..ctor(Viewer3D viewer, String filePath, TextureFlags textureFlags, SFile sFile, lod_control MSTSlod_control)
at ORTS.SharedShape.LoadContent(String filePath)
at ORTS.SharedShape..ctor(Viewer3D viewer, String filePath)
at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)
at ORTS.ORTraceListener.TraceEventInternal(TraceEvent Cache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.TraceInternal.TraceEvent(TraceE ventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceError(String format, Object[] args)
at ORTS.ORTraceListener.WriteLine(Object o)
at System.Diagnostics.TraceInternal.WriteLine(Object value)
at System.Diagnostics.Trace.WriteLine(Object value)
at ORTS.SharedShapeManager.Get(Viewer3D viewer, String path)
at ORTS.StaticShape..ctor(Viewer3D viewer, String path, WorldPosition position, ShapeFlags flags)
at ORTS.PoseableShape..ctor(Viewer3D viewer, String path, WorldPosition initialPosition, ShapeFlags flags)
at ORTS.AnimatedShape..ctor(Viewer3D viewer, String path, WorldPosition initialPosition, ShapeFlags flags)
at ORTS.MSTSWagonViewer..ctor(Viewer3D viewer, MSTSWagon car)
at ORTS.MSTSLocomotiveViewer..ctor(Viewer3D viewer, MSTSLocomotive car)
at ORTS.MSTSDieselLocomotiveViewer..ctor(Viewer3D viewer, MSTSDieselLocomotive car)
at ORTS.MSTSDieselLocomotive.GetViewer(Viewer3D viewer)
at ORTS.TrainDrawer.GetViewer(TrainCar car)
at ORTS.Viewer3D.GetPlayerLocomotiveViewer()
at ORTS.Viewer3D.Initialize(RenderProcess renderProcess)
at ORTS.RenderProcess.Initialize()
at Microsoft.Xna.Framework.Game.Run()
at ORTS.Viewer3D.Run()
at ORTS.Program.<>c__DisplayClass8.<Start>b__7()
at ORTS.Program.Start(UserSettings settings, String[] args)
at ORTS.Program.Main(String[] args


Comment