Page 2 of 3

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 8:00 am
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

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 8:42 am
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

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 12:36 pm
by phkb
edsel6502 wrote: Mon Dec 18, 2023 8:42 am
SOLVED
That's brilliant! Well done!

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 1:00 pm
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.

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 2:32 pm
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?

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 4:32 pm
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.

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 9:52 pm
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?

Re: Enabling Expansions on MacOS with 1.90

Posted: Mon Dec 18, 2023 11:15 pm
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

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 6:52 am
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.

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 1:30 pm
by hiran
I started off writing https://wiki.alioth.net/index.php/Apple ... olite_1.90, yet more to follow.

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 9:37 pm
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.

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 9:58 pm
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).

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 10:05 pm
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.

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 10:25 pm
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.

Re: Enabling Expansions on MacOS with 1.90

Posted: Wed Dec 20, 2023 11:58 pm
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.