Enabling Expansions on MacOS with 1.90

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

edsel6502
Above Average
Above Average
Posts: 21
Joined: Tue Mar 07, 2006 1:55 am

Re: Enabling Expansions on MacOS with 1.90

Post by edsel6502 »

hiran wrote: Mon Dec 18, 2023 7:45 am

This is not a surprise. We lost the domain oolite.org, someone else took over so the URL that Oolite 1.90 is trying to access responds with the result you see. Hence either you are able to tell Oolite the new URL or you need to use the alternative OoliteStarter to manage expansions.

For me the surprising part is that according to the logs you posted your installation is not even trying to access the expected ManagedAddons location.
Yup that is the mystery. I just confirmed that Oolite is using the correct prefs plist file with the wireframe toggle test.

And I am successfully able to use OoliteStarter to dowload/enable/disable the oxz. Its just that Oolite will only scan ~/Library/Application Support/Oolite/AddOns

Are there any other config files I can edit explicitly specify ~/Library/Application Support/Oolite/ManagedAddOns

On a PC the logs show that it knows there are oxz's in the expected locations.

Resources
C:\Oolite/oolite.app/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns
../AddOns
edsel6502
Above Average
Above Average
Posts: 21
Joined: Tue Mar 07, 2006 1:55 am

Re: Enabling Expansions on MacOS with 1.90

Post by edsel6502 »

SOLVED

So thank you for all your help!.

I decided to look at the code in github and do a search for

- AddOns. Found matches that have nothing to do with installers ie. just code.
- "ManagedAddOns". Found a match. But that didn't looks right.

#else
/* GNUStep uses "ApplicationSupport" rather than "Application
* Support" so match convention by not putting a space in the
* path either */
appPath = [appPath stringByAppendingPathComponent:@"ManagedAddOns"];


Then I look at the whole if else block and see the following. Goddamn "Managed AddOns" NOT "ManagedAddOns"

#if OOLITE_MAC_OS_X
appPath = [appPath stringByAppendingPathComponent:@"Managed AddOns"];


Make a symlink ~/Library/Application\ Support/Oolite/ManagedAddons to ~/Library/Application\ Support/Oolite/Managed\ AddOns

Start Oolite and Boom it works. The expansions are loaded AND the expansion manager updates.

So for MacOS the correct path for oxz's is

~/Library/Application\ Support/Oolite/Managed\ Addons

Once you set that correctly.
Expansion Manager within the app will work after
  • addition of the oxz-index-url keypair to the plist file
  • mkdir -p ~/Library/Application\ Support/Oolite/Managed\ Addons. Expansion manager will not update if the folder is not there.
OoliteStarter needs to have the following set
  • ~/Library/Application Support/Oolite/Managed Addons
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4829
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Enabling Expansions on MacOS with 1.90

Post by phkb »

edsel6502 wrote: Mon Dec 18, 2023 8:42 am
SOLVED
That's brilliant! Well done!
User avatar
hiran
Theorethicist
Posts: 2372
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Enabling Expansions on MacOS with 1.90

Post by hiran »

edsel6502 wrote: Mon Dec 18, 2023 8:42 am
So for MacOS the correct path for oxz's is

~/Library/Application\ Support/Oolite/Managed\ Addons

Once you set that correctly.
Expansion Manager within the app will work after
  • addition of the oxz-index-url keypair to the plist file
  • mkdir -p ~/Library/Application\ Support/Oolite/Managed\ Addons. Expansion manager will not update if the folder is not there.
OoliteStarter needs to have the following set
  • ~/Library/Application Support/Oolite/Managed Addons
That is a really good summary. Probably noone here was aware Oolite for Mac uses a slightly different directory. Plus the fact that it's missing will leave not a single trace about it in the logs. Is it feasible to have at least a message saying "Could not find folder ..../Managed Addons"?

To make it a bit lighter, I modified OoliteStarter so it suggests the correct directory - that is no guarantee though.
Sunshine - Moonlight - Good Times - Oolite
User avatar
Cholmondely
Archivist
Archivist
Posts: 5325
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Enabling Expansions on MacOS with 1.90

Post by Cholmondely »

Can I ask somebody who understands all this to update the wiki where/if necessary?

And might this be the reason that the nightlies can no longer be built for the AppleMac?
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
edsel6502
Above Average
Above Average
Posts: 21
Joined: Tue Mar 07, 2006 1:55 am

Re: Enabling Expansions on MacOS with 1.90

Post by edsel6502 »

Cholmondely wrote: Mon Dec 18, 2023 2:32 pm
Can I ask somebody who understands all this to update the wiki where/if necessary?

And might this be the reason that the nightlies can no longer be built for the AppleMac?
in regards to nighlies, no. This was a documentation and a classic logic bomb error ie. there does not seem to be a function to check for the existence of the directory and create it if does not exist.

