Jump to content

Import error


Erandur
 Share

Recommended Posts

I'm trying to make a somewhat special mod, something in lines or rubber ducks fighting each other. So I tried using existing units as a template to create my first duck unit, however when I try to view the result, I just get an error.

ERROR: art/meshes/skeletal/base02.dae: Exception caught while parsing a COLLADA document from file.

ERROR: Could not load mesh 'art/meshes/skeletal/base02.dae'

ERROR: CObjectEntry::BuildVariation(): Model art/meshes/skeletal/base02.dae failed to load

Does anybody know what may have been the cause? Does the engine have strict naming requirements for the bones perhaps? I hope not, it could be rpetty hard to give a rubber duck a biped skeleton. :D

Link to comment
Share on other sites

LOL, indeed the game is pretty strict on the bones naming. I believe you need to create a skeleton file if you want something other than a bipedal skeleton. Unfortunately, even though I am the Art Dept Lead, animation is my greatest deficiency. The good thing is that there are other members who can speak more authoritatively on the subject and they should be around shortly.

Link to comment
Share on other sites

Well, I tried adding something to skeleton.xml, but didn't quite help.

In my Collada file, I found

	<visual_scene id="RootNode" name="RootNode">
<node id="Bone001" name="Bone001" type="JOINT">

So I added this to skeleton.xml

  <standard_skeleton title="Duck" id="Duck">
<bone name="Bone001">
</bone>
</standard_skeleton>

But without any success, did I miss something?

Link to comment
Share on other sites

In the skeleton.xml you'll need something like this:

	<standard_skeleton title="Duck" id="Duck"> 
<bone name="Bone001"></bone>
</standard_skeleton>

<skeleton title="Duck" target="Duck">
<identifier>
<root>Duck</root>
</identifier>
<bone name="Duck"><target>Bone001</target></bone>
</skeleton>

Don't use the above, it may not be right, but look again at the link I posted above and notice you need a 'standard_skeleton' and a 'skeleton' tag in the skeleton.xml

Link to comment
Share on other sites

I have this now

  <standard_skeleton title="Duck" id="Duck">
<bone name="Bone001">
</bone>
</standard_skeleton>

<skeleton title="3ds Max duck" target="Duck">
<identifier>
<root>Duck</root>
</identifier>
<bone name="Duck_Bone001">
<target>Bone001</target>
</bone>
</skeleton>

But still no results, re-exported the duck mesh, so that its bone is now called Duck_Bone001, hoping that would perhaps help, but no. :) However, I've noticed that in your collada file there's

<node id="Armature" type="NODE">

Which I don't have, what is that exactly? I just made a single bone in Max to store my animations, never had to give the armature a name. Could I perhaps just add it to the .dae myself? :D

Link to comment
Share on other sites

Collada: http://pastebin.com/zY4zSNKx

Actor: http://pastebin.com/33cKUBT6

Re-exported the duck, so that's the version 3ds max spits out. At least that way I'm sure the mesh is intact, and that I didn't change the wrong things etc. :)

And not sure if that's the actor file you wanted, because there's nothing in it really. And I haven't changed the skeleton file since my last post.

Thank you for helping me!

Link to comment
Share on other sites

You need to call the animation in your actor file. See <animations> tag I've added to your actor below. Make a duplicate of your duck.dae and place it in binaries\data\mods\public\art\animation\test

<?xml version="1.0" encoding="UTF-8"?>

<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="Base">
<mesh>skeletal/duck.dae</mesh>
<texture>skeletal/base.dds</texture>
<animations>
<animation file="test/duck_move.dae" name="Walk" speed="100"/>
</animations>
</variant>
</group>
<material>player_trans.xml</material>
</actor>

If I'm honest I haven't even been able to get a simple Blender animation to work in 0AD since I animated the Iberian Siege Ram a few months ago (I can't even export that animated Ram anymore, it just crashes the game).

Link to comment
Share on other sites

It's alive! It was just autodesk's exporter that was being annoying, I downloaded OpenCollada, and now it does work. :D It must be that it exports the bones differently though, since using it as a static structural mesh worked fine... The same skeleton file but with ColladaMax's file works fine!

Thank you for your help with setting up the skeleton file Pureon!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...