Exporting Character error

Davina1961

Newbie
Joined
May 17, 2006
Messages
144
Reaction score
0
I'm trying to export a character model and I'm getting this message in the console:

ERROR: ikchain 'rhand' too close to root, no parent hip/shoulder

The way I'm exporting the smd is by importing a decompiled combine soldier and importing his weightmap to my model. This is the only way I have been able to compile a character model without getting those crazy rotation errors.

any help would be greatly apreciated!
 
thought this was the 1 where you should check the "Remove top-level bone of the Character Rig"
although if this is your model (not animations or others) you should check that 1
 
I have the problem with that checked and with it not checked

here is my qc file. I have literally tried everything. I can export and compile with the valve rig but everything goes mental like that and this is the only way ive been able to successfully compile in the past.

$modelname "PLAYER.mdl"
$model "Soldier" "Soldier_reference"

$cdmaterials "models\Soldier_Stripped\"
$hboxset "default"


$hboxset "default"
$hbox 1 "ValveBiped.Bip01_Head1" -1.250 -6.500 -3.190 8.250 3.500 3.310
$hbox 4 "ValveBiped.Bip01_L_UpperArm" 0.000 -2.750 -2.750 12.510 1.750 2.250
$hbox 4 "ValveBiped.Bip01_L_Forearm" 0.000 -2.190 -2.380 13.000 1.810 1.620
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.060 -2.000 -1.500 4.060 1.000 2.500
$hbox 5 "ValveBiped.Bip01_R_UpperArm" 0.000 -3.000 -2.250 12.390 2.000 2.750
$hbox 5 "ValveBiped.Bip01_R_Forearm" -0.500 -2.200 -1.550 12.500 1.800 2.450
$hbox 5 "ValveBiped.Bip01_R_Hand" 0.060 -2.000 -2.500 4.060 1.000 1.500
$hbox 6 "ValveBiped.Bip01_L_Thigh" 0.000 -3.750 -3.250 17.850 3.750 3.250
$hbox 6 "ValveBiped.Bip01_L_Calf" 0.000 -3.510 -3.280 15.640 3.490 2.720
$hbox 6 "ValveBiped.Bip01_L_Foot" -1.070 -2.000 -2.840 5.040 5.000 2.160
$hbox 6 "ValveBiped.Bip01_L_Toe0" -0.500 -3.000 -2.190 2.500 0.000 2.460
$hbox 7 "ValveBiped.Bip01_R_Thigh" 0.000 -3.750 -3.250 17.850 3.750 3.250
$hbox 7 "ValveBiped.Bip01_R_Calf" 0.000 -3.510 -2.820 15.640 3.490 3.180
$hbox 7 "ValveBiped.Bip01_R_Foot" -1.060 -2.010 -2.280 5.050 4.990 2.720
$hbox 7 "ValveBiped.Bip01_R_Toe0" -0.500 -3.000 -2.600 2.500 0.000 2.100
$hbox 3 "ValveBiped.Bip01_Pelvis" -7.500 -5.500 -6.000 7.500 8.500 5.000
$hbox 2 "ValveBiped.Bip01_Spine2" -2.500 -2.500 -7.000 14.500 7.500 7.000

$attachment "eyes" "ValveBiped.Bip01_Head1" 3.83 -4.03 -0.14 rotate 0.00 -80.10 -90.00
$attachment "mouth" "ValveBiped.Bip01_Head1" 1.10 -6.00 -0.18 rotate 0.00 -80.00 -90.00
$attachment "chest" "ValveBiped.Bip01_Spine2" 5.00 4.00 -0.00 rotate 0.00 90.00 90.00
$attachment "forward" "ValveBiped.forward" 0.00 -0.00 0.00 rotate 0.00 0.00 -0.00
$attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" -0.00 -0.00 -0.00 rotate -90.00 -90.00 0.00
$attachment "anim_attachment_LH" "ValveBiped.Anim_Attachment_LH" -0.00 0.00 -0.00 rotate -90.00 -90.00 0.00
$attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" -0.00 0.00 -0.00 rotate -90.00 -90.00 0.00

$includemodel "humans/male_shared.mdl"
$includemodel "humans/male_ss.mdl"
$includemodel "humans/male_gestures.mdl"
$includemodel "humans/male_postures.mdl"

$surfaceprop "flesh"

$eyeposition 0.000 0.000 70.000

$illumposition 0.614 0.000 35.963

$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00

$ikchain rhand ValveBiped.Bip01_R_Hand knee 0.707 0.707 0.000
$ikchain lhand ValveBiped.Bip01_L_Hand knee 0.707 0.707 0.000
$ikchain rfoot ValveBiped.Bip01_R_Foot knee 0.707 -0.707 0.000
$ikchain lfoot ValveBiped.Bip01_L_Foot knee 0.707 -0.707 0.000

