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.
quick question about zlib compression on quickbms
-
- Posts: 81
- Joined: Sun Jul 10, 2016 11:07 am
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: quick question about zlib compression on quickbms
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
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.
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.
-
- Posts: 81
- Joined: Sun Jul 10, 2016 11:07 am
Re: quick question about zlib compression on quickbms
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"
like on zlib just want to compress/inject it back using standard normal compression "78 9C" instead of "78 DA"
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: quick question about zlib compression on quickbms
No, quickbms uses everything at maximum.