Model problem

okay so, i’ve just compiled a model (headhack) and when i open it with the Model viewer it looks like this:

and in-game the head is not atached to the body

my qc file:


$cd "C:\Users\EIREXE\Desktop\modeloinutil\2"
$modelname "miku_combine1.mdl"
$model "Mikumbine1" "miku_combine1.smd"
$cdmaterials "models\E3assassin\"
$cdmaterials "models\player\hatsunemiku\"
$cdmaterials "models\humans\male\"
$hboxset "default"
$hbox 1 "ValveBiped.Bip01_Head1" -2.250  -5.000  -3.150  7.250  5.000  3.350
$hbox 4 "ValveBiped.Bip01_L_UpperArm" -0.810  -2.250  -3.050  11.190  2.750  1.200
$hbox 4 "ValveBiped.Bip01_L_Forearm" -1.250  -1.880  -2.000  11.750  1.620  1.000
$hbox 4 "ValveBiped.Bip01_L_Hand" 0.000  -1.070  -1.500  6.000  0.680  3.000
$hbox 5 "ValveBiped.Bip01_R_UpperArm" -1.500  -2.250  -1.250  11.500  2.750  2.750
$hbox 5 "ValveBiped.Bip01_R_Forearm" -0.820  -1.900  -1.150  11.180  1.600  1.850
$hbox 5 "ValveBiped.Bip01_R_Hand" -0.500  -1.130  -3.250  5.500  0.630  1.750
$hbox 6 "ValveBiped.Bip01_L_Thigh" 0.500  -3.500  -3.250  17.500  4.500  3.250
$hbox 6 "ValveBiped.Bip01_L_Calf" 0.740  -2.350  -2.150  17.740  3.650  2.350
$hbox 6 "ValveBiped.Bip01_L_Foot" -2.000  -1.800  -1.450  6.000  3.200  2.050
$hbox 6 "ValveBiped.Bip01_L_Toe0" -0.170  -1.500  -1.300  2.570  0.300  1.700
$hbox 7 "ValveBiped.Bip01_R_Thigh" 0.500  -3.500  -3.000  17.500  4.500  3.000
$hbox 7 "ValveBiped.Bip01_R_Calf" 0.740  -2.350  -2.350  17.740  3.650  2.150
$hbox 7 "ValveBiped.Bip01_R_Foot" -2.000  -1.750  -2.150  6.000  3.250  1.350
$hbox 7 "ValveBiped.Bip01_R_Toe0" 0.000  -1.380  -1.630  2.740  0.380  1.630
$hbox 3 "ValveBiped.Bip01_Pelvis" -5.250  -3.880  -6.250  5.750  4.120  3.750
$hbox 3 "ValveBiped.Bip01_Spine1" -4.500  -2.000  -4.980  3.500  6.000  4.970
$hbox 2 "ValveBiped.Bip01_Spine2" -0.500  -2.500  -6.000  10.500  7.500  6.000
// Model uses material "Fassassin_sheet.vmt"
// Model uses material "boot_sheet.vmt"
$attachment "eyes" "ValveBiped.Bip01_Head1" 2.81 -3.89 -0.00 rotate 0.00 -80.10 -90.00
$attachment "lefteye" "ValveBiped.Bip01_Head1" 2.81 -3.89 -1.32 rotate 0.00 -80.10 -90.00
$attachment "righteye" "ValveBiped.Bip01_Head1" 2.81 -3.89 1.30 rotate 0.00 -80.10 -90.00
$attachment "nose" "ValveBiped.Bip01_Head1" 1.70 -5.30 -0.00 rotate 0.00 -80.00 -90.00
$attachment "mouth" "ValveBiped.Bip01_Head1" 0.20 -4.90 -0.00 rotate 0.00 -80.00 -90.00
$attachment "amulet" "ValveBiped.Bip01_Spine4" 0.30 5.00 -0.00 rotate -0.00 90.00 90.00
$attachment "chest" "ValveBiped.Bip01_Spine4" -4.00 4.00 -0.00 rotate -0.00 83.00 90.00
$attachment "hips" "ValveBiped.Bip01_Pelvis" 0.00 -0.00 -0.00 rotate -90.00 -90.00 0.00
$attachment "lefthand" "ValveBiped.Bip01_L_Hand" 3.50 -0.50 0.00 rotate -0.00 0.00 -0.00
$attachment "righthand" "ValveBiped.Bip01_R_Hand" 3.50 -0.50 0.00 rotate -0.00 -0.00 0.00
$attachment "pouch1" "ValveBiped.Bip01_Pelvis" 5.50 1.00 2.00 rotate -90.00 -90.00 0.00
$attachment "pouch2" "ValveBiped.Bip01_Pelvis" 6.50 0.50 -2.00 rotate -90.00 -90.00 0.00
$attachment "physgun_attachment" "ValveBiped.physgun_attachment" -0.00 -0.00 -0.00 rotate -90.00 -90.00 0.00
$attachment "emp" "ValveBiped.Anim_Attachment_RH" -0.00 -0.00 5.00 rotate -90.00 -90.00 0.00
$attachment "Emp_Holster" "ValveBiped.Bip01_Pelvis" -6.44 2.22 -1.95 rotate -1.37 -103.07 90.28
$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
$includemodel "f_anm.mdl"
$includemodel "f_gst.mdl"
$includemodel "f_pst.mdl"
$includemodel "f_shd.mdl"
$includemodel "f_ss.mdl"
$surfaceprop "flesh"
$illumposition -0.855 0.052 34.763
$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 60.0
	$inertia 5.00
	$damping 0.01
	$rotdamping 1.50
	$rootbone "valvebiped.bip01_pelvis"
	$jointmerge "ValveBiped.Bip01_Pelvis" "ValveBiped.Bip01_Spine1"

	$jointconstrain "valvebiped.bip01_r_thigh" x limit -50.00 48.00 0.01
	$jointconstrain "valvebiped.bip01_r_thigh" y limit -19.00 70.00 0.01
	$jointconstrain "valvebiped.bip01_r_thigh" z limit -79.00 73.00 0.01

	$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 0.00 133.00 0.01

	$jointconstrain "valvebiped.bip01_l_thigh" x limit -39.00 39.00 0.01
	$jointconstrain "valvebiped.bip01_l_thigh" y limit -59.00 23.00 0.01
	$jointconstrain "valvebiped.bip01_l_thigh" z limit -84.00 66.00 0.01

	$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 0.00 131.00 0.01

	$jointconstrain "valvebiped.bip01_l_foot" x limit -23.00 23.00 0.01
	$jointconstrain "valvebiped.bip01_l_foot" y limit -28.00 28.00 0.01
	$jointconstrain "valvebiped.bip01_l_foot" z limit -46.00 46.00 0.01

	$jointconstrain "valvebiped.bip01_spine2" x limit -48.00 48.00 0.01
	$jointconstrain "valvebiped.bip01_spine2" y limit -26.00 26.00 0.01
	$jointconstrain "valvebiped.bip01_spine2" z limit -39.00 68.00 0.01

	$jointconstrain "valvebiped.bip01_r_upperarm" x limit -64.00 64.00 0.01
	$jointconstrain "valvebiped.bip01_r_upperarm" y limit -26.00 122.00 0.01
	$jointconstrain "valvebiped.bip01_r_upperarm" z limit -122.00 50.00 0.01

	$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 1.00 0.01

	$jointconstrain "valvebiped.bip01_l_upperarm" x limit -64.00 64.00 0.01
	$jointconstrain "valvebiped.bip01_l_upperarm" y limit -122.00 28.00 0.01
	$jointconstrain "valvebiped.bip01_l_upperarm" z limit -100.00 59.00 0.01

	$jointconstrain "valvebiped.bip01_l_forearm" x limit 0.00 0.00 0.01
	$jointconstrain "valvebiped.bip01_l_forearm" y limit 0.00 0.00 0.00
	$jointconstrain "valvebiped.bip01_l_forearm" z limit -140.00 0.00 0.01

	$jointconstrain "valvebiped.bip01_l_hand" x limit -68.00 68.00 0.01
	$jointconstrain "valvebiped.bip01_l_hand" y limit -37.00 41.00 0.01
	$jointconstrain "valvebiped.bip01_l_hand" z limit -44.00 70.00 0.01

	$jointconstrain "valvebiped.bip01_head1" x limit -61.00 61.00 0.01
	$jointconstrain "valvebiped.bip01_head1" y limit -44.00 44.00 0.01
	$jointconstrain "valvebiped.bip01_head1" z limit -32.00 50.00 0.01

	$jointconstrain "valvebiped.bip01_r_hand" x limit -75.00 93.00 0.01
	$jointconstrain "valvebiped.bip01_r_hand" y limit -37.00 32.00 0.01
	$jointconstrain "valvebiped.bip01_r_hand" z limit -48.00 66.00 0.01

	$jointconstrain "valvebiped.bip01_r_foot" x limit -23.00 23.00 0.01
	$jointconstrain "valvebiped.bip01_r_foot" y limit -23.00 23.00 0.01
	$jointconstrain "valvebiped.bip01_r_foot" z limit -35.00 57.00 0.01
}


