Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Havok binary files

Post questions about game models here, or help out others!
SergeantJoe
mega-veteran
mega-veteran
Posts: 242
Joined: Fri Aug 30, 2013 5:39 am
Has thanked: 57 times
Been thanked: 20 times

Re: Havok binary files

Post by SergeantJoe »

shakotay2 wrote:I tried Adria and her walking animation and exported it spline compressed correctly.

Only problem I have is that I didn't manage to export the skeleton and the animation seperately -
they are in one hkx file
But it should be enough right? Wasn't the whole point was to compare compressed vs noncompressed?
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: Havok binary files

Post by shakotay2 »

SergeantJoe wrote:But it should be enough right? Wasn't the whole point was to compare compressed vs noncompressed?
yep, to compare the headers, so that one could fake the header of a SD anim to get it loaded by the Havok Standalone tool.

Up to offset 0x269 there are few different bytes only in the headers of Adria's compr/uncompr anim files (between the strings __types__ and hkClass) but for THG_BRW_STR_Haymaker.hkx for example it's totally different.

So I guess there's little chance to have this hkx anim ever loaded into the standalone tool.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Havok binary files

Post by JohnHudeski »

So I got my lazy ass to work on it this morning
couldnt even open the files
Kept getting a "access Violation reading location 0x00000004"
Not sure if the file is at fault or I am

Code: Select all

    HK_ASSERT2(0x27343435, ac && (ac->m_skeletons.getSize() > 0), "No skeleton loaded"); //this line passes
    m_skeleton = ac->m_skeletons[0];  //This line fails
WTF

How did you guys get the first SMD file?
SergeantJoe
mega-veteran
mega-veteran
Posts: 242
Joined: Fri Aug 30, 2013 5:39 am
Has thanked: 57 times
Been thanked: 20 times

Re: Havok binary files

Post by SergeantJoe »

What do you mean? Could you give some more details?

What is this exactly, what file are you opening?
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Havok binary files

Post by JohnHudeski »

I mean how was anyone able to convert the skeleton into a SMD file?
SergeantJoe
mega-veteran
mega-veteran
Posts: 242
Joined: Fri Aug 30, 2013 5:39 am
Has thanked: 57 times
Been thanked: 20 times

Re: Havok binary files

Post by SergeantJoe »

Only shakotay can do that, although he did it mostly by hand and never explained how.


If you're stuck, just skip the skeleton extraction for now and use the existing one. All these specific anims use the same skeleton anyway.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: Havok binary files

Post by shakotay2 »

SergeantJoe wrote:Only shakotay can do that, although he did it mostly by hand and never explained how.
there are at least 10 people in this forum who can/could do this but noone explained how to do it.
Anyway, it will be part of my skel2smd exporter which will be released sooner or later.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
JohnHudeski
mega-veteran
mega-veteran
Posts: 177
Joined: Wed Mar 02, 2011 10:38 pm
Has thanked: 10 times
Been thanked: 58 times

Re: Havok binary files

Post by JohnHudeski »

I wish the error was more explicit
SergeantJoe
mega-veteran
mega-veteran
Posts: 242
Joined: Fri Aug 30, 2013 5:39 am
Has thanked: 57 times
Been thanked: 20 times

Re: Havok binary files

Post by SergeantJoe »

Just in case, could you quickly detail your previous long-winded method?

I wasn't able to nab the code you posted before it got taken down.
SergeantJoe
mega-veteran
mega-veteran
Posts: 242
Joined: Fri Aug 30, 2013 5:39 am
Has thanked: 57 times
Been thanked: 20 times

Re: Havok binary files

Post by SergeantJoe »

Welp, Hudeski and Bastien are officially gone for good. I've lately been trying this myself again, and looking at this:
Skykila wrote:there is a utility AssetCc2 (hkSDK_Root\Tools\BatchProcess\AssetCc). It can convert any erialized .HKX file to xml .hkx
It seems to be legit, but I can't quite get it working. I tried cutting out the starting data, changing the version number, etc. Nothing worked.
I was using the 2014 build of the tool with 2013 files, so as I went to try the 2013 tool I discovered it is now impossible to get the Havok SDK at all!

What now?

I really don't want to stoop to paying someone money to help but at this rate it seems inevitable. If it will even work.
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: Havok binary files

Post by shakotay2 »

