Elvas Tower: Running OR_NewYear on Ubuntu using monogame - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Running OR_NewYear on Ubuntu using monogame This about trying to run the MG version of Openrails on Ubunto using m Rate Topic: -----

#11 User is offline   trackcrew8 

  • Apprentice
  • Pip
  • Group: Status: Fired
  • Posts: 1
  • Joined: 20-July 21
  • Gender:Male
  • Simulator:LinuxRail
  • Country:

Posted 07 August 2021 - 08:27 PM

I have started going the route of porting to Linux native code.
I am calling it "LinuxRails" for now.
It will be native Linux C++ code.
It looks like I will be using SDL for a support package.

The ORTS source is C#, which makes using the ORTS source code impossible.
For that reason I am writing my own engine with native file formats.
This is not my first code re-writing project.

Currently, I am using ORTS source code to write the decoders for the MSTS file formats,
and write Linux native file readers for the MSTS files.
I am using a file reader structure that I have used before,
not the ORTS decoder-in-a-constructor.

Much of the 3D drawing will come from other SDL projects.

I am not sure about using the quads from the MSTS files.
As this is the usual walker-vehicle viewpoint as in most first-person games,
the usual position and two angles of rotation should be adequate.

Estimated time to first play is at least 3 years.

This post has been edited by trackcrew8: 07 August 2021 - 08:27 PM


#12 User is offline   David Webb 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 36
  • Joined: 05-January 20
  • Gender:Male
  • Simulator:OpenRails, ZR
  • Country:

Posted 09 August 2021 - 06:56 AM

It looks like we are both trying a port. I had the same trouble as you did in untangling the C# - but in my case I am using C as I decided it was faster (after reading Stroustrup's C++ manual).

The code is on github:
https://github.com/djw-zr/ZR

I am using the 'free' zig-zag layout and the code has reached the stage where I can run an engine along the track and change points/switches. At present I am trying to get the wheels to rotate. This involves reading the engine and wagon files (done on my home computer) - to get the wheel diameters and then adding the extra matrix transformation when displaying the engine shape file.

Regards,

David.

p.s. I was waiting to update this message board until after the wheels were rotating as this seemed to be the basic system anyone might be interested in.!

#13 User is offline   David Webb 

  • Apprentice
  • Group: Status: Active Member
  • Posts: 36
  • Joined: 05-January 20
  • Gender:Male
  • Simulator:OpenRails, ZR
  • Country:

Posted 24 August 2021 - 12:00 AM

There is also a discussion of Openrails/MSTS and Linux here.. This now includes a link to a Linux version using C++ and OSG (Open Scene Graph). It is written by dajones and has been going since 2008.

David.

  • 2 Pages +
  • 1
  • 2
  • 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