Page 1 of 1

Victor Vran

Posted: Wed Aug 19, 2015 11:59 pm
by TaylorMouse
Hi guys, installed Victor Vran today, not all that bad for a game, wanted to check on the models, unfortunatly it is all packed into .hpk files.

And since I have no idea how to unpack these, I was wandering if some genius would be able to help me with it plz ?

Here is a small sample

T.

Re: Victor Vran

Posted: Thu Aug 20, 2015 9:02 am
by lostprophet
TaylorMouse wrote:Hi guys, installed Victor Vran today, not all that bad for a game, wanted to check on the models, unfortunatly it is all packed into .hpk files.

And since I have no idea how to unpack these, I was wandering if some genius would be able to help me with it plz ?

Here is a small sample

T.
Since the engine it's based on is the same as Tropico 5, you can use this to unpack and repack .hpk archives (tested):
http://www.techpowerup.com/forums/threa ... er.113705/

Re: Victor Vran

Posted: Thu Aug 20, 2015 11:03 am
by TaylorMouse
Yes that seems to be working thanx !!

T.

Re: Victor Vran

Posted: Thu Jun 08, 2017 10:59 pm
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