quick question about zlib compression on quickbms

Doubts, help and support about QuickBMS and other game research tools
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

quick question about zlib compression on quickbms

Post by happydance »

can I adjust the level of compression of zblib when importing files back or let quickbms use check the old size of the old file and use all that size on the compression when importing files?

I'm just inquiring if this is possible since on a game it won't accept imported files that are much more smaller and has much 00/padding at the end before the next file and you have to edit the table manually.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: quick question about zlib compression on quickbms

Post by aluigi »

Unfortunately that's not possible, basically you want to brute-force zlib and other deflate libraries (like zopfli) to find a level that gives the same amount of bytes of the original data :D
Probably the problem you have with that game is a checksum because zlib doesn't give problems if the compressed data terminates before the end of the source buffer.
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Re: quick question about zlib compression on quickbms

Post by happydance »

yeah I was thing something like that... if it's not possible can I change just the compression level?

like on zlib just want to compress/inject it back using standard normal compression "78 9C" instead of "78 DA"
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: quick question about zlib compression on quickbms

Post by aluigi »

No, quickbms uses everything at maximum.