Join also our Discord channel! Click here.

Victor Vran

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Victor Vran

Post by TaylorMouse » Wed Aug 19, 2015 11:59 pm

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.

User avatar
lostprophet
mega-veteran
mega-veteran
Posts: 197
Joined: Wed Apr 07, 2010 7:38 pm
Has thanked: 35 times
Been thanked: 5 times

Re: Victor Vran

Post by lostprophet » Thu Aug 20, 2015 9:02 am

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/
Hungarian translator and member of Indies4indies.com | Previous translations: http://lostprophet.hu

User avatar
TaylorMouse
ultra-veteran
ultra-veteran
Posts: 335
Joined: Mon Sep 26, 2011 12:51 pm
Has thanked: 11 times
Been thanked: 79 times

Re: Victor Vran

Post by TaylorMouse » Thu Aug 20, 2015 11:03 am

Yes that seems to be working thanx !!

T.

spider91
advanced
Posts: 78
Joined: Mon Feb 14, 2011 8:09 am
Has thanked: 18 times
Been thanked: 44 times

Re: Victor Vran

Post by spider91 » Thu Jun 08, 2017 10:59 pm

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

Post Reply