Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Zlib compression.....

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
jasmine
VIP member
VIP member
Posts: 77
Joined: Tue May 10, 2005 6:07 am
Been thanked: 1 time

Zlib compression.....

Post by jasmine »

Can anyone tell me why a compressed file, namely .res files in WWE XXI, will not compress back to their original filesize when using Zlib? I've tried compression method 9(which is the best compression), using deflateInit2 with every parameter I can think of(including the newest RLE compression) and even recompiling Zlib.dll. Is there something obvious I'm missing? Surely, if the original file is compressed with Zlib you should be able to get it back to that size after decompression. I've tried different versions of Zlib, too. Any suggestions?
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Post by Dinoguy1000 »

Well, there are a few things to consider: Different compression programs, even compressing using the same method, will often give you different results. Also, were you just decompressing, and then compressing immediately after, or did you edit the decompressed file?
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
jasmine
VIP member
VIP member
Posts: 77
Joined: Tue May 10, 2005 6:07 am
Been thanked: 1 time

Post by jasmine »

Just decompressing and immediately compressing. There is a parameter of Zlib compression I'm just not understanding.
Storm
beginner
Posts: 21
Joined: Sun May 22, 2005 8:32 pm

Post by Storm »

I've noticed some of this when I edit files with MultiEx, the files I'm not editing, when rebuilding the archive, it sometimes gets bigger. I don't really know why it happens or how to fix it in any case. If you find out, please post.

P.S. What programming language are you using? or just command lines?
CSX Modding Team
--Website Coming Soon--
Full-fledged MultiEx Supporter
Mr.Mouse
Site Admin
Posts: 4073
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 450 times
Been thanked: 682 times
Contact:

Post by Mr.Mouse »

Storm wrote:I've noticed some of this when I edit files with MultiEx, the files I'm not editing, when rebuilding the archive, it sometimes gets bigger. I don't really know why it happens or how to fix it in any case. If you find out, please post.

P.S. What programming language are you using? or just command lines?
I think this has something to do with me being an idiot and there being a bug in MultiEx Commander. I have fixed that one though for the next release. :D
Guest

Post by Guest »

Nice to hear! :mrgreen:
User avatar
Dinoguy1000
Site Admin
Posts: 786
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 154 times
Been thanked: 163 times

Post by Dinoguy1000 »

Sorry, that was me... :cry:
Welcome to Xentax!

Rules | Requests | Wiki | Discord

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.
Post Reply