• Welcome to Valhalla Legends Archive.
 

zlib.net compression and decompression

Started by iNsaNe, February 23, 2009, 11:40 PM

Previous topic - Next topic

iNsaNe

Hey guys I'm trying to make a replay program, I'm just getting started. I've been able to locate the blocks of data but I don't know how to decompress them. I'm using C# and zlib.net

http://www.componentace.com/zlib_.NET.htm#overview

i really really really will appreciate any help because I haven't been able to find any good documentation

MyndFyre

Quote from: iNsaNe on February 23, 2009, 11:40 PM
Hey guys I'm trying to make a replay program, I'm just getting started. I've been able to locate the blocks of data but I don't know how to decompress them. I'm using C# and zlib.net

http://www.componentace.com/zlib_.NET.htm#overview

i really really really will appreciate any help because I haven't been able to find any good documentation
A replay program for....?
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.

iNsaNe

#2
haha after reading what i first posted i now realize how extremely vague i was in asking the question.

by replay program i meant warcraft III. i consider this whole forum a Battle.net forum. sorry  :P

I solved it. I've already managed to extract player names out of it.. Ive decided to use SharpZipLib instead of ZLIB, I think it's much easier to use... I figured out how to decompress data in 10 minutes, and haven't been able to figure out ZLIB for days (maybe im stupid)


MyndFyre

Not necessarily.  It just depends what you need.  When I was working on my WoW client I was having trouble with some files and it turned out that the problem was with using #ziplib, because it threw an exception at the end of the file, whereas zlib returns what you're reading but signals an error with an error code.  I was able to ignore the error code and it worked correctly.
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.