Problem with the xml file (XNA 4.0)

Apr 1, 2011 at 12:41 AM
Edited Apr 1, 2011 at 12:41 AM

I'm using the updated version from the other thread and I'm trying  to get the same model and animations to work in my project.


After adding all references and creating everything the same way it's written in the tutorial or copying stuff from the sample, I'm still getting a KeyNotFoundException for the second line:


animator = new ModelAnimator(, model);
idle = new AnimationController(, animator.Animations["idle0"]);


Obviously it fails to recognise the dawrfanimations.xml, since the sample gets the same error if I remove it there, but I already put it into every folder of my project.

Apr 1, 2011 at 10:51 PM

Actually...  i think the 4.0 version doesn`t even use that  dwarfanim.xml file. I renamed it, and it still worked for me. I tried to look for it in the whole solution/project, but i couldnt find anything that uses that file.