GuJianOL extract file .cen

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
anthienvu
Posts: 1
Joined: Wed Jun 23, 2021 4:01 pm

GuJianOL extract file .cen

Post by anthienvu »

Hello,
I need help to extract the game 'GuJianOL' 's files.
Anyone knows how? Thank you all.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: GuJianOL extract file .cen

Post by aluigi »

The format has something in common with the one used New Sword of Legends Online (new_sword_legends.bms).
The following script should be able to decompress all the files:

Code: Select all

comtype lzma
get SIZE longlong
get ZERO longlong
get CEN_SIZE longlong
xmath CHUNKS "SIZE / 0x10000"
if            SIZE % 0x10000
    math CHUNKS + 1
endif

savepos OFFSET
xmath OFFSET "OFFSET + (CHUNKS * 12)"

get NAME basename
log NAME 0 0
append
for x = 0 < CHUNKS
    get CHUNK_SIZE long
    get SOME_CRC long
    get CHUNK_ZSIZE long
    clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE
    math OFFSET + CHUNK_ZSIZE
next x