ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Oct 21, 2017 9:24 pm

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Sep 21, 2015 6:51 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 608
http://*USE_ANOTHER_FILEHOSTING*/7b8a859 ... ran_hpk.7z
All game files are packed in these kind of archives. They have the identifier "BPUL$" and I can't find a script or tool that can handle these. I'm having problems with the file names, the TOC is ok.
Any help is highly appreciated!


Top
   
PostPosted: Mon Sep 21, 2015 8:53 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
try


Top
   
PostPosted: Mon Sep 21, 2015 10:06 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 608
Ha, works! :) Thanks for linking! :)


Top
   
PostPosted: Thu Jun 08, 2017 9:59 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
New update out and files inside *.hpk now are compressed with lz4, so first unpack *.hpk with hpk-archiver and then use this script on files
Code:
idstring "LZ4 "
comtype lz4
get SIZE long
get CHUNK_SIZE long
get NAME filename
xmath TMP "SIZE % CHUNK_SIZE"
if TMP != 0
   math TMP = 1
else
   math TMP = 0
endif
xmath CHUNKS "(SIZE / CHUNK_SIZE) + TMP"
append
for i = 1 <= CHUNKS
   get OFFSET long
   savepos POS
   if i == CHUNKS
      get ZSIZE asize
   else
      get ZSIZE long
   endif
   math ZSIZE -= OFFSET
   goto POS
   if ZSIZE < CHUNK_SIZE
      clog NAME OFFSET ZSIZE CHUNK_SIZE
   else
      log NAME OFFSET ZSIZE
   endif
next i
append


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