Topics: User Forum
Mar 29, 2007 at 8:01 PM
With my model I created, I always get an 'Unhandled KeyNotFoundException' at this line:

animator = new ModelAnimator(this, model);

The dwarf demo worked fine but I'm having trouble with my own model.
Mar 29, 2007 at 11:13 PM
Right now, if the model has too many bones for the hardware, it will throw this unfortunately uninformative exception. The palette size limit is 56 bones.

There could also be other causes if you used an XML file to split the animation or have multiple animations of the same name. I'll be sure to have better error messages in the next release.
Mar 30, 2007 at 8:33 AM
I have only three bones, no xml file. Here's the animation code in th .x file:

AnimationSet AnimationSet0 {
Animation FireAnimation {
{ IK_Button }
AnimationKey {

Animation ReloadAnimation {
{ IK_Trigger }
AnimationKey {

} // End of Animation Set
Mar 30, 2007 at 9:10 AM
Would you mind sending me the model then ( I'll use the debugger and let you know what's going and and see if I can fix it.
Mar 30, 2007 at 10:34 AM
Never mind. I fixed the problem. It was because of multiple root bones for which the exporter didn't create FrameTransformMatrices. I use Blender. I already downloaded the fix the other guy posted, but it didn't work because it just eleminates the root bones -.-
I fixed the exporter :D
Mar 31, 2007 at 12:52 AM
Ah, thanks for letting me know. Glad you fixed it.