AppleMac

From Elite Wiki
Late 2016 MacBook Pro.jpg

Oolite was originally written for the AppleMac.

Overview

Whilst this meant that those playing Oolite on AppleMacs in the early days had an advantage, the haemorrhaging of AppleMac-friendly developers has led to the inability to fix recent issues (such as the loss of sound) and worries over eventual play on BigSur once backwards compatibility is abandoned by Apple.

AppleMac "help" (" ⌘ ? ") creates this drop-down in a full-screen game

Advantages

Some of the Oolite functionality is "built-in" to the AppleMac. This is most obvious when running the OXP developer releases of Oolite, where the Debug console is built-in to the AppleMac.

The OpenStep Legacy script is from the AppleMac OS

Disadvantages

  • As Apple try more and more to suck money out of anything designed to work on an AppleMac, they have made opening an Oolite download on an AppleMac more difficult.
  • The Load Commander option on game start-up is also built in to the AppleMac, so one gets the standard AppleMac "open file" dialogue box, which gives no information about the save files other than their size and date (in Windows, for example, you get details of Elite rank, location and wealth).
  • The AppleMac parsing of Javascript is rather more tendentious than that of Windows, so, for example, oxp's will be rejected because of a wonky "quotations mark" which windows would just accept and interpret. On the other hand, if you write an oxp on your AppleMac, it should work happily on any other contraption (if you can ever get it to work on yours!!).
  • The newer AppleOS's use the control key for windows management, and this requires disabling if you want to use the control key in-game.
  • Many of the HOTAS setups are incompatible with the AppleMac, and thus only partially usable for Oolite.
  • The AppleMac OS hides files away from view, so finding your AddOns and Managed AddOns folders can be pains in the unmentionables. As can looking at the vanilla game code.
  • There are issues with the game sounds disappearing when playing for any length of time.

Running your new download of Oolite

Newly-downloaded copies of Oolite are not allowed to run under AppleOS, because it’s “from an unidentified developer” (ie none of us paid $300 to get a signature from Apple Inc.).

Solution

You can bypass this behaviour as follows:

Select Oolite in the Finder.
Hold down the control key and click the Oolite icon.
Select Open from the pop-up menu.
You will get the traditional This is an application downloaded from the Internet warning, and can now choose to open Oolite and start playing!

Installing expansions on Oolite 1.90 (and previous)

Oolite can be customized easily by installing expansion packs (OXP directories or OXZ files). There is a builtin expansion manager that downloads and installs expansions you select. They are accessed from the website oolite.org. Unfortunately the Oolite project has moved to a different domain oolite.space, and the all builds before v1.91 are not aware of this.

There are several options to overcome this limitation:

Solution 1: Manage expansions manually. It is an effort but is quite possible

You need to know where to get downloads from, and you need to know where to drop them on your harddrive.

To find out the available expansions, go to https://www.oolite.space/#oxp. You can sort the list by clicking the column header and download it using the icon on the right.

After downloading, move the file to

  ~/Library/Application Support/Oolite/Managed Addons

The tilde character will be replaced by your user home directory. If you prefer, you can as well write

  $HOME/Library/Application Support/Oolite/Managed Addons
Note

The Managed Addons folder may not exist after Oolite installation. It would get created via the expansions manager.


In any case, mind the space characters in the directory names. And while we are at it, uninstall expansions by simply removing them from the directory.

Solution 2: Configure Oolite to access the expansion catalog from the new URL

Oolite reads preferences from a file called

   ~/Library/Preferences/org.aegidian.oolite.plist

(see also Location of Oolite saved settings). The file is in Property list format, which used to be human-readable but today is binary.

While Oolite is not running, open a terminal window (command prompt) and run this command:

   defaults write org.aegidian.oolite oxz-index-url http://addons.oolite.space/api/1.0/overview

On future startups the Oolite builtin expansion manager should find the correct index of expansions.

Further guidance with screenshots available at MacOS Process to update gnustepdefaults file.

Solution 3: Make use of Oolite Starter

Oolite Starter is a wrapper for Oolite that allows managing expansions and more.


Precision Flying and the Control Key

The precision flying ‘control’ key does not work well on the modern macs -

Your Oolite window whizzes off to the side, is replaced by another window and you suddenly find that you are looking at something quite different (your cobra may indeed be flying much more precisely - but it's a tad difficult to ascertain this when the appropriate window has jumped into witchspace without you!)

This is because the more recent MacOS's combine the control key with the arrow keys to activate ‘Mission Control’ (which manages the opened windows on the computer screen).

Solution

1) You need to find the ‘Keyboard’ panel in System Preferences (3rd row down on my machine)
2) Then select the ‘shortcuts’ button on the top line of the window.
3) Choose ‘Mission Control’ in the left hand box.
4) Finally, ‘uncheck’ the relevant shortcuts (Mission Control, Application windows, move left a space, move right a space).

Things should now work as they should!


Music/Sound

As adumbrated above, the sound now eventually cuts out on an AppleMac.

What is less known is the iTunes integration. This may no longer work with the newer Macs which have "Music" instead. See iTunes and Oolite v.1.87 for more on this (2018)


HOTAS and AppleMac

Some people find that using a HOTAS is invaluable for dog-fighting (It does not have to be - see Another_commander's virtuoso display here). In theory, every HOTAS should work on an AppleMac as AppleMac accepts the recognized standard USB HID devices as Windows and Linux do.

The problem is with the HOTAS manufacturers adding on bells and whistles which then require software to interpret. They can't be bothered to write the software for Apple (or for the 613 different flavours of Linux), and so things start to fall apart. And Apple has a history of not bothering to document this sort of thing properly for developers:

As for sample code not being updated, documentation being incomplete/outdated/missing, and provided code requiring a lot of effort to build: welcome to Mac systems & driver development. That's unfortunately how it is. I've been doing OS X kernel/driver work for 7 years, and while some things get easier with experience, downloading code from Apple and building it still feels like playing the lottery. (https://stackoverflow.com/questions/41715074/simple-hid-osx-application 2017)

Solutions

Thrustmaster TFlight HOTAS 4/TM4

It seems that this is not compatible with the AppleMac, with the twist, throttle and axis on the back of the throttle not seeming functional. What neither Thrustmaster nor Apple can be bothered to tell you is that you need to keep the PS, SHARE & OPTIONS buttons held down while you plug it into your AppleMac. The green light should then come on on your PS button, and you should find it fully functional. This worked for Cholmondely but not for Murgh.


Accessing the Vanilla Game Code

Solution

Download the current oolite-1.9?.zip from GitHub. This will just expand, rather than install, and you will be able to look at the entire code.

AppleMac peculiarities

The so-called Oolite programme is really just an unopenable folder with the programme hidden inside, which starts when you click on the folder wrapping.


History

Oolite was originally written by Aegidian for the AppleMac back in 2003 and then ported by Winston & David Taylor to Linux & Windows three years later. Our Second lead developer, Ahruman (2007-13) was also an AppleMac buff. It's been downhill ever since, sadly. So much so, that the introduction of Big Sur (MacOS 11) threatens to make Oolite unplayable once Apple phase out backwards compatibility, due to our lack of developers who know how to make Oolite compatible with Big Sur.


Links

Techniques

Humour