[Solved] Creating OXZ packages on Mac
Moderators: winston, another_commander
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
[Solved] Creating OXZ packages on Mac
Neither the "Compress" action in Finder from the context menu nor the zip command executed in the Terminal seem to build zip files that Oolite likes (renamed to .oxz). It complains about an invalid manifest.plist on the startup screen (btw, the message in latest.log says that the manifest.plist is missing instead of being invalid).
To verify, I downloaded another OXZ, placed it in AddOns, and Oolite did not complain upon startup. Then I unzipped it, zipped it again, renamed to .oxz and Oolite complained.
I also tried with OXZs where I removed all Mac stuff (using ZipCleaner).
What are other OXP authors on Mac doing to create valid OXZ files?
The machine I'm using is on OS X 10.7.5 (1st generation MacBook Air, cannot be upgraded further).
To verify, I downloaded another OXZ, placed it in AddOns, and Oolite did not complain upon startup. Then I unzipped it, zipped it again, renamed to .oxz and Oolite complained.
I also tried with OXZs where I removed all Mac stuff (using ZipCleaner).
What are other OXP authors on Mac doing to create valid OXZ files?
The machine I'm using is on OS X 10.7.5 (1st generation MacBook Air, cannot be upgraded further).
Last edited by maik on Thu Jul 10, 2014 3:44 pm, edited 1 time in total.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Creating OXZ packages on Mac
Just a thought: is there an outer folder in the
.zip
? An OXZ must contain only the OXP's files/folders.I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
Re: Creating OXZ packages on Mac
zip on the terminal should work - assuming similar syntax to the Linux command, you should be able to do it with:
If your GUI zip program zips the directory, rather than just its contents, that will cause problems.
Code: Select all
cd myoxp.oxp
zip -9r myoxp.oxz *
- 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: Creating OXZ packages on Mac
That description sounds very much like your OXZ has a "container" folder, within which the files and folders are located, rather than just the files and folders themselves. In other words, it's as Cody and cim describe above.maik wrote:It complains about an invalid manifest.plist on the startup screen (btw, the message in latest.log says that the manifest.plist is missing instead of being invalid).
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
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Re: Creating OXZ packages on Mac
Thanks for the replies, guys, but no container folder there. Remember, I also tried with a working OXZ to unzip and re-zip and it stopped working.
- 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: Creating OXZ packages on Mac
Problem confirmed on my old MacBook2,1 (also OS X 10.7.5)
<wanders off in search of solution>
<wanders off in search of solution>
Are there any? So far, most published OXZs seem to have come from the Windows/Linux world.maik wrote:What are other OXP authors on Mac doing to create valid OXZ files?
Last edited by Diziet Sma on Wed Jul 09, 2014 5:59 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: Creating OXZ packages on Mac
This worked for me, exactly as written above. Maik, did you give this a shot?cim wrote:zip on the terminal should work - assuming similar syntax to the Linux command, you should be able to do it with:Code: Select all
cd myoxp.oxp zip -9r myoxp.oxz *
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
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Re: Creating OXZ packages on Mac
I did, but will try againDiziet Sma wrote:This worked for me, exactly as written above. Maik, did you give this a shot?cim wrote:zip on the terminal should work - assuming similar syntax to the Linux command, you should be able to do it with:Code: Select all
cd myoxp.oxp zip -9r myoxp.oxz *
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Creating OXZ packages on Mac
I uploaded about a dozen ozx files created on the mac.
In the past, I zipped them from the finder and than ran ZipCleaner on it to remove some mac-specific files.
For the new format, I open the old OXP folder, select the content and run the "archive" command from the finder. Than I use ZipCleaner and as last, I changed the extension to oxz.
Most likely error is that you Zipped the enclosing container that the mac creates when unzipping.
I have Macs running 10.6 and 10.9. I think I used both for my uploads.
In the past, I zipped them from the finder and than ran ZipCleaner on it to remove some mac-specific files.
For the new format, I open the old OXP folder, select the content and run the "archive" command from the finder. Than I use ZipCleaner and as last, I changed the extension to oxz.
Most likely error is that you Zipped the enclosing container that the mac creates when unzipping.
I have Macs running 10.6 and 10.9. I think I used both for my uploads.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- 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: Creating OXZ packages on Mac
Nope.. I was very particular about only zipping the contents. Oolite would not recognise the OXZ. Zipping from a terminal, as in cim's example, however, worked fine.Eric Walch wrote:Most likely error is that you Zipped the enclosing container that the mac creates when unzipping.
I did not, however, run ZipCleaner on it, although that ought not to matter, on the Mac itself, right?
Edit: Ok.. now I'm totally confused.. I did the same thing as before, and this time it worked..
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
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Creating OXZ packages on Mac
In the past I always used a special Zip program to zip the oxp's for distribution that had te option to leave out the Mac specific files. Later on I used the archive function of the Mac itself and than ran ZipCleaner on it to remove the most common Mac specific files that confuse Windows/Linux users.Diziet Sma wrote:I did not, however, run ZipCleaner on it, although that ought not to matter, on the Mac itself, right?
With the new oxz format, Window users will not that often look into the archive, so won't be confused as much by the extra files. So, it won't be a problem when leaving them in.
We could create a script in appletalk when you drop an oxp on it, it will zip's the content and renames the extension into oxz. (Anyone here that is familiar with applescript?)
Or alternatively, change the source of ZipCleaner so that you can drop an oxp on it and than zips it, cleans it and renames it. (ZipCleaner is open source in obj-C with a licence that would allow it.)
UPS-Courier & DeepSpacePirates & others at the box and some older versions
-
- ---- E L I T E ----
- Posts: 288
- Joined: Sat May 31, 2014 9:02 pm
- Location: Melbourne, Australia
Re: Creating OXZ packages on Mac
Are you sure about that? Seems to me there are rather a lot of people interested in the nitty gritty of how things work in the Oolite community. I doubt that many who would bother to look at the contents of an OXP would be put off by the fact that it's now zipped up into a file...Eric Walch wrote:With the new oxz format, Window users will not that often look into the archive, so won't be confused as much by the extra files. So, it won't be a problem when leaving them in.
- Neelix
Talaxian Enterprises: [wiki]Vacuum Pump[/wiki] [wiki]Waypoint Here[/wiki]
- maik
- Wiki Wizard
- Posts: 2028
- Joined: Wed Mar 10, 2010 12:30 pm
- Location: Ljubljana, Slovenia (mainly industrial, feudal, TL12)
Re: Creating OXZ packages on Mac
Eric Walch wrote:Most likely error is that you Zipped the enclosing container that the mac creates when unzipping.
Right on the money. Everything works as designed. Nothing to see here.
- 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: Creating OXZ packages on Mac
(Sorry for laughing.. but earlier on you'd insisted that was just what you hadn't done..)maik wrote:Eric Walch wrote:Most likely error is that you Zipped the enclosing container that the mac creates when unzipping.
Right on the money. Everything works as designed. Nothing to see here.
Good to hear you got it worked out, anyways!
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