OgreXMLConverter.exe crash when use mdl2mesh

Problems building or running the engine, queries about how to use features etc.
Aeragon
Gnoblar
Posts: 18
Joined: Sun Aug 28, 2005 7:09 pm

OgreXMLConverter.exe crash when use mdl2mesh

Post by Aeragon »

When I'm using mdl2mesh to convert nwn mesh to ogre one, OgreXMLConverter often crash.

Image

Here what is it write on the command windows


XMLSkeletonSerializer: reading XML data from Giant_Spider.skeleton.xml...
XMLSkeletonSerializer: Reading Bones name...
XMLSkeletonSerializer: Reading Hierarchy data...

Anyone know what it the problem and how can I make it work?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

mdl2mesh is probably generating something invalid. Try running the XML through a DTD validator against the DTD in Tools/XmlConverter/docs.

Also try running the XML converter in debug mode and see where it's failing.
Aeragon
Gnoblar
Posts: 18
Joined: Sun Aug 28, 2005 7:09 pm

Post by Aeragon »

I have try the dtd, it said that the xml is valid.

I have try it on debug mode, It cannot found a bone...

XMLSkeletonSerializer: reading XML data from C:\ogreaddons\mdl2mesh\Jaguar.skeleton.xml...
12:54:00: XMLSkeletonSerializer: Reading Bones name...
12:54:00: XMLSkeletonSerializer: Reading Hierarchy data...
12:54:00: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: Skeleton::getBone
Description: Bone named 'NULL ' not found..
File: c:\ogre-win32-v1-0-3p1\ogrenew\ogremain\src\ogreskeleton.cpp
Line: 495
Stack unwinding: <<beginning of stack>>

When I check the value for the name of the bone it say {???}
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

Post a link to the .skeleton.xml please.
Aeragon
Gnoblar
Posts: 18
Joined: Sun Aug 28, 2005 7:09 pm

Post by Aeragon »

Here is the link to the xml file

http://www.megaupload.com/?d=32UMXXK6
User avatar
Borundin
Platinum Sponsor
Platinum Sponsor
Posts: 243
Joined: Fri Oct 03, 2003 5:57 am
Location: Sweden
x 2

Post by Borundin »

I can take a look at it too later tonight. Probably something bad in the file anyway.

[Edit: The original mdl file would be of interest too so I can fix mdl2mesh script. Think you can upload that too please?]
Image : Image
Aeragon
Gnoblar
Posts: 18
Joined: Sun Aug 28, 2005 7:09 pm

Post by Aeragon »

it the giant spider model that come with neverwinter model view.
I can't conver any other of those model too.

http://www.megaupload.com/?d=01IZ3GQP

http://nwn.bioware.com/downloads/viewer.html
User avatar
Injector
Gremlin
Posts: 174
Joined: Wed Jan 21, 2004 2:42 pm
Location: Frankfurt, Germany

Post by Injector »

I removed the line

Code: Select all

        <boneparent bone="Giant_Spider " parent="NULL " />
and it converted just fine. The bone named "NULL" was never defined within the <bones> section, hence the error.

HTH
Aeragon
Gnoblar
Posts: 18
Joined: Sun Aug 28, 2005 7:09 pm

Post by Aeragon »

I try it and it work, but I lose all the animations, is that normal?
User avatar
Borundin
Platinum Sponsor
Platinum Sponsor
Posts: 243
Joined: Fri Oct 03, 2003 5:57 am
Location: Sweden
x 2

Post by Borundin »

Unfortunately Im kind of low on time right now :(
Will get back to this later this week I hope.

Thanks for the links btw.
Image : Image
saetrum
Halfling
Posts: 60
Joined: Fri Oct 24, 2003 6:39 pm
x 1

Post by saetrum »

Did anyone ever figure this out. I noticed that all models without the NULL bone parent work just fine, but as noted any with the NULL bone do not work, and if you remove the NULL bone line, the animations don't work.

So Aeragon, Borundin any luck figuring this out?
Aeragon
Gnoblar
Posts: 18
Joined: Sun Aug 28, 2005 7:09 pm

Post by Aeragon »

No, I'm starting to use ogre so I don't realy understand alot yet. I have found a converter that convert nwn to 3ds. I was thinking of using that and the convert to .mesh, but I havn't try yet