Hello,
I need help to extract the game 'GuJianOL' 's files.
Anyone knows how? Thank you all.
GuJianOL extract file .cen
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: GuJianOL extract file .cen
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:
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