Tf2 itemtest can't find weapon_bone

Got problems with your models? Struggling with textures? Get help with your custom assets.

Tf2 itemtest can't find weapon_bone

Postby Zee on Thu Mar 08, 2012 7:13 am

I've been messing around with making tf2 items, hats are easy enough, since it auto skins to bip_head, but for weapon models, you have to skin the weapon_bone to the model. Again, easy enough.

I've been having trouble though, after skinning the model to the weapon_bone (completely covered by the envelopes) , it always shows up as the null in the model viewer. If i auto skin it to the head bone in the beginning of the item test, it works, but obviously, connected to one's head. making me believe I did the "rig" wrong.

I'm using 3ds max, and the skin modifier, using one of the simple models that only has one bone to get used to compiling it. I've imported models before by using qc files, but item test seems to be a much easier way.

If anyone has any idea, what i'm doing wrong, feel free to correct me. Thanks in advance.

edit: seems like I'll need to use a qc file, as item test doesn't work for weapon models apparently. Anyone got an example qc?
Zee
Member
Member
 
Joined: Wed Jul 28, 2010 7:23 am

Re: Tf2 itemtest can't find weapon_bone

Postby EArkham on Thu Mar 08, 2012 5:08 pm

Here's what I used for a weapon I submitted called the Gas Basher. Can't say this is the optimum method, but it works very well and is simple. First thing you have to do is compile the object in itemtest without the qc so it sets up the zip and folder structure with the correct ID. Then you'll use that ID in the qc file with the properly boned version.

Code: Select all
$scale 1

//
// intended final location of weapon
//$modelname "weapons\c_items\c_gasbasher\c_gasbasher.mdl"

//
// location for workshop submission
$modelname "player\items\pyro\<INSERT ID CREATED BY ITEMTEST HERE>\c_gasbasher\c_gasbasher.mdl"

$model "Body" "reference_gasbasher_LOD0.smd"

$upaxis "y"
$hboxset "default"
$surfaceprop "metal"


//
// location of materials for workshop submission
$cdmaterials "\models\player\items\pyro\<INSERT ID CREATED BY ITEMTEST HERE>\c_gasbasher\"
$texturegroup "skins"
{
   { "c_gasbasher.vmt" }
   { "c_gasbasher_b.vmt" }
}


$collisionmodel "reference_gasbasher_LOD0.smd" {
   $automass
}

$illumposition 0 0 4
$sequence idle "idle" fps 0.01

$jigglebone "jiggle1" {
   is_rigid {
      tip_mass 100
      length 20
      angle_constraint 30
   }

   has_base_spring {
      stiffness 100
      damping 1
      left_constraint 0 0
      up_constraint 0 0
      forward_constraint 0 0
   }
}


// LOD here

$lod 18
{
   replacemodel "reference_gasbasher_LOD0.smd" "reference_gasbasher_LOD1.smd"
}
User avatar
EArkham
Regular
Regular
 
Joined: Thu Nov 27, 2008 3:10 pm

Re: Tf2 itemtest can't find weapon_bone

Postby Zee on Sun Mar 11, 2012 8:45 am

Thanks man, I'll give it ago soon.
Zee
Member
Member
 
Joined: Wed Jul 28, 2010 7:23 am

Re: Tf2 itemtest can't find weapon_bone

Postby Zee on Sat Mar 24, 2012 2:44 pm

Sorry for the double post, but just wanted to say it worked like a charm. Thanks a bunch.
If you want to check it out, here's the link.
http://steamcommunity.com/sharedfiles/f ... /?id=18426
Zee
Member
Member
 
Joined: Wed Jul 28, 2010 7:23 am

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users