After updating to the last version of OpenRails Unstable to test Peter's latest work on the glTF implementation, my glTF models were not shown anymore. Looking at the logs I found the following error:
Warning: System.IO.FileLoadException: f:\defaultor\trains\trainset\rz ns 3700\shapes\ns3704-1935.gltf f:\defaultor\trains\trainset\rz ns 3700\ ---> System.Exception: Unrecognized header "{ "as" in f:\defaultor\trains\trainset\rz ns 3700\shapes\ns3704-1935.gltf bij Orts.Parsers.Msts.SBR.Open(String filename) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\Orts.Parsers.Msts\SBR.cs:regel 78 bij Orts.Formats.Msts.ShapeFile..ctor(String filename, Boolean suppressShapeWarnings) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\Orts.Formats.Msts\ShapeFile.cs:regel 99 bij Orts.Viewer3D.SharedShape.LoadContent() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Shapes.cs:regel 2000 bij Orts.Viewer3D.SharedShape..ctor(Viewer viewer, String filePath) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Shapes.cs:regel 1986 bij Orts.Viewer3D.SharedShapeManager.Get(String path) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Shapes.cs:regel 77 bij Orts.Viewer3D.StaticShape..ctor(Viewer viewer, String path, WorldPosition position, ShapeFlags flags) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Shapes.cs:regel 146 bij Orts.Viewer3D.PoseableShape..ctor(Viewer viewer, String path, WorldPosition initialPosition, ShapeFlags flags) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Shapes.cs:regel 272 bij Orts.Viewer3D.RollingStock.MSTSWagonViewer..ctor(Viewer viewer, MSTSWagon car) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\RollingStock\MSTSWagonViewer.cs:regel 241 bij Orts.Viewer3D.RollingStock.MSTSLocomotiveViewer..ctor(Viewer viewer, MSTSLocomotive car) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\RollingStock\MSTSLocomotiveViewer.cs:regel 63 bij Orts.Viewer3D.RollingStock.MSTSSteamLocomotiveViewer..ctor(Viewer viewer, MSTSSteamLocomotive car) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\RollingStock\MSTSSteamLocomotiveViewer.cs:regel 64 bij Orts.Viewer3D.TrainDrawer.LoadCar(TrainCar car) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Trains.cs:regel 154 bij Orts.Viewer3D.TrainDrawer.Load() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Trains.cs:regel 74 bij Orts.Viewer3D.World.Load() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\World.cs:regel 99 bij Orts.Viewer3D.Viewer.Load() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Viewer.cs:regel 729 bij Orts.Viewer3D.Viewer.Initialize() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Viewer.cs:regel 538 bij Orts.Viewer3D.Viewer..ctor(Simulator simulator, Game game) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Viewer.cs:regel 369 bij Orts.Viewer3D.Processes.GameStateRunActivity.Start(UserSettings settings, String acttype, String[] args) in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:regel 364 bij Orts.Viewer3D.Processes.GameStateRunActivity.<>c__DisplayClass41_0.<Load>b__3() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:regel 208 bij Orts.Viewer3D.Processes.GameStateRunActivity.Load() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:regel 249 bij Orts.Viewer3D.Processes.LoaderProcess.Load() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:regel 161 bij Orts.Viewer3D.Processes.LoaderProcess.DoLoad() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:regel 140 bij Orts.Viewer3D.Processes.LoaderProcess.LoaderThread() in C:\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:regel 111 bij System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) bij System.Threading.ThreadHelper.ThreadStart()
(The full log is in the attachments)
I also remembered this topic on the BNSF scenic route. I looked into the builds that happened in between, and build U2023.03.02-2321 2023-03-02 23:28:17 is the first version to show this behaviour.
The build logs do not immediately point me at a certain PR that would cause this, but it is rather worrying as it seems that only traditional MSTS files with the SIMISA-header are accepted at the moment.
Attached File(s)
-
OpenRailsLog-UH.txt (35.25K)
Number of downloads: 58