BLW Alco C628 Not Visible In the Game

Bug #1075204 reported by Wayne Campbell
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Undecided
James Ross

Bug Description

From http://www.elvastower.com/forums/index.php?/topic/20009-blw-alco-c628-ghost-engine/page__pid__103071#entry103071

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

Tags: graphics
Revision history for this message
cjakeman (cjakeman) wrote :

Hi Wayne,

Locomotive download: http://www.edstrains.../train/cnw.html

The URL has lost its middle. Can you provide the full URL, please?

Revision history for this message
Wayne Campbell (wayneinbc) wrote :

Here is the full URL for the loco download:

http://www.edstrainsonline.com/valleypass/train/cnw.html

Revision history for this message
James Ross (twpol) wrote :

Fixed in V1319.

Changed in or:
assignee: nobody → James Ross (twpol)
status: New → Fix Committed
James Ross (twpol)
Changed in or:
milestone: none → 0.9
James Ross (twpol)
tags: added: graphics
James Ross (twpol)
Changed in or:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.