• Welcome to Valhalla Legends Archive.
 

Compression types in MPQ files?

Started by MyndFyre, October 23, 2008, 12:59 PM

Previous topic - Next topic

MyndFyre

Does anyone know which algorithms are typically used for MPQ compression?  I'm trying to decide on a starting point.

Stormlib - the library I use for MBNCSUtil and BN#'s MPQ support right now - supports bzip2, huffman (which I can only imagine is generic), PKLib, and zlib, as well as a special .WAV compression encoder.  I'd like to port it to .NET, so that I can more reliably have a cross-platform library and substantially reduce my filesize.  I don't want to use #ziplib as a base because it's GPL, which is incompatible with the license to BN# and MBNCSUtil (which is BSD).

I'd assume Blizzard isn't using ALL of these types of compression in their stuff; does anyone know for sure, though?
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Ringo

iirc, i'm sure I remember reading somwhere, it was bzip.
But when I read this page:
http://www.campaigncreations.org/starcraft/inside_mopaq/chapter2.htm#compression
It say's it's PKWare. (unless, pkware are the authors of bzip)
I'm pretty sure the wav compression is used to decompress wav files after extracting, and compressing wav files user's add to sc maps. (but don't quote me on that one)

xpeh

I played with mpq editors.

On maximum multimedia compression level MPQ compressed game sounds better than Winrar on maximum compression level.

How is it possible?

cokesucker

#3
possibly its being compressed a hell of a lot more? this is like saying "when i pound my sunglasses with a hammer and stuff them into a thimble then glue them back together again they dont look as good as if i fold them up and put them in my pocket" or should this be a lossy vs lossless discussion?

bulletproof tiger

Quote from: cokesucker on January 19, 2009, 08:04 PM
possibly its being compressed a hell of a lot more? this is like saying "when i pound my sunglasses with a hammer and stuff them into a thimble then glue them back together again they dont look as good as if i fold them up and put them in my pocket" or should this be a lossy vs lossless discussion?

gtfo

MrRaza

Quote from: cokesucker on January 19, 2009, 08:04 PM
possibly its being compressed a hell of a lot more? this is like saying "when i pound my sunglasses with a hammer and stuff them into a thimble then glue them back together again they dont look as good as if i fold them up and put them in my pocket" or should this be a lossy vs lossless discussion?

classic.