Detect and run modern installations
Moderators: another_commander, winston
Re: Detect and run modern installations
Just checked with latest trunk (source build) and the version is indeed only shown on the start screen and in the log files .
I would expect the -showversion option to output the version on stdout and then stop .
(similar to what the the --help option does) .
I would expect the -showversion option to output the version on stdout and then stop .
(similar to what the the --help option does) .
OS : Arch Linux 64-bit - rolling release
From: The Netherlands, Europe
OXPs : My user page (needs updating)
Retired, occasionally active
From: The Netherlands, Europe
OXPs : My user page (needs updating)
Retired, occasionally active
-
another_commander
- Quite Grand Sub-Admiral

- Posts: 7178
- Joined: Wed Feb 28, 2007 7:54 am
Re: Detect and run modern installations
-showversion was never designed to output the game version externally.
Can one not use the --help output to grab the version string? We have it in trunk and 1.92.1 right now.
Can one not use the --help output to grab the version string? We have it in trunk and 1.92.1 right now.
Re: Detect and run modern installations
--help seems to work fine with appimage
Code: Select all
$ ./Oolite_test_1.92.1.7800-260303-6443c4c-x86_64.AppImage --help 2>/dev/null | sed -n 's/^Version //p'
1.92.1.7800-260303-6443c4c
- hiran
- Theorethicist
- Posts: 2573
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Detect and run modern installations
Yep, that works. So it is at least not necessary to extract the image for version information.MrFlibble wrote: ↑Sat Mar 07, 2026 4:22 pm--help seems to work fine with appimage
Code: Select all
$ ./Oolite_test_1.92.1.7800-260303-6443c4c-x86_64.AppImage --help 2>/dev/null | sed -n 's/^Version //p' 1.92.1.7800-260303-6443c4c
Now I need a better way to test for the debug capability. Currently that still requires to extract the manifest.plist file. Could that information be added to the help screen as well?
Just to recap: We used to offer releases and developer releases. Here is the description of the developer release as I retrieved it from
https://web.archive.org/web/20230329124 ... /download/
Code: Select all
OXP Developer releases
The main downloads are optimised for maximum in-game performance and are recommended for players. People wishing to develop expansion packs for the game are recommended to install the OXP Developer releases. The following extra features are enabled in these releases at the expense of performance.
Debug OXP and Debug Console are supported.
On all platforms, installing Debug.oxp enables support for external console applications using the Oolite debug console TCP protocol. OoDebugConsole1.6.zip is an example of a cross-platform, python based, external console application. It contains a precompiled console for windows based computers, and the original python based console for Linux and Posix compliant computers.
OXP Verifier functionality is included.
OXP Deprecation warnings are enabled.
Localization tools support is included.
AI Graphviz support is included.
Debug information is added. (e.g. AI stack, collision, dump target state, entities, memory usage, script tracing etc.)
JS monitor support is enabled.
The JS method takeSnapshot() is enabled.
Time Acceleration Factor (TAF) is enabled.
Shift-F displays FPS, entities, coordinates and TAF info.
Sanity checks are included.
Sunshine - Moonlight - Good Times - Oolite
Re: Detect and run modern installations
Short of augmenting the --help, I can only find this crude method, which probably won't work on ancient versions.hiran wrote: ↑Sat Mar 07, 2026 10:18 pmYep, that works. So it is at least not necessary to extract the image for version information.MrFlibble wrote: ↑Sat Mar 07, 2026 4:22 pm--help seems to work fine with appimage
Code: Select all
$ ./Oolite_test_1.92.1.7800-260303-6443c4c-x86_64.AppImage --help 2>/dev/null | sed -n 's/^Version //p' 1.92.1.7800-260303-6443c4c
Now I need a better way to test for the debug capability. Currently that still requires to extract the manifest.plist file.
Code: Select all
timeout 5 ./Oolitewhatever.AppImage -verify-oxp /tmp/notreal -nosplash && echo debug || echo nodebug
If the --help was improved to add debug/test/vanilla, either as an extra line, or as part of the version string, the absence of either would indicate an old enough version that one would have to declare in Starter whether or not that version had debug, as you have done so far, else it could be automagic, as I expect is your intent.
- hiran
- Theorethicist
- Posts: 2573
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Detect and run modern installations
You're spot on guessing my intent. And I like the idea of adding a line to the help screen. It is meaningful to users and OoliteStarter alike.MrFlibble wrote: ↑Sat Mar 07, 2026 10:45 pmShort of augmenting the --help, I can only find this crude method, which probably won't work on ancient versions.
This unfortunately spawns a window in non-test versions, and I expect a shorter timeout is likely to give false results on slow systems.Code: Select all
timeout 5 ./Oolitewhatever.AppImage -verify-oxp /tmp/notreal -nosplash && echo debug || echo nodebug
If the --help was improved to add debug/test/vanilla, either as an extra line, or as part of the version string, the absence of either would indicate an old enough version that one would have to declare in Starter whether or not that version had debug, as you have done so far, else it could be automagic, as I expect is your intent.
Sunshine - Moonlight - Good Times - Oolite
-
another_commander
- Quite Grand Sub-Admiral

- Posts: 7178
- Joined: Wed Feb 28, 2007 7:54 am
Re: Detect and run modern installations
Line added to help screen. You can now see if you are running a debug-functionality-enabled (test release) build or not.
- hiran
- Theorethicist
- Posts: 2573
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Detect and run modern installations
Thank you for that change. This works, and it is backward compatible. Versions that do not disclose their build type still won't go interactive.another_commander wrote: ↑Sun Mar 08, 2026 3:01 pmLine added to help screen. You can now see if you are running a debug-functionality-enabled (test release) build or not.
I enhanced OoliteStarter to make use of that feature.
Sunshine - Moonlight - Good Times - Oolite
