Originally Posted by
warman222
I'll get to it. It's actually easier in many ways, but trickier in one. Most of the steps are the same except you don't have to rig it to anything! It can be attached to one of the weapons bones in TWeak. I would add it to the Max project file of the shield example, since that one doesn't have any bones in it. The one part where it's trickier is the position. I'm still trying to figure out how to do this efficiently myself. You have to make sure that the weapon model is in the right position in Max so when you see it in game it's in the soldier's hand. However there's a problem with this. Weapons are basically positioned at the feet in TWeak and such, so you have to mimic a position of an existing sword model so it comes out right. This isn't exactly hard, it just involves a lot of trial and error.
I still am not able to get weapon importing to work, although I have managed helmets, crests and shields.
Following your guidelines by importing the single M&B lod sword model into the shield 3dsmax file CA gave us (then deleting the shield model), stopping after adding the skin (but not any bones) prompts me when I try and export it saying "Problems were found in your max file. If problems were found with a weighted mesh, it is likely some verts have zero weights or have not been applied to a valid bone."
This is despite renaming the custom attributes rigid_material to 'default', the same as the boneless crests. The only way I can get the model to import is to rig it to weapon_bone 1 or 2 in 3dsmax, which seems to make it float arbitrarily outside of the grip of the soldier.
Without the skin, I am able to export the model, but when I try and run it in BoB:
Code:
Texture folder: variantmeshes/_variantmodels/man/weapons/tex
CAS Node Mapping...
<index>:<name> ( <cas parent>, <remapped parent> )
0:Scene Root ( -1,-1)
1:croc_weapon_sword_counterpoint_german_silver_lod1 ( 0,-1)
Sorted Node Mapping...
Wrong skeleton type, bone name mismatch or missing bones in CS2 file!
Missing/misnamed bone: bn_jaw
Missing/misnamed bone: bn_left_up_eyelid
Missing/misnamed bone: bn_lefteye
Missing/misnamed bone: bn_right_up_eyelid
Missing/misnamed bone: bn_righteye
Missing/misnamed bone: bn_weapon_01
Missing/misnamed bone: bn_weapon_02
Missing/misnamed bone: bn_weapon_03
Missing/misnamed bone: bn_weapon_04
Missing/misnamed bone: bn_weapon_05
Missing/misnamed bone: bn_eyebrows
Missing/misnamed bone: bn_head
Missing/misnamed bone: bn_hips
Missing/misnamed bone: bn_leftarm
Missing/misnamed bone: bn_leftarmroll
Missing/misnamed bone: bn_leftfoot
Missing/misnamed bone: bn_leftforearm
Missing/misnamed bone: bn_leftforearmroll
Missing/misnamed bone: bn_lefthand
Missing/misnamed bone: bn_lefthandindex1
Missing/misnamed bone: bn_lefthandindex2
Missing/misnamed bone: bn_lefthandring1
Missing/misnamed bone: bn_lefthandring2
Missing/misnamed bone: bn_lefthandthumb1
Missing/misnamed bone: bn_lefthandthumb2
Missing/misnamed bone: bn_leftleg
Missing/misnamed bone: bn_leftshoulder
Missing/misnamed bone: bn_lefttoebase
Missing/misnamed bone: bn_leftupleg
Missing/misnamed bone: bn_neck
Missing/misnamed bone: bn_neck1
Missing/misnamed bone: bn_rightarm
Missing/misnamed bone: bn_rightarmroll
Missing/misnamed bone: bn_rightfoot
Missing/misnamed bone: bn_rightforearm
Missing/misnamed bone: bn_rightforearmroll
Missing/misnamed bone: bn_righthand
Missing/misnamed bone: bn_righthandindex1
Missing/misnamed bone: bn_righthandindex2
Missing/misnamed bone: bn_righthandring1
Missing/misnamed bone: bn_righthandring2
Missing/misnamed bone: bn_righthandthumb1
Missing/misnamed bone: bn_righthandthumb2
Missing/misnamed bone: bn_rightleg
Missing/misnamed bone: bn_rightshoulder
Missing/misnamed bone: bn_righttoebase
Missing/misnamed bone: bn_rightupleg
Missing/misnamed bone: bn_spine
Missing/misnamed bone: bn_spine1
Missing/misnamed bone: bn_spine2
Unable to locate bone in bone table
Failed.
=====================================
Duration: 44 msec(s)
There's no bones to speak of in the 3dsmax file (if I try and add bones, none show up).
Any ideas what could be going wrong? Seems as though I -have to export it with a bone to the weapon. One thought I have is maybe I accidentally exported the obj from 3dsmax, so I am going to try and 'start over' to see if that fixes it.
Edit: Fresh import gives the same issue.