realbasic-games
[Top] [All Lists]

Re: zzlib

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: zzlib
From: Frank Condello <developer at chaoticbox dot com>
Date: Mon, 8 Aug 2005 16:04:11 -0400
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BE0FCD05-3E82-4AFC-BF67-397BDFAFB874 at gmx dot de>
On 8-Aug-05, at 10:37 AM, Nils Raschke wrote:

Hi all,

I'm experimenting with Frank's ZZip Utilities. The test.zip provided with the example program works fine. When I try to make a zip from the mac os x finder the files inside are not accessable (returns an empty string) ...

What program do I have to use to create Zips readable by ZZip?

Archives created in the OS X finder work fine, but there are a couple common errors to watch out for...

First, zipped files don't contain resource forks* so if you're zipping resource-only files (like System 7 SFIL sounds or some types of PICT images) they simply won't work. Second, make sure your directory structure is correct. For example, if you decompress the test archive the folder structure will look like this:

test
-subdir
--text2.txt
-text1.txt

And the example project expects the zip archive structure to look like this:

test.zip
-subdir
--text2.txt
-text1.txt

That makes sense if you think about it, 'cause the archive file simply takes the place of the root directory, but if you just grab that "test" folder and tell the finder to make a new archive, you'll get a zip file that looks like this:

test.zip
-test
--subdir
---text2.txt
--text1.txt

Unfortunately this isn't what the example project is expecting. You need to grab everything inside the "test" folder, zip those up, then name the resulting archive "test.zip" for everything to work. Alternately, you could change the paths in the example project to match the new directory structure, but I have very good reasons for setting things up this way!

* Archives made with OS X do contain resources, but not in a very predictable or usable state.

Frank.
–––––––––––––––––––––––––––––––––
Open Source RB Goodies and Shareware
<http://developer.chaoticbox.com/>
<http://www.chaoticbox.com/>
–––––––––––––––––––––––––––––––––

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • zzlib, Nils Raschke
    • Re: zzlib, Frank Condello <=