Victor Vran *.hpk archives

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Victor Vran *.hpk archives

Post by AlphaTwentyThree »

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!
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Victor Vran *.hpk archives

Post by Ekey »

AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Victor Vran *.hpk archives

Post by AlphaTwentyThree »

Ha, works! :) Thanks for linking! :)
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Victor Vran *.hpk archives

Post by spider91 »

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: Select all

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