Problem with Studiocompiler

When I compile my model it is an error “bad command {”. I tried to delete this symbol in my QC. file, but then there was an error “bad command $mass”. Someone, help me please! My QC. file:

$cd “D:\Games\111\headhack\COMBINE”
$modelname “metrold_ryan.mdl”
$model “police” “metrold.smd”
$cdmaterials “models\metrold”
$cdmaterials “models\humans\mingout”
$hboxset “default”
$hbox 1 “ValveBiped.Bip01_Head1” -3.500 -7.710 -3.850 7.500 5.710 3.960
$hbox 4 “ValveBiped.Bip01_L_UpperArm” 0.000 -3.370 -3.700 12.510 3.400 2.410
$hbox 4 “ValveBiped.Bip01_L_Forearm” -0.900 -3.490 -3.170 9.490 3.100 2.410
$hbox 4 “ValveBiped.Bip01_L_Hand” -1.110 -1.890 -2.380 5.720 1.460 2.340
$hbox 5 “ValveBiped.Bip01_R_UpperArm” 0.000 -3.370 -2.370 12.390 3.410 3.800
$hbox 5 “ValveBiped.Bip01_R_Forearm” -0.990 -3.500 -2.370 9.330 3.100 3.270
$hbox 5 “ValveBiped.Bip01_R_Hand” -1.190 -1.860 -2.330 5.310 1.940 2.610
$hbox 6 “ValveBiped.Bip01_L_Thigh” 0.000 -6.000 -3.550 17.850 4.000 4.450
$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 -6.000 -4.550 17.850 4.000 3.400
$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 -6.000 -6.000 7.500 6.000 6.000
$hbox 2 “ValveBiped.Bip01_Spine2” -6.500 -2.500 -7.000 10.500 7.500 7.000
// Model uses material “jin-rohhead.vmt”
// Model uses material “combinesoldiersheet.vmt”
// Model uses material “metrocop_sheet.vmt”
$attachment “eyes” “ValveBiped.Bip01_Head1” 3.34 -5.28 -0.00 rotate 0.00 -80.10 -90.00
$attachment “Center” “ValveBiped.Bip01_Spine1” -6.20 2.09 -0.00 rotate -0.00 96.62 90.00
$attachment “Chest” “ValveBiped.Bip01_Spine4” -2.70 3.88 0.00 rotate -0.00 79.75 90.00
$attachment “LHand” “ValveBiped.Bip01_L_Hand” 3.00 0.00 -0.00 rotate 0.00 0.00 0.00
$attachment “RHand” “ValveBiped.Bip01_R_Hand” 3.00 0.00 0.00 rotate 0.00 -0.00 -0.00
$attachment “zipline” “ValveBiped.Bip01_Spine4” 2.00 -2.00 -0.00 rotate 0.00 -17.00 -0.00
$attachment “manhack” “ValveBiped.Bip01_Spine” 18.00 -6.00 3.00 rotate -25.00 50.00 0.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 “Police_animations.mdl”
$includemodel “Police_ss.mdl”
$surfaceprop “flesh”
$eyeposition 0.000 0.000 72.000
$illumposition -0.053 -1.866 36.320
$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 2.00
$damping 0.01
$rotdamping 0.40
$rootbone "valvebiped.bip01_pelvis"
$jointmerge "ValveBiped.Bip01_Pelvis" "ValveBiped.Bip01_Spine1"

$jointconstrain "valvebiped.bip01_l_thigh" x limit -25.00 20.00 0.04
$jointconstrain "valvebiped.bip01_l_thigh" y limit -73.00 6.00 0.04
$jointconstrain "valvebiped.bip01_l_thigh" z limit -93.00 30.00 0.04

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

$jointconstrain "valvebiped.bip01_r_thigh" x limit -25.00 39.00 0.04
$jointconstrain "valvebiped.bip01_r_thigh" y limit -8.00 75.00 0.04
$jointconstrain "valvebiped.bip01_r_thigh" z limit -97.00 32.00 0.04

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

$jointmassbias "valvebiped.bip01_r_foot" 2.00
$jointconstrain "valvebiped.bip01_r_foot" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" y limit -21.00 6.00 0.04
$jointconstrain "valvebiped.bip01_r_foot" z limit -15.00 35.00 0.04

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

$jointconstrain "valvebiped.bip01_l_upperarm" x limit -50.00 57.00 0.04
$jointconstrain "valvebiped.bip01_l_upperarm" y limit -102.00 19.00 0.04
$jointconstrain "valvebiped.bip01_l_upperarm" z limit -93.00 30.00 0.04

$jointmassbias "valvebiped.bip01_l_forearm" 2.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 -120.00 4.00 0.04

$jointconstrain "valvebiped.bip01_r_upperarm" x limit -50.00 57.00 0.04
$jointconstrain "valvebiped.bip01_r_upperarm" y limit -19.00 102.00 0.04
$jointconstrain "valvebiped.bip01_r_upperarm" z limit -93.00 30.00 0.04

$jointmassbias "valvebiped.bip01_r_forearm" 2.00
$jointconstrain "valvebiped.bip01_r_forearm" x limit 0.00 0.00 0.04
$jointconstrain "valvebiped.bip01_r_forearm" y limit 0.00 0.00 0.04
$jointconstrain "valvebiped.bip01_r_forearm" z limit -120.00 4.00 0.04

$jointmassbias "valvebiped.bip01_r_hand" 4.00
$jointconstrain "valvebiped.bip01_r_hand" x limit -60.00 60.00 0.04
$jointconstrain "valvebiped.bip01_r_hand" y limit -30.00 30.00 0.04
$jointconstrain "valvebiped.bip01_r_hand" z limit -57.00 70.00 0.04

$jointmassbias "valvebiped.bip01_head1" 2.00
$jointconstrain "valvebiped.bip01_head1" x limit -20.00 20.00 0.04
$jointconstrain "valvebiped.bip01_head1" y limit -25.00 25.00 0.04
$jointconstrain "valvebiped.bip01_head1" z limit -13.00 30.00 0.04

$jointmassbias "valvebiped.bip01_l_hand" 4.00
$jointconstrain "valvebiped.bip01_l_hand" x limit -60.00 60.00 0.04
$jointconstrain "valvebiped.bip01_l_hand" y limit -30.00 30.00 0.04
$jointconstrain "valvebiped.bip01_l_hand" z limit -57.00 70.00 0.04

$jointmassbias "valvebiped.bip01_l_foot" 2.00
$jointconstrain "valvebiped.bip01_l_foot" x limit -1.00 -1.00 0.04
$jointconstrain "valvebiped.bip01_l_foot" y limit -19.00 19.00 0.04
$jointconstrain "valvebiped.bip01_l_foot" z limit -15.00 35.00 0.04
$animatedfriction 1.000 1000.000 0.800 0.000 0.500

}