SergeantJoe wrote:Welp, Hudeski and Bastien are officially gone for good.
"officially gone"? What does that mean?
It seems to be legit, but I can't quite get it working.
Same here. I used AssetCc1.exe (Asset Converter Collection) from hk2013_1_0_r1 - SDK on an hkx with the header hk_2013.2.0-r1 and it says:
"Unsupported file format.
Perhaps this file is not a binary or xml packfile or a tagfile."
Same with hk2014_1_0_r1 SDK, and I've never seen an hk_2013.2.0-r1 SDK, iirc (but there was an hk2012_2_0_r1 SDK).
as I went to try the 2013 tool I discovered it is now impossible to get the Havok SDK at all!
My hopes were Havok were gone forever, really! :D but

look here: http://forum.keenswh.com/threads/havok- ... o.7374695/
It says: "it seems Microsoft acquired Havok from Intel" ( ---> it also seems my sig comes true :D)
What now?
Wait for an official offer from MS.

btw: anyone experienced with SDKs and animation may ask himself: what do these guys fool around and don't seem to get a proper solution with a working SDK?
The problem is this: look at the header of hkRig_L4101.hkx (in hk2013_1_0_r1\Demo\Demos\Resources\Animation\HavokGirl) for example with the version tag (before __classnames__) overwritten by FFFF...

It's totally different compared to the BrawlerA hkx we're fooling around with. Its header signature is hk_2013.2.0-r1 and when trying to load it there's this error message:
Util\hkLoader.cpp(87): [0x3BF82A57] Warning: Wrong platform for packfile

(Trying to track down the error in the assembly (yes, no source available for that in the SDK) is not worth wasting my lifetime. [roll] )

(The idea was to replace the header of BrawlerA with a suiting one but I guess that doesn't make much sense since the whole file's structure appears to be different.)

Atm I'm quarreling creating a BrawlerA.hkx from the brawler SMD in this thread:
Brawler_hkx.JPG
It is not loaded by the SDK though having this damned hk_2013.1.0-r1 header.
Now it complains that no skeleton is loaded. (really f... hate it. :roll: )

(ahh, see, I'm reproducing information, that I gave 6 months ago. Sry for that. :cry: )

Reviewing my successful test with Adria (where creation of a compressed havok animation was possible) I've come
to the conclusion that the actual problem must be related to the brawler's bones.

Maybe there's too many of them connected to the root?
You do not have the required permissions to view the files attached to this post.
Last edited by shakotay2 on Mon Jan 11, 2016 10:22 pm, edited 1 time in total.
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
SergeantJoe
mega-veteran
mega-veteran
Posts: 242
Joined: Fri Aug 30, 2013 5:39 am
Has thanked: 57 times
Been thanked: 20 times

Re: Havok binary files

Post by SergeantJoe »

shakotay2 wrote:Maybe there's too many of them connected to the root?
Possibly. You could try just deleting those jiggle ones and reimporting the SMD.
Snaz
beginner
Posts: 31
Joined: Sun Oct 18, 2015 8:46 pm
Has thanked: 7 times
Been thanked: 22 times

Re: Havok binary files

Post by Snaz »

I made this for dark souls hkx files, maybe its applicable:

https://github.com/Danilodum/dark_souls_hkx/releases

Place hkx converter "SSFADF.exe" in root of hkx animation directory, double-click, it will recursively search for all animations (*.hkx except Skeleton.hkx and Skeleton-out.hkx)
User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 4291
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 1151 times
Been thanked: 2244 times

Re: Havok binary files

Post by shakotay2 »

For hkx files with this header (which I was referring to in my last post):

Code: Select all

Offset 0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F
00000 57 E0 E0 57 10 C0 C0 10  00 00 00 00 0B 00 00 00 WààW.ÀÀ.........
00010 08 01 00 01 03 00 00 00  02 00 00 00 00 00 00 00 ................
00020 00 00 00 00 4B 00 00 00  68 6B 5F 32 30 31 33 2E ....K...hk_2013.
00030 32 2E 30 2D 72 31 00 FF  00 00 00 00 FF FF FF FF 2.0-r1.ÿ....ÿÿÿÿ
SSFADF.exe says "bad file"
Tuts: a) Bigchillghost, viewtopic.php?f=29&t=17889
b) Extracting simple models: http://forum.xentax.com/viewtopic.php?f=29&t=10894
"Quoting the whole thing. Would u ever stop this nonsense?"
Snaz
beginner
Posts: 31
Joined: Sun Oct 18, 2015 8:46 pm
Has thanked: 7 times
Been thanked: 22 times

Re: Havok binary files

Post by Snaz »

Oh right, that .exe reads files up to 2012.2, sorry!
Post Reply