ZenHAX
https://zenhax.com/

One line lzma decompressor
https://zenhax.com/viewtopic.php?f=9&t=1827
Page 1 of 1

Author:  aluigi [ Sat Nov 21, 2015 2:54 pm ]
Post subject:  One line lzma decompressor

Just a quick example of a feature of quickbms and, at the same time, some info about some Android games.

The following command can be used to decompress the SC and S3E files of some Android games.
Code:
quickbms -s "comtype lzma_dynamic ; get SIZE asize ; get NAME basename ; clog NAME 0 SIZE SIZE" "" FILE


S3E is a sort of configuration file of the Marmalade framework, it's used in games like Shadow Fight 2 and Gunship Battle.

The SC files instead are used in the Supercell games: Clash of Clans, Hayday and Boom Beach.
It's not clear how are stored the offset and size fields for extracting the data from these archives.

Author:  NIE [ Thu Jan 28, 2021 2:49 pm ]
Post subject:  Re: One line lzma decompressor

But how to repack then the file extracted ? I tried by repack GuickBms but it didn't work and game didn't accept file. 7-zip showed compression method lzma:16 but I don't know what it means.

Author:  aluigi [ Thu Feb 18, 2021 12:01 am ]
Post subject:  Re: One line lzma decompressor

You can use a script like the following for packing the input file:
Code:
comtype lzma_compress
get SIZE asize
clog "new.dat" 0 SIZE SIZE


Since lzma_dynamic automatically finds the correct lzma format, you have to specify the exact one when creating the compressed files.
This is the list of available lzma compressors:

lzma_compress
lzma_86head_compress
lzma_86dec_compress
lzma_86dechead_compress
lzma_efs_compress
lzma_0_compress

Author:  NIE [ Tue Feb 23, 2021 11:12 am ]
Post subject:  Re: One line lzma decompressor

How to use this script ?
In reimport mode or just open quickbms.exe ?

Author:  aluigi [ Sat Feb 27, 2021 10:03 am ]
Post subject:  Re: One line lzma decompressor

Normal mode.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/