Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marker Files are Different from those provided with Orbiter 2016 #416

Closed
ThChicken opened this issue Jan 16, 2024 · 3 comments
Closed

Marker Files are Different from those provided with Orbiter 2016 #416

ThChicken opened this issue Jan 16, 2024 · 3 comments

Comments

@ThChicken
Copy link

ThChicken commented Jan 16, 2024

I have created a waypoint autopilot in Lua that refers to the marker files (*.mkr) found in Config/Earth/Markers. I discovered that the multiple marker files provided in Orbiter 2016 (listed below) are not found in OpenOrbiter (as of build 240105):

Antarctic Stations.mkr
Cities.mkr
Islands.mkr
Impact Features.mkr
Miscellaneous.mkr
Mountains and Volcanos.mkr
Tracking Stations.mkr

In OpenOrbiter 240105 there is only one marker file, and it does not match the name of any of the 2016 marker files:

City.mkr (note Orbiter 2016 has Cities.mkr)

This may not be a bug per se, but I wanted to inquire what was the necessity to altering these files? These marker files resources are the only way to my knowledge to access these station locations within Lua. It will either require Orbiter version checking in the Lua script (not currently available, see Issue #415) or checking of file names and the number of files within the directory (potentially possible but not simple to do in Lua).

@schnepe2
Copy link
Contributor

Generic file i/o should be possible in Lua (at least for OpenOrbiter):
Input and Output Facilities
Operating System Facilities
Whether that's enough is a different question 😉

@ThChicken
Copy link
Author

I am aware of Lua file i/o capabilities. The challenge is identifying what files are in a given directory from within Lua. That currently cannot be done in pure Lua without external libraries.

More fundamentally, I'd like to know why this marker file is different from the one provided in Orbiter 2016, and why the other marker files were not included. To my knowledge, these marker files are only utilized to identify bases in the Map MFD function. Did something change in OpenOrbiter with regard to their use?

@schnepe2
Copy link
Contributor

schnepe2 commented Jan 16, 2024

As far as I can remember (long time ago) the Markers have been incorporated into the binary, packed, "Archive" structure in the Textures Folder (for example .\Textures\Earth\Archive\Label.tree)
That "new" format is explained in a technical documentation somewhere.

This has to do with performance considerations as reading those Text-files is not the fastest way to do.

And just before you ask... I will not provide a Lua interface for that 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants