Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Enabling Expansions on MacOS with 1.90

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

Moderators: another_commander, winston

User avatar
hiran
Theorethicist
Posts: 2079
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 10:05 pm
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.
I agree. But to keep things simple I decided to just mention one directory. Do you know where the Addons folder resides on a Mac? I think it depends on the installation of Oolite itself.
Sunshine - Moonlight - Good Times - Oolite
User avatar
hiran
Theorethicist
Posts: 2079
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 10:25 pm
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.
I saw the hint for XCode in the other document - yet I believe not every pilot has Apple's IDE installed.
But what editor is the default plain text editor on MacOS?
Sunshine - Moonlight - Good Times - Oolite
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4668
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: Thu Dec 21, 2023 12:01 am
But what editor is the default plain text editor on MacOS?
From the [EliteWiki] Hidden settings in Oolite page:
This is human-readable in Mac OS X 10.3.9 and earlier, but binary in 10.4 and later.
So, most Mac users are going to be above OS 10.4, which means you can't edit the settings file with a text editor. The only tool that I know of that can do the job is Xcode. So, from what I can see, Mac OS (from 10.4) doesn't give the user a way to edit these plist files by default.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4668
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 from that Hidden Settings page for Mac, it refers to a "Secrets preference pane", which is now a dead link. I did a bit of research, and tried to get an equivalent app to install on my Mac OS VM, but it didn't seem to work out of the box, so I can't offer any 3rd party tool to do the same job.
User avatar
Cholmondely
Archivist
Archivist
Posts: 5028
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: Thu Dec 21, 2023 12:01 am
But what editor is the default plain text editor on MacOS?
TextEdit

There is also something called Script Editor for programming. Too complicated for me.
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
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4668
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 11:59 pm
Do you know where the Addons folder resides on a Mac?
Default location is "~/Library/Application Support/Oolite/AddOns"
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4668
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 »

OK, I found the default way Apple gives you to edit these settings.

Via a command line. Oh, the irony.

Anyway, here's the method:
1. Open "Terminal", which can be done via the Launchpad (I think Terminal is in the "Other" group)
2. Type in this command exactly as shown:

Code: Select all

defaults write org.aegidian.oolite oxz-index-url http://addons.oolite.space/api/1.0/overview
Then press enter, and you're done.
User avatar
hiran
Theorethicist
Posts: 2079
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: Thu Dec 21, 2023 1:17 am
OK, I found the default way Apple gives you to edit these settings.

Via a command line. Oh, the irony.

Anyway, here's the method:
1. Open "Terminal", which can be done via the Launchpad (I think Terminal is in the "Other" group)
2. Type in this command exactly as shown:

Code: Select all

defaults write org.aegidian.oolite oxz-index-url http://addons.oolite.space/api/1.0/overview
Then press enter, and you're done.
I like it, and I updated the wiki page. Hope it contains clear instructions now. :-)
Sunshine - Moonlight - Good Times - Oolite
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 »

I confirm. The wiki looks good.

And yeah. If you don't want to download xcode. Use the defaults command in Terminal.

/et
Post Reply