Carlo,
downloaded the test .exe and the dll and applied to X3337. Added the ORTSForestClearDistance line to the .trk file as instructed.
Started the test using the Feather River Route - WP3Sub - which has a quite a few trees in tracks. Loading hung about 80% (approximate using the loading bar as visual ref)
and got this error in log - also attached. Will try with other routes.
Everything loads properly and runs in X3328
Route - WP3 Sub Activity: Overland Mail West
Warning: System.IO.FileLoadException: {TileX:-12899 TileZ:14307 X:-999.164 Y:1357.99 Z:-608.53} scenery object 50 failed to load ---> System.ArgumentNullException: Value cannot be null.
Parameter name: collection
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at ORTS.Viewer3D.ForestPrimitive.CalculateTrees(TileManager tiles, ForestObj forest, WorldPosition position, Single& objectRadius)
at ORTS.Viewer3D.ForestPrimitive..ctor(Viewer viewer, ForestObj forest, WorldPosition position, Single maximumCenterlineOffset)
at ORTS.Viewer3D.ForestViewer..ctor(Viewer viewer, ForestObj forest, WorldPosition position)
at ORTS.Viewer3D.WorldFile..ctor(Viewer viewer, Int32 tileX, Int32 tileZ, Boolean visible)
at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceWarning(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.Viewer3D.WorldFile..ctor(Viewer viewer, Int32 tileX, Int32 tileZ, Boolean visible)
at ORTS.Viewer3D.SceneryDrawer.LoadWorldFile(Int32 tileX, Int32 tileZ, Boolean visible)
at ORTS.Viewer3D.SceneryDrawer.Load()
at ORTS.Viewer3D.World.Load()
at ORTS.Viewer3D.Viewer.Load()
at ORTS.Viewer3D.Viewer.Initialize()
at ORTS.Viewer3D.Viewer..ctor(Simulator simulator, Game game)
at ORTS.Processes.GameStateRunActivity.Start(UserSettings settings, String acttype, String[] args)
at ORTS.Processes.GameStateRunActivity.<>c__DisplayClass8.<Load>b__3()
at ORTS.Processes.GameStateRunActivity.Load()
at ORTS.Processes.LoaderProcess.Load()
at ORTS.Processes.LoaderProcess.DoLoad()
at ORTS.Processes.LoaderProcess.LoaderThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
SSSSSSSSSSSSSSSSSSSSSS
Warning: System.IO.FileLoadException: {TileX:-12899 TileZ:14307 X:-459.282 Y:1346.59 Z:-373.44} scenery object 954 failed to load ---> System.ArgumentNullException: Value cannot be null.
Parameter name: collection
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at ORTS.Viewer3D.ForestPrimitive.CalculateTrees(TileManager tiles, ForestObj forest, WorldPosition position, Single& objectRadius)
at ORTS.Viewer3D.ForestPrimitive..ctor(Viewer viewer, ForestObj forest, WorldPosition position, Single maximumCenterlineOffset)
at ORTS.Viewer3D.ForestViewer..ctor(Viewer viewer, ForestObj forest, WorldPosition position)
at ORTS.Viewer3D.WorldFile..ctor(Viewer viewer, Int32 tileX, Int32 tileZ, Boolean visible)
at ORTS.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.Trace.TraceWarning(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.Viewer3D.WorldFile..ctor(Viewer viewer, Int32 tileX, Int32 tileZ, Boolean visible)
at ORTS.Viewer3D.SceneryDrawer.LoadWorldFile(Int32 tileX, Int32 tileZ, Boolean visible)
at ORTS.Viewer3D.SceneryDrawer.Load()
at ORTS.Viewer3D.World.Load()
at ORTS.Viewer3D.Viewer.Load()
at ORTS.Viewer3D.Viewer.Initialize()
at ORTS.Viewer3D.Viewer..ctor(Simulator simulator, Game game)
at ORTS.Processes.GameStateRunActivity.Start(UserSettings settings, String acttype, String[] args)
at ORTS.Processes.GameStateRunActivity.<>c__DisplayClass8.<Load>b__3()
at ORTS.Processes.GameStateRunActivity.Load()
at ORTS.Processes.LoaderProcess.Load()
at ORTS.Processes.LoaderProcess.DoLoad()
at ORTS.Processes.LoaderProcess.LoaderThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
etc.....see log