PDA

View Full Version : LZSS Re-compression query


L33THAK0R
13-05-2022, 18:39
Hi all,

thought I'd make a thread for this given its a bit of a broader topic that exists outside of a singular title, does anyone know anything about LZSS re-compression, in essence is it a universal algorithm or could results vary across older/newer versions of the algorithm, when applied to a given sample? Given we have access to open source repos (https://github.com/michaeldipperstein/lzss) for this algorithm, I'm more than willing to try and create an external library for use with xtool, given Razor has kindly put together the documentation to enable such projects, but thought I'd ask around for some per-liminary information before I attempt such a feat, just in case I'm way out of my depth here.

Razor12911
13-05-2022, 21:49
https://fileforums.com/showpost.php?p=496314&postcount=485

[cpk,snappy,rfpk,lzss]
// http://aluigi.altervista.org/papers/quickbms.txt
Encode=quickbms.exe -s "comtype <codec>; clog <fileout> 0 <insize> <outsize>" "" <filein>
Decode=quickbms.exe -s "comtype <codec>_COMPRESS; clog <fileout> 0 <insize> <outsize>" "" <filein>

You can try using lzss from quickbms.exe to see if what you're trying to do works.

L33THAK0R
14-05-2022, 07:25
https://fileforums.com/showpost.php?p=496314&postcount=485

[cpk,snappy,rfpk,lzss]
// http://aluigi.altervista.org/papers/quickbms.txt
Encode=quickbms.exe -s "comtype <codec>; clog <fileout> 0 <insize> <outsize>" "" <filein>
Decode=quickbms.exe -s "comtype <codec>_COMPRESS; clog <fileout> 0 <insize> <outsize>" "" <filein>

You can try using lzss from quickbms.exe to see if what you're trying to do works.

Oy vey, I keep forgetting about your work with QuickBMS under XTool (or vice versa however it works), I'll give this a shot on the next title I look into, thankfully for my current curiosity ("Medal of Honor: Pacific Assault"), its relatively easy to get the title to recognise loose files. :o