Page 1 of 2

PBZip & PBBuild Updates

Posted: Fri Sep 19, 2003 4:28 pm
by spangly
PBZip
Callbacks now work during compression.
File Dates and times are now stored in archives.

PBBuild2
Fixed that silly "Compile Failed" dialog that appeared even when there was no error.
All of the paths to tools etc are user selectable.
It should work for everyone now that none of the paths are hard coded.

grab them from my site http://spangly.purebasic.org

Posted: Fri Sep 19, 2003 6:25 pm
by aszid
i've been pretty impressed with your PBzip lib, but i would like to request a feature for it ^^

it would be awesome if you could add flags for the compression level, so that when making zip's we can set how packed it will be.

that's the only feature i can think of that is missing from this lib, great work!

Posted: Fri Sep 19, 2003 7:24 pm
by spangly
aszid wrote:i've been pretty impressed with your PBzip lib, but i would like to request a feature for it ^^

it would be awesome if you could add flags for the compression level, so that when making zip's we can set how packed it will be.

that's the only feature i can think of that is missing from this lib, great work!
Thanks for the input :)

The library only supports deflate and store compression methods, which means either compressed or not.
Store is only any good if a file isn't really compressible (png files for instance)

At the moment, deflate compression is set to maximum!
would you really want to be able to have poorer compression :?:

I plan to add flags so that you can choose store, deflate or bzip2.

I am planning support for BZip2 in zip files, which appears to be a new addition to the pkzip standard.

Posted: Fri Sep 19, 2003 11:42 pm
by Jurgen
spangly,

Is it possible to include the path in the zipfile ?

thanks for your time

Jurgen

Posted: Sat Sep 20, 2003 12:48 am
by spangly
Jurgen wrote:spangly,

Is it possible to include the path in the zipfile ?

thanks for your time

Jurgen
Not sure what you mean? Do you want to be able to add a folder to a zip rather than a file? If you give me an example of what you mean I can answer with a bit more clarity.

Posted: Sat Sep 20, 2003 12:04 pm
by Jurgen
Hi,

With winzip there's an option to "save full path info" together with a file.
Something like this.
Name Path ...
-------- -----
test.doc My Documents ....



thanks

Posted: Sat Sep 20, 2003 12:57 pm
by spangly
@Jurgen

You can already store paths with files

To add a file with paths do the following

ZipAddFile("c:\","temp\somefile.txt")

the file "somefile.txt" will be stored in the zip as "temp\somefile.txt" and when extracted the "temp" folder will be created and "somefile.txt" will reside in the "temp" folder.

hope that helps.

Posted: Sat Sep 20, 2003 2:39 pm
by Jurgen
thanks,

now it's clear to me.

Posted: Fri Sep 26, 2003 8:18 am
by Bernard
With PBZip can I create a multi volume file.

I use diskettes to transfert some files and sometimes I need more than 1.

Thanks

Posted: Thu Feb 26, 2004 1:26 am
by TerryHough
Trie to use PBZip, but I must have done something incorrectly.

How should it be installed?

Thanks,
Terry

Posted: Thu Feb 26, 2004 1:36 am
by Dare2
I think just put the PBZip library file into your ....PureBasic\PureLibraries\UserLibraries folder, then shut down and restart your editor.

Posted: Sat Jul 17, 2004 4:31 am
by Karbon
What ever happened to you, Spangly? And what ever happened to PBZip?

Posted: Sat Jul 17, 2004 4:34 am
by RJP Computing
Yes this is such a good library. Please come back

Posted: Sat Jul 17, 2004 4:36 am
by Karbon
He had it hosted on my server (well, it's still there), but it hasn't been updated since September of 2003, so I'm guessing it probably doesn't work all that well with current versions of PB (though I haven't tested it!).

Sent him an email,no reply

Posted: Sat Jul 17, 2004 5:13 am
by Fangbeast
Karbon wrote:He had it hosted on my server (well, it's still there), but it hasn't been updated since September of 2003, so I'm guessing it probably doesn't work all that well with current versions of PB (though I haven't tested it!).
Sent him an email many months ago and no reply. he seems missing in action. His library does not work properly under the current pb, gives me POLINK errors, lots of them.

I'd love for this to be updated too, it's seriously needed since ZIP is widely used all over the world.