|
|
It wasnt the script it was the model.
If you look at the outliner.(One of the window types.)
You can see an object called Plane.
After deleting that the export worked just fine. (Right click that and choose delete.)
I couldnt figure what it was.
Also a question for theli.
Does it matter if the scene has cameras or lamps in it?
Do these affect the export in any way?
I havent tried that and always export without them just in case.
Last edited by Yuichi; 03-20-2010 at 05:02 PM.
Oops, sorry that I didn't post the entire error.
I'm assuming that the mistake is really simple since I'm a noob at this. Also, when using the exporter I'm unsure of what animation file to use?Code:==========================export start======================================= Traceback (most recent call last): File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\k2_ex port.py", line 657, in handle_button_event CreateK2Mesh(mesh_filename.val) File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\k2_ex port.py", line 360, in CreateK2Mesh write_block(file,'mesh',create_mesh_data(mesh,vert,meshindex)) File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\k2_ex port.py", line 116, in create_mesh_data meshdata.write(struct.pack("<B",len(mesh.materials[0].name))) IndexError: list index out of range
Anyways, here's a link to the blend if anyone can assist. Thanks!
http://www.mediafire.com/?jyolmzbjjnu
Last edited by Solidsneak; 03-21-2010 at 12:21 AM.
yeah, it tries to export all objects of type 'Mesh' in current scene + first object of type 'Armature', lamps and cameras should not matter
i'll think i'll add 'export selected only' somewhere in the future :-/
Solidsneak, you need to have material assigned to your meshes
thanks that worked!!
the model was a ground plane i used for rendering, i had it invisible (moved to the second 'layer') while working on the mesh.
still no full success, when i overwrite the .model file in the game, i have the new mesh, but no animations.
i can see the particles and effects moving (e.g. when i attack or taunt), but the mesh doesnt follow...
Interesting...
I dont know what to do about that.
Its the same thing over here when I try it with the model you uploaded.
I hope theli knows more about this![]()
t1ck , triangulate your mesh before exporting... script triangulates automatically but loses vertex groups then.. i'll see if i can fix that in script ...
for now just make sure your meshes dont have quads before exporting
Can anyone separate this into two models? I have no clue how to use blender, plus I tried importing it and it didn't seem to work right (animation looked all screwed up and there was a big box around the whole thing).
savageTurret.zip
It's already divided into multiple meshes I think, just need to save them as separate models so I can make the top rotate.
S2 Games: Dedicated employees serving dedicated gamers. Continuous development. Never-ending improvement.
-----------------------------
BlacRyu, in fact there are more then two .. like .. each leg is a separate mesh
http://dl.dropbox.com/u/4443078/temp/turret_legs.model
http://dl.dropbox.com/u/4443078/temp/turret_gun.model
on a side not: i updated scripts a bit
I cannot for the life of me get exporting to work at all.
Could someone explain to me what could cause this error?
TypeError: Mathutils.DotVecs(): expects (2) vector objects of the same size
Last edited by RocketLLama; 03-30-2010 at 02:53 AM.
RocketLLama , what version of blender are you using?
i have no idea why that line of code fails for you
it would help if you upload (pm it if don't want make it public) your .blend file
Yeah i figured the line of code would matter, but it was super late last night.
Im fairly sure im using version 2.49.
the problem is - while deleting some parts of a mesh you deleted faces but that left some vertices which do not belong to any face anymore...
you can get rid of those orphaned vertices this way:
select mesh, switch to edit mode, select all , deselect vertices with material1 assigned, delete
Can anyone help me to change color of rune model plz? Really raped by blender T___T Or just tell me which steps to do :-s I've tried to change model's color, and when I export, it tells me face has no textures >"< Even when I just import and export, did nothing, I still got this error![]()
What version of hon hod manager works with the retail release of HON now? I used to have mods working before they release the big UI update in beta about a month ago and I want to get them working again since I bought the game.
Read. The. Forums.
Can someone just explain to me how to install these scripts to blender? cause the link u gave leads to Blender's web page, I have no idea where to go next. just pls give me the step to step instructions in using these scripts. that way, it'd be easier. :/
Excuse me, where can i download a s2z Importer for 3ds max or milkshape 3d??