$collisionjoints "phymodel.smd" {

$mass 90.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "valvebiped.bip01_pelvis"
$jointmerge "ValveBiped.Bip01_Pelvis" "ValveBiped.Bip01_Spine1"

$jointconstrain "valvebiped.bip01_spine2" x limit -48.00 48.00 0.00
$jointconstrain "valvebiped.bip01_spine2" y limit -25.00 25.00 0.00
$jointconstrain "valvebiped.bip01_spine2" z limit -25.00 50.00 0.00

$jointconstrain "valvebiped.bip01_r_upperarm" x limit -39.00 39.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" y limit -79.00 95.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" z limit -93.00 23.00 0.00

$jointconstrain "valvebiped.bip01_l_upperarm" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" y limit -95.00 84.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" z limit -86.00 26.00 0.00

$jointconstrain "valvebiped.bip01_l_forearm" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" z limit -149.00 4.00 0.00

$jointconstrain "valvebiped.bip01_l_hand" x limit -37.00 37.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" z limit -57.00 59.00 0.00

$jointconstrain "valvebiped.bip01_r_forearm" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" z limit -149.00 4.00 0.00

$jointconstrain "valvebiped.bip01_r_hand" x limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" z limit -57.00 70.00 0.00

$jointconstrain "valvebiped.bip01_r_thigh" x limit -12.00 12.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" y limit -8.00 75.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" z limit -97.00 32.00 0.00

$jointconstrain "valvebiped.bip01_r_calf" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" z limit -12.00 126.00 0.00

$jointconstrain "valvebiped.bip01_head1" x limit -20.00 20.00 0.00
$jointconstrain "valvebiped.bip01_head1" y limit -25.00 25.00 0.00
$jointconstrain "valvebiped.bip01_head1" z limit -13.00 30.00 0.00

$jointconstrain "valvebiped.bip01_l_thigh" x limit -12.00 12.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" y limit -73.00 6.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" z limit -93.00 30.00 0.00

$jointconstrain "valvebiped.bip01_l_calf" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" z limit -8.00 126.00 0.00

$jointconstrain "valvebiped.bip01_l_foot" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" y limit -19.00 19.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" z limit -15.00 35.00 0.00

$jointconstrain "valvebiped.bip01_r_foot" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" y limit -25.00 6.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" z limit -15.00 35.00 0.00
$animatedfriction 1.000 400.000 0.500 0.300 0.000
}
 
hmm I had these kind of errors when I just started modeling for hl2...
I thought it had something to do with the model not with the qc...

I'm also using this values for the IkChain so thats not the problem
the way i export the models is with "Optimize Chains and Compensate" & "Remove Top-Level Bone on Character Rig" checked, file type: Model (.SMD) as it should be.
maybe that do anything for you, else i would suggest to check your model on envelope, weightmaps.
 
Yeah the qc file is exactly the same as one ive used in the past and is all taken from decompiled qc files.

What do lines like $jointconstrain "valvebiped.bip01_spine2" x limit -48.00 48.00 0.00
actually meen? Is this just refering to the skeleton.

The thing thats bugging me is that the model exports perfectly with the valve rig but for those crazy rotations. I will keep trying though prehaps its a problem with importing the weightmap.
 
I'm now trying to export him using the rig (which is different from when you simply click male rig in the valvesource menu) from the xsi file in sourcesdk_content etc... hl2mp / male05. But Im getting errors saying cannot find bone valvebiped etc l toe01. ARGH! This doesnt make sense either. Commenting out any of the hbox lines seems to compile a blank smd also.
 
hmm wait did you tried to decompile 1 of the models of css/hl2 and take the rig out of there and tried ? I always use those since the xsi version gave me errors :eek:

$collisionjoints "phymodel.smd" {

$jointconstrain is a parameter of the $collisionjoints QC command. It is used to set the limit of a named bone's movement relative to its parentbone in a jointed collision model.

Source: http://developer.valvesoftware.com/wiki/$jointconstrain
 
Yeah thats what I'd been trying as the xsi rig is always a diva.

Im also having trouble with a model that I decompiled, But didnt modify anything in the smd. I just changed the include model lines in the qc so It uses a different set of animations.

They compile fine but then lose the texture projection on their face. Its as tough the uvw data is lost and the texure is place with some other projection.

Ive had this happen with every model ive tried it with, Monk, Alyx etc

Have you ever had this happen before?
 
Hmm i never decompiled and recompiled other than css characters...
but I do see texture corruption when I decompiled some of the hl2 characters, but i never recompiled them since I did not want to make use of them.

Textures can be anoying as hell if your not known how they work (like overlaying textures).
you still got this problem "ERROR: ikchain 'rhand' " with the character ?
already tried to comment out some lines? or maybe theres something wrong with your envelope/weightmaps, Hopefully you will find it out if you do tell me, if I will remember something I'll post again.
 
Back
Top