The nightlies are compile errors. Its based on a cursary read of topics in the mac specific section.
User avatar
hiran
Theorethicist
Posts: 2372
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Enabling Expansions on MacOS with 1.90

Post by hiran »

Cholmondely wrote: Mon Dec 18, 2023 2:32 pm
Can I ask somebody who understands all this to update the wiki where/if necessary?

And might this be the reason that the nightlies can no longer be built for the AppleMac?
I could write some words. Where in the wiki do we describe how to configure Oolite Mac?
Sunshine - Moonlight - Good Times - Oolite
User avatar
Cholmondely
Archivist
Archivist
Posts: 5325
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Enabling Expansions on MacOS with 1.90

Post by Cholmondely »

hiran wrote: Mon Dec 18, 2023 9:52 pm
I could write some words. Where in the wiki do we describe how to configure Oolite Mac?
Excellent question!

Maybe here: Modifying Oolite Informal FAQ?

Or here: Developing Oolite?

Or even here: AppleMac?

Or possibly here: Running Oolite-Mac?



I presume that the gubbins tucked away inside here is irrelevant: Category:Oolite scripting

Note: Edited to fix top link
Last edited by Cholmondely on Wed Dec 20, 2023 9:42 am, edited 1 time in total.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
hiran
Theorethicist
Posts: 2372
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Enabling Expansions on MacOS with 1.90

Post by hiran »

Cholmondely wrote: Mon Dec 18, 2023 11:15 pm
I believe this link is the best match. The others also have detail information yet the context is slightly different.

I'll write up something.
Sunshine - Moonlight - Good Times - Oolite
User avatar
hiran
Theorethicist
Posts: 2372
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Enabling Expansions on MacOS with 1.90

Post by hiran »

I started off writing https://wiki.alioth.net/index.php/Apple ... olite_1.90, yet more to follow.
Sunshine - Moonlight - Good Times - Oolite
User avatar
hiran
Theorethicist
Posts: 2372
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Enabling Expansions on MacOS with 1.90

Post by hiran »

hiran wrote: Wed Dec 20, 2023 1:30 pm
I started off writing https://wiki.alioth.net/index.php/Apple ... olite_1.90, yet more to follow.
Done. Could someone with a real Apple Mac crosscheck what I wrote down? Is it understandable? Can a user follow those instructions?
Feedback and corrections are welcome.
Sunshine - Moonlight - Good Times - Oolite
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4829
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Enabling Expansions on MacOS with 1.90

Post by phkb »

hiran wrote: Wed Dec 20, 2023 9:37 pm
Feedback and corrections are welcome.
Any reason you're pointing users to this page:
To find out the available expansions, go to https://ooliteproject.github.io/oolite- ... yName.html.
rather than sending them to https://www.oolite.space/#oxp?
The page on oolite.space is a lot prettier, has all the relevant info, and includes both a link to the info page, and a download link, which makes download multiple OXP's a breeze. And not every OXP has a download link on the wiki page (see Energy Rebalance, for instance).
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4829
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Enabling Expansions on MacOS with 1.90

Post by phkb »

Also, you don't *have* to install OXZ's in the Managed AddOns folder. They will work successfully from the AddOns folder. The only benefit for installing in the Managed AddOns folder is if you want to eventually use the Download Manager, in which case having the OXZ's in the right place will allow it to update them. But, if you've given up on getting the DM working on a Mac, and are pursuing the manual install method instead, all of that is moot and the AddOns folder is perfectly fine for OXZ's.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4829
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: Enabling Expansions on MacOS with 1.90

Post by phkb »

Finally, this line:
open this file with your preferred editor
That's super vague. At the moment, the only app I know that can read/write to the settings file is Xcode. It might be better to mention that Xcode is the preferred editor, and then suggest if the user has another app that can edit these files they should use that.
User avatar
hiran
Theorethicist
Posts: 2372
Joined: Fri Mar 26, 2021 1:39 pm
Location: a parallel world I created for myself. Some call it a singularity...

Re: Enabling Expansions on MacOS with 1.90

Post by hiran »

phkb wrote: Wed Dec 20, 2023 9:58 pm
hiran wrote: Wed Dec 20, 2023 9:37 pm
Feedback and corrections are welcome.
Any reason you're pointing users to this page:
To find out the available expansions, go to https://ooliteproject.github.io/oolite- ... yName.html.
rather than sending them to https://www.oolite.space/#oxp?
The page on oolite.space is a lot prettier, has all the relevant info, and includes both a link to the info page, and a download link, which makes download multiple OXP's a breeze. And not every OXP has a download link on the wiki page (see Energy Rebalance, for instance).
The intention was to send them to an always up to date list. Not the wiki page matters (you are right that not all expansions have one) but the download link that you get from the details page. But I changed it to point to the website. After all that list is equally up to date.
Sunshine - Moonlight - Good Times - Oolite
Post Reply