• Trouble compiling custom ragdoll
    2 replies, posted
I recently created a ragdoll that uses a custom skeleton. Whenever I try to compile the model, however, I get the error "ERROR: Rotation constraint on bone "Bip01 L Thigh02" which has no parent!!!". I've changed Bip01 L Thigh02 to the root bone, but then I get the error that says "ERROR: Rotation constraint on bone "Bip01" which has no parent!!!" I had used Bip01 as the original root bone. Here's the QC if it helps. [code]$modelname "Groove/model.mdl" $model "model" "model.smd" $cdmaterials "models\Groove\model" // Model uses material "bhead.vmt" // Model uses material "bbody.vmt" $surfaceprop "Metal" $sequence ragdoll "model.smd" ACT_DIERAGDOLL 1 fps 30.00 $collisionjoints "collisionmdl.smd" { $mass 100.0 $inertia 10.00 $damping 0.00 $rotdamping 4.00 $rootbone "bip01" $jointrotdamping "bip01" 0.00 $mass 100.0 $inertia 10.00 $damping 0.00 $rotdamping 4.00 $rootbone "bip01" $jointrotdamping "bip01" 0.00 $jointrotdamping "bip01 spine" 18.00 $jointconstrain "bip01 spine" x limit -60.00 60.00 0.00 $jointconstrain "bip01 spine" y limit -60.00 60.00 0.00 $jointconstrain "bip01 spine" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 spine1" 18.00 $jointconstrain "bip01 spine1" x limit -60.00 60.00 0.00 $jointconstrain "bip01 spine1" y limit -60.00 60.00 0.00 $jointconstrain "bip01 spine1" z limit -60.00 60.00 0.00 $jointrotdamping "bone01 tailbone" 18.00 $jointconstrain "bone01 tailbone" x limit -60.00 60.00 0.00 $jointconstrain "bone01 tailbone" y limit -60.00 60.00 0.00 $jointconstrain "bone01 tailbone" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 head" 18.00 $jointconstrain "bip01 head" x limit -60.00 60.00 0.00 $jointconstrain "bip01 head" y limit -60.00 60.00 0.00 $jointconstrain "bip01 head" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 r arm1" 12.50 $jointconstrain "bip01 r arm1" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r arm1" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r arm1" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 upperarm1" 12.50 $jointconstrain "bip01 upperarm1" x limit -60.00 60.00 0.00 $jointconstrain "bip01 upperarm1" y limit -60.00 60.00 0.00 $jointconstrain "bip01 upperarm1" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 r arm2" 12.50 $jointconstrain "bip01 r arm2" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r arm2" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r arm2" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l arm1" 12.50 $jointconstrain "bip01 l arm1" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l arm1" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l arm1" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l upperarm1" 12.50 $jointconstrain "bip01 l upperarm1" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l upperarm1" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l upperarm1" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l arm2" 12.50 $jointconstrain "bip01 l arm2" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l arm2" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l arm2" z limit -60.00 60.00 0.00 $jointmassbias "valvebiped.bip01_l_hand" 0.60 $jointrotdamping "valvebiped.bip01_l_hand" 8.00 $jointconstrain "valvebiped.bip01_l_hand" x limit -30.00 37.00 0.00 $jointconstrain "valvebiped.bip01_l_hand" y limit -12.00 8.00 0.00 $jointconstrain "valvebiped.bip01_l_hand" z limit -20.00 35.00 0.00 $jointmassbias "valvebiped.bip01_r_hand" 0.60 $jointrotdamping "valvebiped.bip01_r_hand" 8.00 $jointconstrain "valvebiped.bip01_r_hand" x limit -37.00 30.00 0.00 $jointconstrain "valvebiped.bip01_r_hand" y limit -8.00 12.00 0.00 $jointconstrain "valvebiped.bip01_r_hand" z limit -35.00 20.00 0.00 $jointrotdamping "bip01 r thigh02" 12.50 $jointconstrain "bip01 r thigh02" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r thigh02" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r thigh02" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 r thigh01" 12.50 $jointconstrain "bip01 r thigh01" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r thigh01" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r thigh01" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 r calf01" 12.50 $jointconstrain "bip01 r calf01" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r calf01" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r calf01" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 r calf02" 12.50 $jointconstrain "bip01 r calf02" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r calf02" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r calf02" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 r foot" 12.50 $jointconstrain "bip01 r foot" x limit -60.00 60.00 0.00 $jointconstrain "bip01 r foot" y limit -60.00 60.00 0.00 $jointconstrain "bip01 r foot" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l thigh01" 12.50 $jointconstrain "bip01 l thigh01" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l thigh01" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l thigh01" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l thigh02" 12.50 $jointconstrain "bip01 l thigh02" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l thigh02" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l thigh02" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l calf01" 12.50 $jointconstrain "bip01 l calf01" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l calf01" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l calf01" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l calf02" 12.50 $jointconstrain "bip01 l calf02" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l calf02" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l calf02" z limit -60.00 60.00 0.00 $jointrotdamping "bip01 l foot01" 12.50 $jointconstrain "bip01 l foot01" x limit -60.00 60.00 0.00 $jointconstrain "bip01 l foot01" y limit -60.00 60.00 0.00 $jointconstrain "bip01 l foot01" z limit -60.00 60.00 0.00 } [/code]
Make sure the root bone has at least one vertex of the collision model rigged to it, that should fix it.
[QUOTE=Silver Spirit;23930105]Make sure the root bone has at least one vertex of the collision model rigged to it, that should fix it.[/QUOTE] That or make the root bone have phys to move the lower part of the body , never add any phys movements on it though. And remove one of these [code] $mass 100.0 $inertia 10.00 $damping 0.00 $rotdamping 4.00 $rootbone "bip01" $jointrotdamping "bip01" 0.00 $mass 100.0 $inertia 10.00 $damping 0.00 $rotdamping 4.00 $rootbone "bip01" $jointrotdamping "bip01" 0.00 [/code]
Sorry, you need to Log In to post a reply to this thread.