Are OXZ's an improvement ...
Moderators: winston, another_commander
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Are OXZ's an improvement ...
Here's a thing: in the last hour or so, someone downloaded the previous to current version of Trading Assistant. That implies they did not select "update expansions list" before they selected "install expansion pack".
Either a nag screen to "Ensure you have the most up-to-date list of expansions available", or words to that effect, needs to be included, or more simply, the advice on the Oolite.org website to use a different download URL for each new version should say the opposite: use the same download URL if possible.
Either a nag screen to "Ensure you have the most up-to-date list of expansions available", or words to that effect, needs to be included, or more simply, the advice on the Oolite.org website to use a different download URL for each new version should say the opposite: use the same download URL if possible.
-
- ---- E L I T E ----
- Posts: 288
- Joined: Sat May 31, 2014 9:02 pm
- Location: Melbourne, Australia
Re: Are OXZ's an improvement ...
Perhaps when starting the expansion pack manager the install option should be disabled until the list has been updated?Wildeblood wrote:Here's a thing: in the last hour or so, someone downloaded the previous to current version of Trading Assistant. That implies they did not select "update expansions list" before they selected "install expansion pack".
Either a nag screen to "Ensure you have the most up-to-date list of expansions available", or words to that effect, needs to be included, or more simply, the advice on the Oolite.org website to use a different download URL for each new version should say the opposite: use the same download URL if possible.
Allow browsing the list, but if a download is attempted advise need to updating list before installation can take place.
- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]
Re: Are OXZ's an improvement ...
Different download URL stops people downloading a 100Mb expansion only to find out that their list wasn't up to date and it won't install. You can always delete the old version's file.Wildeblood wrote:Either a nag screen to "Ensure you have the most up-to-date list of expansions available", or words to that effect, needs to be included, or more simply, the advice on the Oolite.org website to use a different download URL for each new version should say the opposite: use the same download URL if possible.
The list is already bigger than about half the OXPs available through it.Neelix wrote:Perhaps when starting the expansion pack manager the install option should be disabled until the list has been updated?
It should be easy to add an "N days old" notice for it, though.
Re: Are OXZ's an improvement ...
That's a brilliant solution!It should be easy to add an "N days old" notice for it, though.
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Re: Are OXZ's an improvement ...
How about implementing a check e.g. at startup that gives you the timestamp of the latest version of the list on the server which you can then compare to the timestamp of the downloaded version. When a player then enters the OXZ manager, you could inform him if the list needs an update or not.cim wrote:The list is already bigger than about half the OXPs available through it.Neelix wrote:Perhaps when starting the expansion pack manager the install option should be disabled until the list has been updated?
It should be easy to add an "N days old" notice for it, though.
This would cost you a single request to check at startup which can even be answered by a static response (file generated when updating the list), and a download of the list only on request from the player. Or, you could make it more expensive and precise if you did the check everytime the player entered the OXZ manager.
Re: Are OXZ's an improvement ...
That would be preferable, since it would mean that you could start the game up without needing {1} internet access. Even then it still means you need internet access to remove managed OXZs, which you shouldn't.maik wrote:Or, you could make it more expensive and precise if you did the check everytime the player entered the OXZ manager.
{1} A large startup delay while the network connection times out isn't strictly needing internet access, but it's close enough.
I think in practice it's safe enough to assume that any list >24 hours old is out of date for at least one entry, though whether that matters depends on how many OXZs you have and how much you care about them being up to date.
Re: Are OXZ's an improvement ...
Agreed, though I'm not sure how to automate it.aegidian wrote:OXZ's need to undergo a substantial amount of sanity checking before they should be made available.
Validating the OXP before packaging won't catch everything since the OXZ format is stricter - filenames are case-sensitive even on Windows, manifest is required. Authors wanting to distribute OXZs should probably also use that as their testing format while developing.
Catching missing dependencies is also tricky - if the author happens to have the dependency installed, the files will show up as present.
There certainly is more that can be done with the OXP verifier functions, though.
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Are OXZ's an improvement ...
The current list zips down to 30 kB. I don’t think this is anywhere near large enough to justify using stale data when the player has explicitly entered the OXZ manager screen (modulo normal HTTP caching behaviour).cim wrote:The list is already bigger than about half the OXPs available through it.
It should be easy to add an "N days old" notice for it, though.
The existing OXP verifier already checks case sensitivity. It also has infrastructure for checking if files are not provided by the OXP itself; checking whether they’re provided by declared dependencies shouldn’t be hard. If I was maintaining the verifier today, I’d make not having a manifest a warning for OXPs.Validating the OXP before packaging won't catch everything since the OXZ format is stricter - filenames are case-sensitive even on Windows, manifest is required.
E-mail: [email protected]
Re: Are OXZ's an improvement ...
At the end yes, but not during developing. There are too many programs (at least under Windows) that won't play nicely with a zip file, and continually zipping and unzipping (or using temporary files outside of the OXZ zip) is a recipe for disaster - files getting lost, wrong versions being included and similar issues.cim wrote:Authors wanting to distribute OXZs should probably also use that as their testing format while developing.
OXZs are very good for general distribution and for most users (those who actually want to just use them rather than fiddle with them), but for actual in-progress authoring then the older uncompressed OXP format is your friend.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Are OXZ's an improvement ...
Umm.. no, you can't.. only Maik can delete files that have been uploaded to the wiki.cim wrote:Different download URL stops people downloading a 100Mb expansion only to find out that their list wasn't up to date and it won't install. You can always delete the old version's file.
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
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Are OXZ's an improvement ...
I can only assume you haven't tried cim's OXP/Z build scripts, then.. they make development using OXZ format a breeze. Just edit your files in your project's folder (can be anywhere on your computer), run the script, and a freshly-built OXZ will appear in AddOns. Test, rinse and repeat. Every time the script is run, the old OXZ is removed, and a new one is built on the spot and inserted. It gives you the best of both worlds, with practically no effort required. (it neatly solves all those 'lost' files and wrong version problems, too)Thargoid wrote:At the end yes, but not during developing. There are too many programs (at least under Windows) that won't play nicely with a zip file, and continually zipping and unzipping (or using temporary files outside of the OXZ zip) is a recipe for disaster - files getting lost, wrong versions being included and similar issues.cim wrote:Authors wanting to distribute OXZs should probably also use that as their testing format while developing.
OXZs are very good for general distribution and for most users (those who actually want to just use them rather than fiddle with them), but for actual in-progress authoring then the older uncompressed OXP format is your friend.
Last edited by Diziet Sma on Tue Aug 05, 2014 9:31 am, edited 1 time in total.
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
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Are OXZ's an improvement ...
Maybe I'm misunderstanding you here, but from my own experience, if you manually download an OXZ from the wiki, so long as you place it inParadox wrote:My issues are the inability of the game to recognize the fact that I have an oxp that I downloaded from the wiki. Random Hits Resources is a good example for me as well. I too gave up trying to download them via the game after about 8 minutes. I have a 20 mb connection here in the states, and it only took me about 3-4 minutes from the wiki. Anyways, now of course the game does not acknowledge that I have the necessary resources. They still work in the game obviously, but, surely, something can be done to allow the game to acknowledge oxp's as well as oxz's.
/GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns
the Oolite Expansion Manager will recognise that you have the necessary resources installed.This is due mostly to the fact that the current incarnation of the Expansion Manager reads the "dependency" field in theParadox wrote:Another issue, are oxz's with dependencies, that do not tell you, specifically, what those dependencies are. This is a problem with authoring, I understand, but an issue never the less.
manifest.plist
, which explicitly states which OXZ is required, but it doesn't display that information to the player. The same is true of conflicts. It will tell you there's a clash, but won't tell you which OXZ is the problem. As a workaround, I've now taken to specifically stating any dependency or conflict in the "comments" field, because I know that gets displayed to the player. See the two versions of the DTT Snakecharmer for an example.
Last edited by Diziet Sma on Tue Aug 05, 2014 9:36 am, edited 1 time in total.
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
Re: Are OXZ's an improvement ...
I hope it gets displayed soon - btw, cim, thanks for the color changes!This is due mostly to the fact that the current incarnation of the Expansion Manager reads the dependency field in the manifest.plist, which explicitly states which OXZ is required, but it doesn't display that information to the player
-
- ---- E L I T E ----
- Posts: 288
- Joined: Sat May 31, 2014 9:02 pm
- Location: Melbourne, Australia
Re: Are OXZ's an improvement ...
I have to agree that these scripts make developing with OXZs a breeze, In addition to the testing OXZ that it puts in the Addons folder (which always has a new timestamp so you don't have to hold shift when starting Oolite) it also builds a both an zipped OXP and OXZ in the project folder with the version number in the file name. This means that if you increment your version number in the build script when you release it effectively archives your release versions because the next time you build it leaves the old ones in place.Diziet Sma wrote:I can only assume you haven't tried cim's OXP/Z build scripts, then.. they make development using OXZ format a breeze. Just edit your files in your project's folder (can be anywhere on your computer), run the script, and a freshly-built OXZ will appear in AddOns. Test, rinse and repeat. Every time the script is run, the old OXZ is removed, and a new one is built on the spot and inserted. It gives you the best of both worlds, with practically no effort required. (it neatly solves all those 'lost' files and wrong version problems, too)Thargoid wrote:At the end yes, but not during developing. There are too many programs (at least under Windows) that won't play nicely with a zip file, and continually zipping and unzipping (or using temporary files outside of the OXZ zip) is a recipe for disaster - files getting lost, wrong versions being included and similar issues.cim wrote:Authors wanting to distribute OXZs should probably also use that as their testing format while developing.
OXZs are very good for general distribution and for most users (those who actually want to just use them rather than fiddle with them), but for actual in-progress authoring then the older uncompressed OXP format is your friend.
That being said, being that it's done with shell scripting you would probably need something like cygwin to use them in windows.
- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]
-
- ---- E L I T E ----
- Posts: 607
- Joined: Wed Feb 20, 2013 1:24 am
- Location: Aboard the D.T.T Snake Charmer: My Xanadu
- Contact:
Re: Are OXZ's an improvement ...
Sorry Diz, I should have specified. I downloaded the OXP version of the resources, But the in game manager does not recognize that.Diziet Sma wrote:Paradox wrote:
My issues are the inability of the game to recognize the fact that I have an oxp that I downloaded from the wiki. Random Hits Resources is a good example for me as well. I too gave up trying to download them via the game after about 8 minutes. I have a 20 mb connection here in the states, and it only took me about 3-4 minutes from the wiki. Anyways, now of course the game does not acknowledge that I have the necessary resources. They still work in the game obviously, but, surely, something can be done to allow the game to acknowledge oxp's as well as oxz's.
Maybe I'm misunderstanding you here, but from my own experience, if you manually download an OXZ from the wiki, so long as you place it in /GNUstep/Library/ApplicationSupport/Oolite/ManagedAddOns the Oolite Expansion Manager will recognise that you have the necessary resources installed.