Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AnonBaiter
Posts: 1125 Joined: Tue Feb 02, 2016 2:35 am
Post
by AnonBaiter » Sat Oct 29, 2016 7:22 pm
So I'm trying to write a script based on the .clz compressed files used on the oh-so-infamous Core Design game.
Code: Select all
comtype zlib_noerror get EXT extension if EXT == "CLZ" get SIZE asize get ZSIZE long set OFFSET long 0x4 math SIZE - OFFSET putarray 0 i OFFSET putarray 1 i SIZE get NAME basename if ZSIZE == 0 log NAME OFFSET SIZE else log NAME OFFSET ZSIZE SIZE endif else break endif
Here is a sample.
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Sat Oct 29, 2016 8:03 pm
AnonBaiter
Posts: 1125 Joined: Tue Feb 02, 2016 2:35 am
Post
by AnonBaiter » Sat Oct 29, 2016 8:47 pm
Ah, I probably forgot about this .CLZ file too, this time using a different format.
PARIS1.GMX.CLZ
aluigi
Site Admin
Posts: 12984 Joined: Wed Jul 30, 2014 9:32 pm
Post
by aluigi » Sat Oct 29, 2016 9:38 pm
ok, I have handled clz separately now and added support for gmx. Script 0.2.1