I need to unpack this PAK file with header RNC and if it is possible to support recompression
Greetings and thanks in advance
buzz lightyear of star command PAK file (Dreamcast)
-
- Posts: 83
- Joined: Fri Aug 19, 2016 11:53 am
-
- Posts: 83
- Joined: Fri Aug 19, 2016 11:53 am
Re: buzz lightyear of star command PAK file (Dreamcast)
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
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: buzz lightyear of star command PAK file (Dreamcast)
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
-
- Posts: 83
- Joined: Fri Aug 19, 2016 11:53 am
Re: buzz lightyear of star command PAK file (Dreamcast)
Thanks Aluigi, it works !!!