[Implemented] Packer command support of ZIP compression
- Michael Vogel
- Addict
- Posts: 2798
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Zip Lib
when implementing Zip compatible functions, please add the "missing" function which extracts a file from a packed file without the indirection with unpacking to the memory...
Thanks,
Michael
Thanks,
Michael
packer module support
Hi Fred,
Just curious as to where this is on the ever-growing PB to-do list?
Just curious as to where this is on the ever-growing PB to-do list?

-
- PureBasic Expert
- Posts: 2812
- Joined: Fri Apr 25, 2003 4:51 pm
- Location: Portugal, Lisbon
- Contact:
Re: packer module support
BottomUSCode wrote:Hi Fred,
Just curious as to where this is on the ever-growing PB to-do list?

was it on the list? wow... 

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: packer module support
That's what I was afraid of!!!Num3 wrote:...Bottom

Packer plug-in architecture and ZIP compression support
Maybe for 4.30???
(Packer library plug-in architecture and ZIP compression support)
One major advantage of a compression algorithm like ZIP vs. JCalG1 is that it's pretty much guaranteed that you will be able to unpack any old files using ZIP maybe even 10yrs from now, it's so widespread and widely used. JCalG1 on the other hand isn't anywhere near as ubiquitous as ZIP...

One major advantage of a compression algorithm like ZIP vs. JCalG1 is that it's pretty much guaranteed that you will be able to unpack any old files using ZIP maybe even 10yrs from now, it's so widespread and widely used. JCalG1 on the other hand isn't anywhere near as ubiquitous as ZIP...
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
packer module support
Hopefully this will come as a last minute addition to 4.60. I have a program on the PC I want to convert to OSX and this is one of the major things holding it up. 
I really need jcalg1 pack and unpack on osx...

I really need jcalg1 pack and unpack on osx...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: Packer command support of ZIP compression algorithm ?
globally, a general lib to unpack archives file would be a great addition to PB.
(and to unpack them in memory too ^^)
(and to unpack them in memory too ^^)
_________________________________________________
My Website : CeriseCode (Warning : perpetual changes & not completed
)
My Website : CeriseCode (Warning : perpetual changes & not completed

Re: packer module support
Just switch to ZLib, it's included in the PB package for all OS's: http://www.purebasic.fr/english/viewtop ... 4&start=14DoubleDutch wrote:Hopefully this will come as a last minute addition to 4.60. I have a program on the PC I want to convert to OSX and this is one of the major things holding it up.
I really need jcalg1 pack and unpack on osx...
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Packer command support of ZIP compression algorithm ?
I've thought of doing this - it's just compatibility with existing files though...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: Packer command support of ZIP compression algorithm ?
I was not aware (or I forgot) about the OS-incompatibility of the packer functions... which I have been using lately.
But the ZLib libraries for all 3 OS are already included with PB? What are they normally used for? (Images?)
But the ZLib libraries for all 3 OS are already included with PB? What are they normally used for? (Images?)
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Re: Packer command support of ZIP compression algorithm ?
Ideally the original type of packing from the x86 version would be available to all versions.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
Re: Packer command support of ZIP compression algorithm ?
You'll see earlier in the thread that Fred mentioned a modular approach, probably doing like they did with Image, Sound and Database plugins. E.g. Use...()DoubleDutch wrote:Ideally the original type of packing from the x86 version would be available to all versions.
2011, we still don't have it!Berikco wrote:(2006) Will be included in 2010

Re: Packer command support of ZIP compression algorithm ?
It's for PNG decoding and encoding.kenmo wrote: But the ZLib libraries for all 3 OS are already included with PB? What are they normally used for? (Images?)
Thats very unlikely to happen. Problem is that JCalG1 lib is only for 32bit Windows. And because the compressor is very large and completly written in 32bit x86 ASM it a huge lot of work to port it over. I dont think they will do that.DoubleDutch wrote:Ideally the original type of packing from the x86 version would be available to all versions.
I did ported the decompressor to 64bit x86 and made a optimized version for 32bit. Should work on Linux and MacOS (only x86, no PPC).
But porting the compressor is a whole other story.
Re: Packer command support of ZIP compression algorithm ?
Add LZMA (SDK = LZMA Utils) / LZMA2 (SDK = XZ Utils) instead.
It's free and cross platform and the license would allow integrating it as a library
It's free and cross platform and the license would allow integrating it as a library