Tito Posted August 14 Share Posted August 14 Hi nice people! I have extracted some files from the game Ninja - Shadow of Darkness with a quickbms. and find some .pak files, that seems it compressed. Could someone take a look? thanks in advanced. FRONT.zip Link to comment Share on other sites More sharing options...
ikskoks Posted August 15 Share Posted August 15 Try this: https://github.com/bartlomiejduda/Tools/blob/master/NEW Tools/Ninja Shadow of Darkness/Ninja_Shadow_of_Darkness_PAK_script.bms Data is compressed with LArc LZ5 compression ("LHA_lz5" in quickbms). Link to comment Share on other sites More sharing options...
Tito Posted August 15 Author Share Posted August 15 Thanks for your time! but seems dont work Link to comment Share on other sites More sharing options...
Engineer Rabatini Posted August 15 Engineer Share Posted August 15 (edited) Quote Data is compressed with LArc LZ5 compression ("LHA_lz5" in quickbms). Actually It´s a LZ5 Variant, not larc one. flagbits is processed by shifting it left or right depending on its current value. rd is calculated based on the current src value, where: rd points to dst + 1 adjusted by the scaled src value. len is determined by extracting the lower 4 bits of src and adding 3. The logic performs some operations with rd and len. In this example, it copies data from src to rd and updates src and dst pointers. Edited August 15 by Rabatini Link to comment Share on other sites More sharing options...
Engineer Solution Rabatini Posted August 15 Engineer Solution Share Posted August 15 I’ve created a decompressor and compressor tool (attached). The compressor tool was made in a hurry and might not have the best compression ratio, but it works! LZ5-Ninja-DeCompressor.zip 1 Link to comment Share on other sites More sharing options...
Tito Posted August 15 Author Share Posted August 15 1 hour ago, Rabatini said: I’ve created a decompressor and compressor tool (attached). The compressor tool was made in a hurry and might not have the best compression ratio, but it works! LZ5-Ninja-DeCompressor.zip 155.91 kB · 0 downloads No sucess with ikskoks! But yours, works perfectly!!!! Thank you sooo muchhh. Tried in other paks, and works too! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now