buzz lightyear of star command PAK file (Dreamcast)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
domingo
Posts: 83
Joined: Fri Aug 19, 2016 11:53 am

buzz lightyear of star command PAK file (Dreamcast)

Post by domingo »

I need to unpack this PAK file with header RNC and if it is possible to support recompression

TITLES.rar


Greetings and thanks in advance
domingo
Posts: 83
Joined: Fri Aug 19, 2016 11:53 am

Re: buzz lightyear of star command PAK file (Dreamcast)

Post by domingo »

I've tried with this script, but the decompressed file is 0 bytes

Code: Select all

# RNC
# script for QuickBMS http://quickbms.aluigi.org

endian big
idstring "RNC"
get VER byte
if VER == 1
    comtype rnc
elif VER == 2
    comtype rnc2
else
    print "Error: unsupported rnc version %VER%"
    cleanexit
endif
get SIZE long
get ZSIZE long
get CRC short
get CRC short
get DUMMY short
savepos OFFSET

get NAME basename
get EXT extension
string NAME p= "%s_dec.%s" NAME EXT
clog NAME OFFSET ZSIZE SIZE
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: buzz lightyear of star command PAK file (Dreamcast)

Post by aluigi »

rnc has been ever a problem but luckily it's enough to use comtype rnc for any rnc file, put the following before the clog instruction:

Code: Select all

math OFFSET = 0
get ZSIZE asize
comtype rnc
domingo
Posts: 83
Joined: Fri Aug 19, 2016 11:53 am

Re: buzz lightyear of star command PAK file (Dreamcast)

Post by domingo »

Thanks Aluigi, it works !!!