Extracting OXZs to AddOns fails on Win7

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Extracting OXZs to AddOns fails on Win7

Post by Wildeblood »

I cannot extract any OXZs of my own creation using the handy in-game extraction facility. These are created using Windows built-in zip making stuff, not with WinZip or something, so I assume it's a Microsoft "feature" of some kind. :roll:

Code: Select all

Opening log for Oolite development version 1.81.0.6161-141016-4e56de8 (x86-32 test release) under Windows 6.1.7601 Service Pack 1 32-bit at 2014-10-24 15:37:52 +0800.

Code: Select all

16:14:50.913 [gnustep]: 2014-10-24 16:14:50.913 oolite[5040] File NSData.m: 1429. In -[NSData writeToFile:options:error:] Open (../AddOns/oolite.oxp.Wildeblood.AutoCrosshairs-1.1.1.off/Config/auto-crosshairs-on-target.plista03868) failed - The system cannot find the path specified.
16:14:50.913 [oxz.manager.error]: Sub file Config/auto-crosshairs-on-target.plist could not be created
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Extracting OXZs to AddOns fails on Win7

Post by cim »

Wildeblood wrote:
I cannot extract any OXZs of my own creation
Does this imply that you can extract other people's OXZs, or that you haven't tried extracting them?
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Extracting OXZs to AddOns fails on Win7

Post by Wildeblood »

cim wrote:
Wildeblood wrote:
I cannot extract any OXZs of my own creation
Does this imply that you can extract other people's OXZs, or that you haven't tried extracting them?
The first case. Extraction is causing no problem, even with very large OXZs. But not mine, even though they've been uploaded and downloaded in game, not just dropped in, and are functioning.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Extracting OXZs to AddOns fails on Win7

Post by Wildeblood »

I'm trying to extract on a windows 7 machine (my new win 8 machine developed a fault after just 6 weeks). I cannot extract OXZs made with either windows 7 or windows 8.

In the example above - Auto Crosshairs - it extracted the manifest.plist but didn't get any files from inside Config. In most cases I get nothing at all.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Extracting OXZs to AddOns fails on Win7

Post by Diziet Sma »

Sounds like a Windoze "feature" to me.. I'd imagine the majority of OXZs are made using WinZip, WinRar, or the various Linux/Mac compression programs, all of which know how to do things right.. something Microsoft can very seldom be accused of doing.
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
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Extracting OXZs to AddOns fails on Win7

Post by cim »

Found it. This is the index of the Auto-Crosshairs OXZ

Code: Select all

Archive:  AutoCrosshairs_1.1.1.oxz
  Length      Date    Time    Name
---------  ---------- -----   ----
     4032  2014-10-06 14:06   Auto Crosshairs READ ME.txt
      747  2014-10-06 14:07   manifest.plist
      826  2014-09-29 16:47   Config/auto-crosshairs-on-target.plist
      375  2014-09-29 16:47   Config/equipment.plist
     6871  2014-10-05 15:10   Config/script.js
     5812  2014-10-02 10:31   Config/Version 1.0.77 script.js
     6596  2014-10-03 11:17   Config/Version 1.1 script.js
---------                     -------
    25259                     7 files
The thing which is crucially missing is that it contains files to be placed in the Config/ folder but doesn't actually contain the Config folder itself. I'd assumed that this was a requirement for ZIP files... if it's not, it's not too much extra work to code Oolite to create the sub-folders anyway. Added to the list, and thanks for the report.
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: Extracting OXZs to AddOns fails on Win7

Post by Tricky »

So, not only do we have to inform new users to NOT use Notepad but now we have tell them not use the in-built zipper in Windows Explorer. :roll:
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Extracting OXZs to AddOns fails on Win7

Post by cim »

Tricky wrote:
So, not only do we have to inform new users to NOT use Notepad but now we have tell them not use the in-built zipper in Windows Explorer. :roll:
No, it'll be fixed before the feature where it makes a difference is in a release version (and they work just fine in-game).

EDIT: should work properly in tonight's nightly build.
Post Reply