:psyduck:

try this one

Still “bad command {”

are you using GUIstudiocompiler?

Try creating a very bare QC just to test out if the thing compiles




$cd "D:\Games\111\headhack\COMBINE"

$surfaceprop "flesh" 
$modelname "metroid_ryan.mdl"

$cdmaterials "models\metrold\"
$cdmaterials "models\humans\mingout\"

$model "police" "metrold.smd"

$sequence ragdoll "ragdoll.smd" FPS 30 activity ACT_DIERAGDOLL 1 


$collisionjoints "phymodel.smd"
 {

$mass 60.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "valvebiped.bip01_pelvis"
}

I’ll be honest that I can’t see the problem right now. Might be something as simple as a forgotten space or something. Not sure. But like I’ve said - test the bare one, and then slowly build it up in sections to isolate the problem.

2 kar-re
I’m using cannonfolder’s StudioCompiler. I tried GUIstudioMDL but it does not work either.

2 wraithcat
Still “bad command {”

Aha, that’s not good :~
uh what studiomdl are you using? The orangebox one or another?

ep1 i guess.

Open up your QC in notepad++ (google2download) and go to “encoding->convert to ANSI”. I would suggest staying away from old GUI’s like cannonfodder’s.

normal notepad will do the same, save as->encoding: ANSI

Source can only read ANSI. cani got it.

Still don’t work.

use studiomdl.exe in your sourcesdk\bin\ep1\bin folder.

Don’t use third party stuff they are outdated.

A long time ago (before stuff was updated i beleive) you couldn’t cuddle the { with the command line.

change


$collisionjoints "phymodel.smd" {

into


$collisionjoints "phymodel.smd"
{

YAY I get it to work now. Thx)