The All-in-One Guide to OXZ Packaging and Distribution

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

Moderators: another_commander, winston

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by cim »

The way Linux software packaging seems to handle this is to have a "Provides" concept.
So you could have:
oxp.author.shipset.addition (provides oxp.author.shipset)
oxp.author.shipset.replace (provides oxp.author.shipset)
oxp.author.extraships (depends on oxp.author.shipset)

This wouldn't be that difficult to code in, I think. The question is "if you install the extraships set on its own, which of addition and replace gets installed automatically if you ask Oolite to install dependencies for you?". I'm currently leaning towards "pick one arbitrarily" for this.

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by Diziet Sma »

cim wrote:The question is "if you install the extraships set on its own, which of addition and replace gets installed automatically if you ask Oolite to install dependencies for you?". I'm currently leaning towards "pick one arbitrarily" for this.
Instead, how about, "ask the person what they want to do"?
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied

User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by Lone_Wolf »

List all choices, setting one as the default (often the first listed one is used as default choice)
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

I am subscribed to the threads for my oxps, if you need my attention just post in them or send a pm.

User avatar
spara
---- E L I T E ----
---- E L I T E ----
Posts: 2560
Joined: Wed Aug 15, 2012 4:19 am
Location: Finland

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by spara »

Here's a method to pass the ownership from one caretaker (CT) to another without bothering cim.

1. The new CT uploads a new version of the OXP into the manager using the same identifier as the old version. At this point there will be two versions of the OXP available.
2. The old CT takes down the old version from the manager.
3. Transfer complete.

User avatar
stranger
Deadly
Deadly
Posts: 198
Joined: Thu Apr 05, 2018 5:31 am
Location: Vladivostok, Russia

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by stranger »

To Diziet Sma

Nice guide!
Just uploaded my first OXZ :D

User avatar
stranger
Deadly
Deadly
Posts: 198
Joined: Thu Apr 05, 2018 5:31 am
Location: Vladivostok, Russia

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by stranger »

Need some advice, gentlemen.

I have some package with 50...75 MB graphical content for example.
What way is preferable:
A. To pack all content in one OXZ to avoid issue "you need to download this pack AND additional resource pack too"
B. To pack core OXZ and resource OXZ separately to avoid re-uploading/re-downloading all 75 MB after every minor change in core OXZ
Random Hits, for example, was single pack, later it was split onto core pack and resource pack, now it is single pack again. So I have no clear answer for best solution.
Any guidelines?

User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 13888
Joined: Sat Jul 04, 2009 9:31 pm
Location: Corke's Drift
Contact:

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by Cody »

stranger wrote:
Fri Feb 08, 2019 11:47 pm
To pack core OXZ and resource OXZ separately to avoid re-uploading/re-downloading all 75 MB after every minor change in core OXZ...
That's probably the best option.
A squid eating dough in a polyethylene bag is fast and bulbous! Got me?

User avatar
stranger
Deadly
Deadly
Posts: 198
Joined: Thu Apr 05, 2018 5:31 am
Location: Vladivostok, Russia

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by stranger »

Thanks, Cody. Me think too separate packs is better solution.

User avatar
phkb
Commodore
Commodore
Posts: 2675
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by phkb »

With many thanks to cim, I am now able to add new users to the Oolite Expansion Pack Manager. Send me a PM and I'll send you back your login details.

User avatar
Milo
---- E L I T E ----
---- E L I T E ----
Posts: 361
Joined: Mon Sep 17, 2018 5:01 pm

Re: The All-in-One Guide to OXZ Packaging and Distribution

Post by Milo »

Thanks very much, cim and phkb!

Post Reply