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!
Victor Vran *.hpk archives
-
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Victor Vran *.hpk archives
Ha, works! Thanks for linking!
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Victor Vran *.hpk archives
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