The studio compiler log:




SMD MODEL C:\Users\EIREXE\Desktop\modeloinutil\2/miku_combine1.smd
SMD MODEL C:\Users\EIREXE\Desktop\modeloinutil\2/ragdoll.smd
SMD MODEL C:\Users\EIREXE\Desktop\modeloinutil\2/phymodel.smd
Processing jointed collision model
ValveBiped.Bip01_Pelvis  (168 verts) volume: 517.89
ValveBiped.Bip01_Spine2  (228 verts) volume: 811.49
ValveBiped.Bip01_Head1   (588 verts) volume: 331.95
ValveBiped.Bip01_L_UpperArm (162 verts) volume: 79.62
ValveBiped.Bip01_L_Forearm (144 verts) volume: 61.89
ValveBiped.Bip01_L_Hand  ( 78 verts) volume: 43.90
ValveBiped.Bip01_R_UpperArm (168 verts) volume: 77.34
ValveBiped.Bip01_R_Forearm (144 verts) volume: 61.86
ValveBiped.Bip01_R_Hand  ( 78 verts) volume: 43.90
ValveBiped.Bip01_L_Thigh (156 verts) volume: 376.72
ValveBiped.Bip01_L_Calf  (156 verts) volume: 283.14
ValveBiped.Bip01_L_Foot  ( 60 verts) volume: 141.09
ValveBiped.Bip01_R_Thigh (156 verts) volume: 376.72
ValveBiped.Bip01_R_Calf  (156 verts) volume: 283.14
ValveBiped.Bip01_R_Foot  ( 60 verts) volume: 141.02
Collision model completed.
---------------------
writing C:\SourceSDK\hl2\models/miku_combine1.mdl:
bones        18148 bytes (68)
animations    2052 bytes (1 anims) (10 frames) [0:00]
sequences      488 bytes (1 seq) 
ik/pose        564 bytes
eyeballs         0 bytes (0 eyeballs)
flexes           0 bytes (0 flexes)
textures      1200 bytes
keyvalues        0 bytes
Collision model volume 3631.67 in^3
collision        0 bytes
total        26896
---------------------
writing C:\SourceSDK\hl2\models/miku_combine1.vvd:
vertices    526992 bytes (10979 vertices)
tangents    175664 bytes (10979 vertices)
total       702720 bytes
---------------------
Generating optimized mesh "C:\SourceSDK\hl2\models/miku_combine1.sw.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:           162 bytes
strip groups:     450 bytes
strips:           486 bytes
verts:          98811 bytes
indices:       113874 bytes
bone changes:       8 bytes
everything:    213855 bytes
---------------------
Generating optimized mesh "C:\SourceSDK\hl2\models/miku_combine1.dx80.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:           162 bytes
strip groups:     450 bytes
strips:           621 bytes
verts:         101223 bytes
indices:       113874 bytes
bone changes:     896 bytes
everything:    217290 bytes
---------------------
Generating optimized mesh "C:\SourceSDK\hl2\models/miku_combine1.dx90.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:           162 bytes
strip groups:     450 bytes
strips:           513 bytes
verts:          99594 bytes
indices:       113874 bytes
bone changes:     768 bytes
everything:    215425 bytes

Number of Faces 834

Completed "C:\Users\EIREXE\Desktop\modeloinutil\2\mdldecompiler.qc"

StudioMDL Thread complete