ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Oct 17, 2018 1:49 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Tue Jul 17, 2018 7:06 pm 

Joined: Fri Aug 19, 2016 11:53 am
Posts: 55
I need to unpack this PAK file with header RNC and if it is possible to support recompression

Attachment:
TITLES.rar [150.39 KiB]
Downloaded 13 times


Greetings and thanks in advance


Top
   
PostPosted: Sat Jul 21, 2018 12:17 am 

Joined: Fri Aug 19, 2016 11:53 am
Posts: 55
I've tried with this script, but the decompressed file is 0 bytes

Code:
# 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


Top
   
PostPosted: Sat Jul 21, 2018 6:03 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
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:
math OFFSET = 0
get ZSIZE asize
comtype rnc


Top
   
PostPosted: Sat Jul 21, 2018 1:40 pm 

Joined: Fri Aug 19, 2016 11:53 am
Posts: 55
Thanks Aluigi, it works !!!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited