Page 6 of 11

Re: Alien Isolation (.PAK .BIN)

Posted: Tue Dec 02, 2014 9:01 pm
by erik945
Ok, no problem. Thank you!

Re: Alien Isolation (.PAK .BIN)

Posted: Wed Dec 03, 2014 1:37 am
by volfin
Ok here's a QuickBMS script i want to release, that dumps PAK2 type PAK files. (like ANIMATION.PAK and UI.PAK) These are a different format than the model PAK files.

Code: Select all

##########################
#  Alien: Isolation PAK unpacker
#  Author: Volfin
#  Version: 1.0
########################33
open FDDE PAK 0
endian little

get signature long 0
if signature != 0x324B4150
   print "File is not the correct format (PAK2)"
   cleanexit
endif

get Strs_Length long 0
get Strs_Count long 0
get pointer_size long 0
print "# of entries: %Strs_Count%"
print "pointer size: %pointer_size%"
# create offset to pointers
math Strs_Length + 16
#create offset to Data
xmath Data_ptr "Strs_Length + Strs_Count * pointer_size"

SavePos str_pos 0
print "string_pos: %str_pos%"
print "Data_ptr: %Strs_Length%"
print "Data_pos: %Data_ptr%"

for i = 0 < Strs_Count

    GoTo str_pos
	# read in first string
	get p_name string 0
	# save position
	SavePos str_pos 0
	# jump to pointer data
	GoTo Strs_Length
	#read in pointer
	get D_end long 0
	# save new location
	SavePos Strs_Length 0	
	# handle 16 byte padding
	GoTo Data_ptr
	Padding 4 
	SavePos Data_ptr
	# save data; length is D_end - current location
	xmath size "D_end - Data_ptr"
	log p_name Data_ptr size
	math Data_ptr + size
next i
cleanexit
This let me take a look at the skeleton files, and as I feared they are Havok *.hkx type. So most likely will not be able to create skeletons for the models. (Unless someone knows how to decode Havok 2012.2.0 HKX files).

Re: Alien Isolation (.PAK .BIN)

Posted: Wed Dec 03, 2014 4:41 am
by SergeantJoe
volfin wrote:This let me take a look at the skeleton files, and as I feared they are Havok *.hkx type. So most likely will not be able to create skeletons for the models. (Unless someone knows how to decode Havok 2012.2.0 HKX files).
Shakotay knows how to get bones from Havok 2011 files, he's done it multiple times for Sleeping Dogs before.

The format hardly changed from 2011 to 2013, so I can't imagine that 2012 will be that different. It's worth a try at least.

Re: Alien Isolation (.PAK .BIN)

Posted: Wed Dec 03, 2014 10:24 am
by zaramot
There's no any problem in getting .hkx skeletons to work. I did this for several games like dead space, strider, kuf2 and so on. So, if they are raw, native .hkx files - don't worry :) The only problem is animation, but it's also could be converted to 3ds max importable files.

Re: Alien Isolation (.PAK .BIN)

Posted: Wed Dec 03, 2014 11:02 pm
by SergeantJoe
zaramot wrote:if they are raw, native .hkx files
Problem is, they're always in binary format, and I've heard that it differs from game to game.
I did manage to dig up a few things but nothing ever really happened since absolutely nobody was interested.

I've made a thread on this topic here. It's mostly for Sleeping Dogs havok files but I suppose it can be expanded to include these as well.

Re: Alien Isolation (.PAK .BIN)

Posted: Thu Dec 04, 2014 3:28 am
by volfin
Yeah i've decided for this game to just parse the hkx file directly to get the skeletal data. the format is a pita. But I'm making some progress in mapping it out. It's going to be "just enough" for the skeletons this game uses, as trying to suppport everything HKX supports would be a nightmare.

Re: Alien Isolation (.PAK .BIN)

Posted: Fri Dec 12, 2014 1:02 pm
by cra0

Re: Alien Isolation (.PAK .BIN)

Posted: Fri Dec 12, 2014 7:25 pm
by erik945
Good news!
When planning to release?

Re: Alien Isolation (.PAK .BIN)

Posted: Fri Dec 12, 2014 11:00 pm
by volfin
Well, I'm still working on the skeleton conversion (prototyping done, production code in progress), and as you probably notices from the pictures/Video, many of the models use greyscale textures with separate color data. Cra0 is working on decoding the material files so the coloring can be done properly. So, still a bit of work to do.

Re: Alien Isolation (.PAK .BIN)

Posted: Sat Dec 13, 2014 12:54 pm
by TerryXX
cra0 continues like this you are the best :keke:

Re: Alien Isolation (.PAK .BIN)

Posted: Tue Dec 16, 2014 5:56 am
by volfin
Image

I've finished the HKX to SMD converter. One more step down. :)

Re: Alien Isolation (.PAK .BIN)

Posted: Tue Dec 16, 2014 8:37 am
by erik945
Quickly running.
There is only skin?

Re: Alien Isolation (.PAK .BIN)

Posted: Wed Jan 07, 2015 3:58 pm
by IvoryCutter
Awesome job, guys. Any progress?

Re: Alien Isolation (.PAK .BIN)

Posted: Thu Jan 08, 2015 5:08 am
by cra0
IvoryCutter wrote:Awesome job, guys. Any progress?
Next week should see something

Re: Alien Isolation (.PAK .BIN)

Posted: Sun Jan 18, 2015 8:48 pm
by erik945
cra0 wrote:
IvoryCutter wrote:Awesome job, guys. Any progress?
Next week should see something
What news?