Elvas Tower: Unrecognized header - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unrecognized header Only traditional MSTS files accepted? Rate Topic: -----

#1 User is offline   Rj Zondervan 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 40
  • Joined: 09-March 11
  • Gender:Male
  • Simulator:MSTS/ORTS
  • Country:

Posted 10 March 2023 - 10:27 AM

Hi All,


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)



#2 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,772
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 10 March 2023 - 10:59 AM

Hi Robert,

The PR of the z-fighting fix has some conflicts to be resolved with the gltf branch. Nothing serious, but unfortunately it can't be technically resolved until the former is entirely merged into master. So the latter has to wait for the former, until then it is blocked due to this merging conflict.

#3 User is offline   Rj Zondervan 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 40
  • Joined: 09-March 11
  • Gender:Male
  • Simulator:MSTS/ORTS
  • Country:

Posted 10 March 2023 - 02:14 PM

Ah, that explains. Then I'll wait until the PR's are merged and the merge conflicts can be resolved.

#4 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,879
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 11 March 2023 - 11:30 AM

View Postgpz, on 10 March 2023 - 10:59 AM, said:

The PR of the z-fighting fix has some conflicts to be resolved with the gltf branch. Nothing serious, but unfortunately it can't be technically resolved until the former is entirely merged into master. So the latter has to wait for the former, until then it is blocked due to this merging conflict.


The former has now been approved and merged, so the latter no longer has to wait http://www.elvastower.com/forums/public/style_emoticons/default/smile.gif

#5 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,772
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 11 March 2023 - 01:40 PM

Thanks Chris, the latter is also back to business again. :-)

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users