Attached is an example file, they appear to be DDS files yet will not load in any viewer. If I run the files through Jaeder Naub with zlib detection it generates a raw file. When the raw file is renamed to XXX.dds and viewed, *some* of them are working perfectly. Unfortunately others are coming out corrupted. Does anyone recognize this, "ZMHx" ID string?
Thanks!
The Forum is up for sale: XeNTaX Forum looking for new owner
Zlib compressed, or something more?
Zlib compressed, or something more?
You do not have the required permissions to view the files attached to this post.
- aluigi
- VVIP member

- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 661 times
- Contact:
Re: Zlib compressed, or something more?
try with the following script for QuickBMS:
Code: Select all
get NAME basename
get EXT extension
string NAME += "_unpacked."
string NAME += EXT
idstring ZMH1
get DUMMY long
get FILESIZE long
set OFFSET long 0x24
set MYFILESIZE long 0
append
for
if MYFILESIZE >= FILESIZE
cleanexit
endif
goto OFFSET
get DUMMY long
get SIZE long
get ZSIZE long
savepos OFFSET
clog NAME OFFSET ZSIZE SIZE
math OFFSET += ZSIZE
math MYFILESIZE += SIZE
nextRe: Zlib compressed, or something more?
Bugtest, thank you! Your script works great on the DDS textures, and also TGA files from the archive. I was actually able to expand them using offzip too. The strange part is, it only seems to be working on DDS and TGA files. The other text files, JPG, etc. will not expand properly. I'm guessing it is something very simple, but haven't worked with compressed files enough to spot the problem. I've attached a copy of an .inf file that I am running into this problem with, can you tell what is different about these?
You do not have the required permissions to view the files attached to this post.
- aluigi
- VVIP member

- Posts: 1916
- Joined: Thu Dec 08, 2005 12:26 pm
- Location: www.ZENHAX.com
- Has thanked: 4 times
- Been thanked: 661 times
- Contact:
Re: Zlib compressed, or something more?
the problem is that this file is not compressed with zlib but uses another unknown algorithm (not lzss, lzw, lzo or blast).
tested also with xor and rot13 to see if it resulted in a obfuscated zlib but nothing
tested also with xor and rot13 to see if it resulted in a obfuscated zlib but nothing
Re: Zlib compressed, or something more?
Hmm darn, thanks again for looking into it. This is pretty much the last roadblock I've run into, at least I can get at the graphics assets. Was really hoping to dig around to find skill/item information, but may have to give up on that idea.
Re: Zlib compressed, or something more?
Loculi, can you tell me how you managed to extract the dds file from the data.ifs ?
I see that the file has been built on using blocks of 1024 bytes but I'm having problems figuring out where the x (size or size*1024) is defined.
As far as I can tell there is a header block of 4096 bytes, followed by a block of 1024 bytes specifying 8 files and some values connected to these.
Haven't been able to figure out much of those values yet though.
-Verkho
I see that the file has been built on using blocks of 1024 bytes but I'm having problems figuring out where the x (size or size*1024) is defined.
As far as I can tell there is a header block of 4096 bytes, followed by a block of 1024 bytes specifying 8 files and some values connected to these.
Haven't been able to figure out much of those values yet though.
-Verkho
