• Bogus bone index
    5 replies, posted
Hello, so I've been trying to port and compile this model from They Hunger into a GMod playermodel, but it refuses to compile and drops this: [code] Compiling with Crowbar 0.34.0.0: "I:\THEYPLAYERS\dave\dave.qc" ... Compiling ".\dave.qc" ... qdir: "i:\theyplayers\dave\" gamedir: "i:\Steam\steamapps\common\Half-Life 2\hl2\" g_path: "dave.qc" Building binary model files... Working on "dave.qc" SMD MODEL dave.smd ERROR: bogus bone index 1406 dave.smd : 30 -8.658300 5.150000 61.516201 -0.402451 0.394329 0.826159 0.035200 0.910200 ERROR: Aborted Processing on 'hunger/player/dave.mdl' WARNING: Leaking 1 elements ... Compiling ".\dave.qc" finished. Check above for any errors. ... Compiling with Crowbar 0.34.0.0: "I:\THEYPLAYERS\dave\dave.qc" finished. [/code] I searched for help almost 3 hours, but just find nothing... The skeleton is rigged to ValveBiped, but using this very same skeleton for other They Hunger playermodel meshes, it compiles fine. I'm not sure what's the problem here. Source files: [url]http://download844.mediafire.com/am7ny858v2sg/ptytmigr0w1749k/dave.zip[/url] I would be very appreciated if someone helped me. Thanks.
It's trying to reference bone #30, but you only have 26 bones total. I have no clue why it would randomly conjure nonexistent bones like that. Try re-exporting the SMD.
[QUOTE=SergerantJoe;50634758]It's trying to reference bone #30, but you only have 26 bones total. I have no clue why it would randomly conjure nonexistent bones like that. Try re-exporting the SMD.[/QUOTE] -snip-. Seems like I can't even move its arm properly, only skeleton: [url]http://prntscr.com/bnz7ll[/url] (I'm sorry if I'm really bad at this) edit: re-exporting smd from milkshape 3d produces the same results.
What does your .qc look like?
[QUOTE=StealthC;50635992]What does your .qc look like?[/QUOTE] [code] $ModelName "hunger/player/dave.mdl" $BodyGroup "studio" { studio "dave.smd" } $SurfaceProp "flesh" $Contents "solid" $EyePosition 0 0 72 $MaxEyeDeflection 90 $CDMaterials "models\theyhunger\player\dave\" $Attachment "eyes" "ValveBiped.Bip01_Head1" 3.34 -5.28 0 rotate 0 -80.1 -90 $Attachment "Center" "ValveBiped.Bip01_Spine1" -6.2 2.09 0 rotate 0 96.62 90 $Attachment "Chest" "ValveBiped.Bip01_Spine4" -2.7 3.88 0 rotate 0 79.75 90 $Attachment "LHand" "ValveBiped.Bip01_L_Hand" 3 0 0 rotate 0 0 0 $Attachment "RHand" "ValveBiped.Bip01_R_Hand" 3 0 0 rotate 0 0 0 $Attachment "zipline" "ValveBiped.Bip01_Spine4" 2 -2 0 rotate 0 -17 0 $Attachment "manhack" "ValveBiped.Bip01_Spine" 18 -6 3 rotate -25 50 0 $Attachment "forward" "ValveBiped.forward" 0 0 0 rotate 0 0 0 $Attachment "anim_attachment_RH" "ValveBiped.Anim_Attachment_RH" 0.8 0 -2 rotate -90 -90 0 $Attachment "anim_attachment_LH" "ValveBiped.Anim_Attachment_LH" 1.5 0 -1.5 rotate -90 -90 0 $Attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" 0 0 0 rotate -90 -90 0 $Attachment "baton" "ValveBiped.baton_parent" 0 0 0 rotate 0 0 0 $CBox 0 0 0 0 0 0 $BBox -7.844 -36.432 -2.693 8.112 36.686 72.958 $HBoxSet "default" $HBox 1 "ValveBiped.Bip01_Head1" -3.5 -7.71 -3.85 7.5 5.71 3.96 "" $HBox 4 "ValveBiped.Bip01_L_UpperArm" 0 -3.37 -3.7 12.51 3.4 2.41 "" $HBox 4 "ValveBiped.Bip01_L_Forearm" -0.9 -3.49 -3.17 9.49 3.1 2.41 "" $HBox 4 "ValveBiped.Bip01_L_Hand" -1.11 -1.89 -2.38 5.72 1.46 2.34 "" $HBox 5 "ValveBiped.Bip01_R_UpperArm" 0 -3.37 -2.37 12.39 3.41 3.8 "" $HBox 5 "ValveBiped.Bip01_R_Forearm" -0.99 -3.5 -2.37 9.33 3.1 3.27 "" $HBox 5 "ValveBiped.Bip01_R_Hand" -1.19 -1.86 -2.33 5.31 1.94 2.61 "" $HBox 6 "ValveBiped.Bip01_L_Thigh" 0 -6 -3.55 17.85 4 4.45 "" $HBox 6 "ValveBiped.Bip01_L_Calf" 0 -3.51 -3.28 15.64 3.49 2.72 "" $HBox 6 "ValveBiped.Bip01_L_Foot" -1.07 -2 -2.84 5.04 5 2.16 "" $HBox 7 "ValveBiped.Bip01_R_Thigh" 0 -6 -4.55 17.85 4 3.4 "" $HBox 7 "ValveBiped.Bip01_R_Calf" 0 -3.51 -2.82 15.64 3.49 3.18 "" $HBox 7 "ValveBiped.Bip01_R_Foot" -1.06 -2.01 -2.28 5.05 4.99 2.72 "" $HBox 3 "ValveBiped.Bip01_Pelvis" -7.5 -6 -6 7.5 6 6 "" $HBox 2 "ValveBiped.Bip01_Spine2" -6.5 -2.5 -7 10.5 7.5 7 "" $DefineBone "ValveBiped.Bip01" "" 0 -0.533612 38.566914 0 0 89.999983 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Pelvis" "" 0 -0.533612 38.566914 0 0 89.999983 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_Thigh" "ValveBiped.Bip01_Pelvis" 3.890447 0 0 5.733359 -89.192969 -89.660276 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_Calf" "ValveBiped.Bip01_L_Thigh" 17.848169 0 0 0 1.959516 0 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_Foot" "ValveBiped.Bip01_L_Calf" 16.525259 0 -0.000001 -2.336579 -61.400334 -1.599412 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_Thigh" "ValveBiped.Bip01_Pelvis" -3.890447 0 0 5.942642 -91.644119 -90.359435 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_Calf" "ValveBiped.Bip01_R_Thigh" 17.848171 0 0 0 1.959516 0 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_Foot" "ValveBiped.Bip01_R_Calf" 16.525253 0.000001 0 2.336579 -61.400389 2.212133 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Spine" "ValveBiped.Bip01_Pelvis" 0 3.345131 -2.981898 8.560391 89.999983 89.999983 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Spine1" "ValveBiped.Bip01_Spine" 3.995838 0 0 0 -1.651035 0 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Spine2" "ValveBiped.Bip01_Spine1" 3.520298 -0.000001 0 0 5.575279 0 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Spine4" "ValveBiped.Bip01_Spine2" 8.921474 0 0 0 10.680679 0 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Neck1" "ValveBiped.Bip01_Spine4" 3.30637 -0.000002 0 0 23.268329 179.999856 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_Head1" "ValveBiped.Bip01_Neck1" 3.602013 0.000011 0 -0.000057 23.206683 0 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_Clavicle" "ValveBiped.Bip01_Spine4" 2.059532 0.977921 1.937661 -73.052726 157.418704 103.199884 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_UpperArm" "ValveBiped.Bip01_L_Clavicle" 6.028137 0.000019 0.000002 1.111767 -64.460853 -98.11616 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_Forearm" "ValveBiped.Bip01_L_UpperArm" 11.692566 -0.000001 -0.00001 0.197734 2.089521 0.600405 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_L_Hand" "ValveBiped.Bip01_L_Forearm" 11.481674 -0.000001 -0.000029 -13.570209 -3.460262 90.385984 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_Clavicle" "ValveBiped.Bip01_Spine4" 2.059532 0.977921 -1.937661 72.95653 156.391389 -108.389557 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_UpperArm" "ValveBiped.Bip01_R_Clavicle" 6.028141 -0.000004 -0.000001 0.16742 -63.256718 99.222261 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_Forearm" "ValveBiped.Bip01_R_UpperArm" 11.692566 0 0 -0.240815 -1.412915 0.138255 0 0 0 0 0 0 $DefineBone "ValveBiped.Bip01_R_Hand" "ValveBiped.Bip01_R_Forearm" 11.481697 0 -0.000004 11.592996 -6.942015 -90.303592 0 0 0 0 0 0 $DefineBone "ValveBiped.forward" "ValveBiped.Bip01_Head1" 2.000038 -2.999997 0 0 -75.999987 -89.999983 0 0 0 0 0 0 $DefineBone "ValveBiped.Anim_Attachment_RH" "ValveBiped.Bip01_R_Hand" 2.676096 -1.71244 0 -0.000001 -89.999983 -89.999983 0 0 0 0 0 0 $DefineBone "ValveBiped.baton_parent" "ValveBiped.Bip01_R_Hand" 2.338459 -1.535749 -6.391509 -5.407575 -114.703343 87.103621 0 0 0 0 0 0 $DefineBone "ValveBiped.Anim_Attachment_LH" "ValveBiped.Bip01_L_Hand" 2.67609 -1.712433 0 0.000002 89.99999 90.000037 0 0 0 0 0 0 $Sequence "ragdoll" { "ragdoll.smd" activity "ACT_DIERAGDOLL" 1 fadein 0.2 fadeout 0.2 fps 30 } $IncludeModel "m_anm.mdl" $IncludeModel "m_gst.mdl" $IncludeModel "m_pst.mdl" $IncludeModel "m_shd.mdl" $IncludeModel "m_ss.mdl" $IncludeModel "humans/male_shared.mdl" $IncludeModel "humans/male_ss.mdl" $IncludeModel "humans/male_gestures.mdl" $IncludeModel "humans/male_postures.mdl" $IKChain "rhand" "ValveBiped.Bip01_R_Hand" knee 0.707 0.707 0 $IKChain "lhand" "ValveBiped.Bip01_L_Hand" knee 0.707 0.707 0 $IKChain "rfoot" "ValveBiped.Bip01_R_Foot" knee 0.707 -0.707 0 $IKChain "lfoot" "ValveBiped.Bip01_L_Foot" knee 0.707 -0.707 0 $CollisionJoints "dave_phy.smd" { $mass 90 $inertia 2 $damping 0.01 $rotdamping 0.4 $jointconstrain "ValveBiped.Bip01_L_Thigh" x limit -40 20 0.002 $jointconstrain "ValveBiped.Bip01_L_Thigh" y limit -40 6 0.002 $jointconstrain "ValveBiped.Bip01_L_Thigh" z limit -93 30 0.002 $jointmassbias "ValveBiped.Bip01_L_Calf" 2 $jointconstrain "ValveBiped.Bip01_L_Calf" x limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_L_Calf" y limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_L_Calf" z limit -8 126 0.002 $jointconstrain "ValveBiped.Bip01_R_Thigh" x limit -25 40 0.002 $jointconstrain "ValveBiped.Bip01_R_Thigh" y limit -8 40 0.002 $jointconstrain "ValveBiped.Bip01_R_Thigh" z limit -97 32 0.002 $jointmassbias "ValveBiped.Bip01_R_Calf" 2 $jointconstrain "ValveBiped.Bip01_R_Calf" x limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_R_Calf" y limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_R_Calf" z limit -12 126 0.002 $jointmassbias "ValveBiped.Bip01_R_Foot" 2 $jointconstrain "ValveBiped.Bip01_R_Foot" x limit 0 0 0 $jointconstrain "ValveBiped.Bip01_R_Foot" y limit -21 6 0.002 $jointconstrain "ValveBiped.Bip01_R_Foot" z limit -15 35 0.002 $jointconstrain "ValveBiped.Bip01_Spine2" x limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_Spine2" y limit -25 25 0.002 $jointconstrain "ValveBiped.Bip01_Spine2" z limit -25 50 0.002 $jointconstrain "ValveBiped.Bip01_L_UpperArm" x limit -90 80 0.002 $jointconstrain "ValveBiped.Bip01_L_UpperArm" y limit -102 19 0.002 $jointconstrain "ValveBiped.Bip01_L_UpperArm" z limit -90 90 0.002 $jointmassbias "ValveBiped.Bip01_L_Forearm" 2 $jointconstrain "ValveBiped.Bip01_L_Forearm" x limit 0 0 0 $jointconstrain "ValveBiped.Bip01_L_Forearm" y limit 0 0 0 $jointconstrain "ValveBiped.Bip01_L_Forearm" z limit -120 4 0.002 $jointconstrain "ValveBiped.Bip01_R_UpperArm" x limit -80 90 0.002 $jointconstrain "ValveBiped.Bip01_R_UpperArm" y limit -19 102 0.002 $jointconstrain "ValveBiped.Bip01_R_UpperArm" z limit -90 90 0.002 $jointmassbias "ValveBiped.Bip01_R_Forearm" 2 $jointconstrain "ValveBiped.Bip01_R_Forearm" x limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_R_Forearm" y limit 0 0 0.002 $jointconstrain "ValveBiped.Bip01_R_Forearm" z limit -120 4 0.002 $jointmassbias "ValveBiped.Bip01_R_Hand" 4 $jointconstrain "ValveBiped.Bip01_R_Hand" x limit -60 60 0.002 $jointconstrain "ValveBiped.Bip01_R_Hand" y limit -30 30 0.002 $jointconstrain "ValveBiped.Bip01_R_Hand" z limit -57 70 0.002 $jointmassbias "ValveBiped.Bip01_Head1" 2 $jointconstrain "ValveBiped.Bip01_Head1" x limit -60 60 0.002 $jointconstrain "ValveBiped.Bip01_Head1" y limit -25 25 0.002 $jointconstrain "ValveBiped.Bip01_Head1" z limit -13 30 0.002 $jointmassbias "ValveBiped.Bip01_L_Hand" 4 $jointconstrain "ValveBiped.Bip01_L_Hand" x limit -60 60 0.002 $jointconstrain "ValveBiped.Bip01_L_Hand" y limit -30 30 0.002 $jointconstrain "ValveBiped.Bip01_L_Hand" z limit -57 70 0.002 $jointmassbias "ValveBiped.Bip01_L_Foot" 2 $jointconstrain "ValveBiped.Bip01_L_Foot" x limit -1 -1 0.002 $jointconstrain "ValveBiped.Bip01_L_Foot" y limit -19 19 0.002 $jointconstrain "ValveBiped.Bip01_L_Foot" z limit -15 35 0.002 } [/code] Edit: Using the original skeleton from the original GoldSrc model and trying to move its arms or legs in MilkShape3D, would produce the same result as with the ValveBiped: [img]http://image.prntscr.com/image/32f62ed312d04bb7bc0575ab3e312e53.png[/img]
I fixed my issue guys, thanks for helping. [img]http://image.prntscr.com/image/be9942ac72ef45019fadd4dab63d928e.png[/img]
Sorry, you need to Log In to post a reply to this thread.