Sim loads, Cabview works fine, lights & smoke appear, but engine shape textures do not appear in any exterior view.
Locomotive download: http://www.edstrains.../train/cnw.html
From the log:
Information: e:\msts\trains\trainset\gb_c628_cnw\c628_cnw_6718.s
Error: System.ArgumentOutOfRangeException: Resource size must be greater than zero.
Parameter name: elementCount
at Microsoft.Xna.Framework.Graphics.IndexBuffer..ctor(GraphicsDevice graphicsDevice, Type indexType, Int32 elementCount, BufferUsage usage)
at ORTS.SharedShape.SubObject..ctor(sub_object sub_object, Int32[] hierarchy, TextureFlags textureFlags, SFile sFile, SharedShape sharedShape)
at ORTS.SharedShape.DistanceLevel.<>c__DisplayClassd.<.ctor>b__b(sub_object obj)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ORTS.SharedShape.DistanceLevel..ctor(distance_level MSTSdistance_level, TextureFlags textureFlags, SFile sFile, SharedShape sharedShape)
at ORTS.SharedShape.LodControl.<>c__DisplayClass9.<.ctor>b__7(distance_level level)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ORTS.SharedShape.LodControl..ctor(lod_control MSTSlod_control, TextureFlags textureFlags, SFile sFile, SharedShape sharedShape)
at ORTS.SharedShape.<>c__DisplayClass1.<LoadContent>b__0(lod_control lod)
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at ORTS.SharedShape.LoadContent()
at ORTS.SharedShape..ctor(Viewer3D viewer, String filePath)
at ORTS.SharedShapeManager.Get(String path)
at ORTS.PoseableShape..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.LoadCar(TrainCar car)
at ORTS.TrainDrawer.Load()
at ORTS.World.Load()
at ORTS.Viewer3D.Load()
at ORTS.LoaderProcess.Load()
at ORTS.LoaderProcess.DoLoad()
at ORTS.LoaderProcess.LoaderThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
CS
Page 1 of 1
BLW Alco C628 Ghost Engine....
#4
Posted 06 November 2012 - 09:46 AM
It has nothing to do with LOD; the locomotive contains primitives with no vertex indices (which is as good as invalid). It's fixed in V1319.
Page 1 of 1