XMLConverter Error with skeleton.xml file

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
buoncuoi
Gnoblar
Posts: 2
Joined: Sat Jan 22, 2022 2:02 pm

XMLConverter Error with skeleton.xml file

Post by buoncuoi »

Hi there.

I have a problem when converting an .skeleton with bone animations
to the skeleton.xml format

When I now try to convert the .skeleton file the converter yells at me:

File convert: https://www.mediafire.com/file/mrqxco4r ... .mesh/file
20:09:35: Creating resource group General
20:09:35: Creating resource group Internal
20:09:35: Creating resource group Autodetect
20:09:35: Registering ResourceManager for type Mesh
20:09:35: Registering ResourceManager for type Material
20:09:35: Registering ResourceManager for type Skeleton
20:09:35: OGRE EXCEPTION(2:InvalidParametersException): Exceeded the maximum number of bones per skeleton. in Skeleton::createBone at ..\..\..\..\OgreMain\src\OgreSkeleton.cpp (line 166)
20:09:35: Unregistering ResourceManager for type Skeleton
20:09:35: Unregistering ResourceManager for type Material
20:09:35: Unregistering ResourceManager for type Mesh
Any help is appreciated.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1814
Joined: Sun Mar 30, 2014 2:51 pm
x 960
Contact:

Re: XMLConverter Error with skeleton.xml file

Post by paroj »

you only attached the mesh. Please also provide the skeleton
buoncuoi
Gnoblar
Posts: 2
Joined: Sat Jan 22, 2022 2:02 pm

Re: XMLConverter Error with skeleton.xml file

Post by buoncuoi »

paroj
OGRE Team Member
OGRE Team Member
Posts: 1814
Joined: Sun Mar 30, 2014 2:51 pm
x 960
Contact:

Re: XMLConverter Error with skeleton.xml file

Post by paroj »

the skeleton contains invalid bone handles like 16407, 9175 which exceed OGRE_MAX_NUM_BONES=256.

As I doubt that someone compiled Ogre to support an insane amount of bones - the file is likely corrupted or we broke the binary skeleton format.

This is the last change made to the skeleton format:
https://github.com/OGRECave/ogre/commit ... 89b60360d6

Hence you might try your luck with a pre Ogre 1.8 XMLConverter.
Post Reply