Page 1 of 1

How to decompress a new LZS format?

Posted: Sun May 19, 2013 2:57 pm
by zjvlqkd
I used to tool of quickbms but well
and i know my english skill is not good

I was unpacking *.PAC file
*.PAC file was NOT compression
so i writed quickbms code and using code unpacked *pac.file!
used code

Code: Select all

//zjvlqkd
//.PAC file
idstring "add"
goto 0x10
get FILES long
goto 0x20
for i = 0 < FILES
 get offset long
 get size long
 get dummy long
 get dummy long
 get name_offset long
 savepos break
 goto name_offset
 get name string
 goto break
 getdstring null 0xC
 get name1 filename

 string name1 += "_unpacked/" 
 string name1 += name
 log name1 offset size

next i
unpacking file header is LZS
so
I searched LZS decompress tool and get!! some tools...
but..
I'm not decompressd file

I explain know to LZS header of this file
first 8byte is same as all files of this game
next 4byte unknown
next 4byte is offset
next 4byte maybe decompress SIZE?
next 4byte compress SIZE
next 4byte unnown
next 4byte null
and file name

here attach *.pac file and UNPACKING LZS file

Re: How to decompress a new LZS format?

Posted: Sun May 19, 2013 4:27 pm
by chrrox
please post the tools then i might be able to help.

Re: How to decompress a new LZS format?

Posted: Mon May 20, 2013 1:42 am
by zjvlqkd
chrrox wrote:please post the tools then i might be able to help.
Quickbms link:http://aluigi.altervista.org/quickbms.htm

thanks you for your help :-)

Re: How to decompress a new LZS format?

Posted: Mon May 20, 2013 2:38 am
by chrrox
you will have to ask the Chinese guy
viewtopic.php?f=10&t=6474