I've been playing around with trying to get my animations in the game a lot lately, and while the progress has been slow for me, at least I have learned a few things. Just today I decided to try and play the game's animation using Havok's Preview Tool(HPT), and tbh I don't know why I didn't think of this sooner. If you followed my post on how to import Blender models into the game then you probably installed this, regardless here is the link so you can get the tool if you wish https://forums.elementalgame.com/395707.
Now I apologize if this is obvious for some people, but for me it was a discovery since this is the first time I attempt at getting animations into a game and I'm just a beginner in Blender as well.
First thing I noticed is that the Skeleton's don't do anything by themselves. In my example I opened a Peasant's Skeleton just to see what it looked like and it was just the bare skeleton without any movement whatsover so I just closed it. You can find the skeleton in the GFX>HKB>Pedestrian folder, the file name is K_Peasant_Skeleton_01.hkb.
WARNING: Modifying these files could could cause serious issues if you don;t know what you're doing. What I did was just copy the files and throw them in my desktop so if I did anything funny it would just be a copy.
Now that the skeleton was there I decided to go to the GFX>HKB>Animation and noticed there was a "Pedestrian" folder. So checking inside the folder I found several files that corresponded to the actions they do like hammering, conversations, etc. I was like ohhhh these are the actual animations so I opened the Hammering.hkb with HPT and there was nothing at all. I was like hmm weird, so I decided to open the skeleton and the hammering file and boom the skeleton started moving. Then I added F_Peasant_Female_01.hkb and the mesh moved along just like it would in game. Only the texture was missing since I was playing from my desktop!
I then tried adding my Draconian Armature that included my 2 second animation and to my surprise my armature was affected by the Hammering,HKB because it started moving in a funky way, that didnt make sense, but was still affected.
So what did I learn? That you need to export the Mesh, the Armature AND every animation individually into their own separate hkx file then I suppose you add them using XML. Now my problem is that when I import into Softimage the damn thing changes the names of my vertex groups and bones so I'm not sure what to do next. Also I suppose if we make our models animation using an armature just like the ones in game we could use the animations in game.
You can see the names of the bones in the right lower right side of the HPT, maybe renaming our bones to that would allow us to use it. Another thing I noticed is that there are no "bones" in that list, only JNT which I suppose means Joints. Idk how to do joints in blender so that would be another question to the list . Hope this helps someone out there
I am trying to focus on storytelling as I have no idea how to animate beyond the braod philosophic strokes I learned in college. I will save this for winter break.
No, no no no. You must learn now, Now I say!!! (because I'm lazy) This way I can draft you to work for us after you learn stuff hehe j/k
What version of havok is that? Your program looks different from mine, and I can't open skeleton files in mine.
Sorry mate, that's classified information. If you want to be one of the "cool kids" you have to come work for us
LoL, just kidding. I'm not sure what version we're using currently but it's most likely what-ever version they currently have up for download which would be the newest one.
All I get is "wrong tag for packfile" or something like that. So no special options or anything you've selected?
Edit: Got it... downloaded the non-x64 version.
Good stuff man!
Ah glad you figured it out, I hadn't checked these replies yet. Looking forward to seeing if you manage to discover something new, gl!
There are many great features available to you once you register, including:
Sign in or Create Account