Compiling Probs

I’m trying to compile a ragdoll and I’m getting this error:

ERROR***
bad command $model

I’m sure this is all out of wack but
here’s the .qc

$cd “C:\Documents and Settings\Alex\My Documents\Decomplied Stuff\Heather”
$modelname “C:\Documents and Settings\Alex\My Documents\Decomplied Stuff\Heather\compiled\heather02.mdl”
$model “male_06” “male_06_reference.smd” {

$cdmaterials “models\Humans\Male\Group01”
$cdmaterials “models\Humans\Male”
$cdmaterials “models\humans\male”
$hboxset “default”
$hbox 0 “Pelvis” -7.318 -4.788 -7.256 21.555 5.204 7.256
$hbox 0 “R_Thigh” -3.980 -6.041 -3.666 19.915 3.507 3.478
$hbox 0 “R_LowerLeg” -2.133 -3.841 -3.144 22.592 4.572 3.015
$hbox 0 “R_Foot” -4.823 -4.259 -3.197 9.617 5.345 2.936
$hbox 0 “L_Thigh” -19.916 -3.507 -3.478 3.980 6.041 3.666
$hbox 0 “L_LowerLeg” -22.592 -4.572 -3.015 2.133 3.841 3.144
$hbox 0 “L_Foot” -9.617 -5.345 -2.936 4.823 4.259 3.197
$hbox 0 “Chest” -3.448 -5.217 -6.852 14.870 4.902 6.852
$hbox 0 “Breast” -0.470 -2.601 -5.665 3.380 3.131 5.664
$hbox 0 “L_Shoulder” -8.130 -2.833 -3.537 0.000 5.387 2.778
$hbox 0 “L_UpperArm” -13.421 -2.461 -2.677 2.861 1.801 2.465
$hbox 0 “L_ForeArm” -13.009 -1.650 -1.545 1.884 1.783 1.951
$hbox 0 “L_Hand” -7.285 -1.094 -2.376 1.062 2.262 1.805
$hbox 0 “R_Shoulder” 0.000 -5.387 -2.778 8.130 2.833 3.537
$hbox 0 “R_UpperArm” -2.860 -1.801 -2.465 13.421 2.461 2.677
$hbox 0 “R_ForeArm” -1.884 -1.783 -1.951 13.009 1.650 1.545
$hbox 0 “R_Hand” -1.062 -2.262 -1.805 7.285 1.094 2.376
$hbox 0 “Head” -1.784 -4.888 -4.821 9.525 5.890 4.984
// Model uses material “26831432.vmt”
// Model uses material “26831430.vmt”
// Model uses material “26831431.vmt”
// Model uses material “47357852.vmt”
$includemode1 “humans/female_shared.mdl”
$includemode1 “humans/female_ss.mdl”
$includemode1 “humans/female_gestures.mdl”
$includemode1 “humans/female_postures.mdl”
$surfaceprop “flesh”
$illumposition -0.594 -0.000 36.997
$sequence ragdoll “ragdoll” ACT_DIERAGDOLL 1 fps 30.00
$collisionjoints “phymodel.smd” {

$mass 60.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "pelvis"

$jointconstrain "chest" x limit -30.00 30.00 0.00
$jointconstrain "chest" y limit -45.00 45.00 0.00
$jointconstrain "chest" z limit -50.00 15.00 0.00

$jointconstrain "r_shoulder" x limit -8.00 8.00 0.00
$jointconstrain "r_shoulder" y limit -12.00 12.00 0.00
$jointconstrain "r_shoulder" z limit 0.00 70.00 0.00

$jointconstrain "r_upperarm" x limit -30.00 30.00 0.00
$jointconstrain "r_upperarm" y limit -122.00 10.00 0.00
$jointconstrain "r_upperarm" z limit -20.00 60.00 0.00

$jointconstrain "r_forearm" x limit 0.00 0.00 0.00
$jointconstrain "r_forearm" y limit -140.00 0.00 0.00
$jointconstrain "r_forearm" z limit 0.00 0.00 0.00

$jointconstrain "l_shoulder" x limit -8.00 8.00 0.00
$jointconstrain "l_shoulder" y limit -12.00 12.00 0.00
$jointconstrain "l_shoulder" z limit 0.00 70.00 0.00

$jointconstrain "l_upperarm" x limit -30.00 30.00 0.00
$jointconstrain "l_upperarm" y limit -113.00 10.00 0.00
$jointconstrain "l_upperarm" z limit -21.00 60.00 0.00

$jointconstrain "l_forearm" x limit 0.00 0.00 0.00
$jointconstrain "l_forearm" y limit -140.00 0.00 0.00
$jointconstrain "l_forearm" z limit 0.00 0.00 0.00

$jointconstrain "l_hand" x limit -55.00 55.00 0.00
$jointconstrain "l_hand" y limit -30.00 30.00 0.00
$jointconstrain "l_hand" z limit -30.00 30.00 0.00

$jointmassbias "breast" 0.40
$jointinertia "breast" 5.00
$jointrotdamping "breast" 5.00
$jointconstrain "breast" x limit -15.00 15.00 0.00
$jointconstrain "breast" y limit -32.00 3.00 0.00
$jointconstrain "breast" z limit -30.00 30.00 0.00

$jointconstrain "head" x limit -44.00 44.00 0.00
$jointconstrain "head" y limit -30.00 30.00 0.00
$jointconstrain "head" z limit -50.00 8.00 0.00

$jointconstrain "l_thigh" x limit -35.00 15.00 0.00
$jointconstrain "l_thigh" y limit -35.00 35.00 0.00
$jointconstrain "l_thigh" z limit -30.00 90.00 0.00

$jointconstrain "l_lowerleg" x limit 0.00 0.00 0.00
$jointconstrain "l_lowerleg" y limit 0.00 0.00 0.00
$jointconstrain "l_lowerleg" z limit -140.00 0.00 0.00

$jointconstrain "r_hand" x limit -55.00 55.00 0.00
$jointconstrain "r_hand" y limit -84.00 30.00 0.00
$jointconstrain "r_hand" z limit -30.00 30.00 0.00

$jointconstrain "r_thigh" x limit -35.00 15.00 0.00
$jointconstrain "r_thigh" y limit -35.00 35.00 0.00
$jointconstrain "r_thigh" z limit -30.00 90.00 0.00

$jointconstrain "r_lowerleg" x limit 0.00 0.00 0.00
$jointconstrain "r_lowerleg" y limit 0.00 0.00 0.00
$jointconstrain "r_lowerleg" z limit -140.00 0.00 0.00

$jointconstrain "r_foot" x limit -30.00 10.00 0.00
$jointconstrain "r_foot" y limit -25.00 25.00 0.00
$jointconstrain "r_foot" z limit -37.00 28.00 0.00

$jointconstrain "l_foot" x limit -30.00 10.00 0.00
$jointconstrain "l_foot" y limit -25.00 25.00 0.00
$jointconstrain "l_foot" z limit -37.00 28.00 0.00

}

the origional ragdolls are here

i’m not sure if i should be using that male_06reference because the original model string on decompiling was:

$model “studio” “heather02.smd”

the original cdmaterials was:
$cdmaterials “models\heathermorris”

Try $model “male_06”

changing to $body “Body”

still getting the same error

what files should be in the folder with the .qc when you compile?

I have the ragdoll.smd , phymodel.smd , the Male_06_reference.smd , and the old heather02.smd in there with the .qc

$cd “C:\Documents and Settings\Alex\My Documents\Decomplied Stuff\Heather”
$modelname “C:\Documents and Settings\Alex\My Documents\Decomplied Stuff\Heather\compiled\heather02.mdl”

Don’t use those paths, use ep2 folder for compiling.
Also why are you re-compiling ragdoll?

I’m not re-compiling a ragdoll

I’m trying to make the ragdoll into an npc and maybe a player model later

those paths that i’m using are where the decompiled files are-

should I move that stuff to the ep2 folder ?

I’m really a noob

Yeah,

$cd “models/Heather/”
$modelname “Heather/heather02.mdl”
$body “male_06” “male_06_reference.smd” {

try to put that instead of what you have,
also if you are compiling under ep2 settings,
make sure you have a folder called Heather in:

steamapps/[username]/ep2/ep2/materials/models/
and
steamapps/[username]/ep2/ep2/models/

In each of those create a folder named heather.
Also copy all materials in each of those.
Then try to compile

well now I’m getting a different error, but i think it’s because it can’t find a file

ERROR
C:\Program Files\Steam\SteamApps[name]\ep2\ep2\models\Heather/male_06_reference.smd.smd doesn’t exist

Now, theres a couple of problems (why is it saying .smd.smd? and why are the / things all weird?)

ugh

I was also curious if I could use the original “heather02.smd” file that was part of the decompile instead of the male_06_reference.smd?

I think somehow my paths for stuff are all screwed up

.qc is:

$cd “C:\Program Files\Steam\SteamApps[name]\ep2\ep2\models\Heather”
$modelname “Heather/heather02.mdl”
$body “male_06” “male_06_reference.smd” {

omg man do not put full path as I said already.
$cd “models/Heather” use that .
Also put QC and all smd files in 1 folder, not different, for example on desktop.
It’s fine if it’s QC, smd’s on desktop.
Also post your full QC file that you use, I will write it the way it should work.

here’s the full .qc as it is

$cd “models/Heather”
$modelname “Heather/heather02.mdl”
$body “male_06” “male_06_reference.smd” {

$cdmaterials “models\Humans\Male\Group01”
$cdmaterials “models\Humans\Male”
$cdmaterials “models\humans\male”
$hboxset “default”
$hbox 0 “Pelvis” -7.318 -4.788 -7.256 21.555 5.204 7.256
$hbox 0 “R_Thigh” -3.980 -6.041 -3.666 19.915 3.507 3.478
$hbox 0 “R_LowerLeg” -2.133 -3.841 -3.144 22.592 4.572 3.015
$hbox 0 “R_Foot” -4.823 -4.259 -3.197 9.617 5.345 2.936
$hbox 0 “L_Thigh” -19.916 -3.507 -3.478 3.980 6.041 3.666
$hbox 0 “L_LowerLeg” -22.592 -4.572 -3.015 2.133 3.841 3.144
$hbox 0 “L_Foot” -9.617 -5.345 -2.936 4.823 4.259 3.197
$hbox 0 “Chest” -3.448 -5.217 -6.852 14.870 4.902 6.852
$hbox 0 “Breast” -0.470 -2.601 -5.665 3.380 3.131 5.664
$hbox 0 “L_Shoulder” -8.130 -2.833 -3.537 0.000 5.387 2.778
$hbox 0 “L_UpperArm” -13.421 -2.461 -2.677 2.861 1.801 2.465
$hbox 0 “L_ForeArm” -13.009 -1.650 -1.545 1.884 1.783 1.951
$hbox 0 “L_Hand” -7.285 -1.094 -2.376 1.062 2.262 1.805
$hbox 0 “R_Shoulder” 0.000 -5.387 -2.778 8.130 2.833 3.537
$hbox 0 “R_UpperArm” -2.860 -1.801 -2.465 13.421 2.461 2.677
$hbox 0 “R_ForeArm” -1.884 -1.783 -1.951 13.009 1.650 1.545
$hbox 0 “R_Hand” -1.062 -2.262 -1.805 7.285 1.094 2.376
$hbox 0 “Head” -1.784 -4.888 -4.821 9.525 5.890 4.984
// Model uses material “26831432.vmt”
// Model uses material “26831430.vmt”
// Model uses material “26831431.vmt”
// Model uses material “47357852.vmt”
$includemode1 “humans/female_shared.mdl”
$includemode1 “humans/female_ss.mdl”
$includemode1 “humans/female_gestures.mdl”
$includemode1 “humans/female_postures.mdl”
$surfaceprop “flesh”
$illumposition -0.594 -0.000 36.997
$sequence ragdoll “ragdoll” ACT_DIERAGDOLL 1 fps 30.00
$collisionjoints “phymodel.smd” {

$mass 60.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "pelvis"

$jointconstrain "chest" x limit -30.00 30.00 0.00
$jointconstrain "chest" y limit -45.00 45.00 0.00
$jointconstrain "chest" z limit -50.00 15.00 0.00

$jointconstrain "r_shoulder" x limit -8.00 8.00 0.00
$jointconstrain "r_shoulder" y limit -12.00 12.00 0.00
$jointconstrain "r_shoulder" z limit 0.00 70.00 0.00

$jointconstrain "r_upperarm" x limit -30.00 30.00 0.00
$jointconstrain "r_upperarm" y limit -122.00 10.00 0.00
$jointconstrain "r_upperarm" z limit -20.00 60.00 0.00

$jointconstrain "r_forearm" x limit 0.00 0.00 0.00
$jointconstrain "r_forearm" y limit -140.00 0.00 0.00
$jointconstrain "r_forearm" z limit 0.00 0.00 0.00

$jointconstrain "l_shoulder" x limit -8.00 8.00 0.00
$jointconstrain "l_shoulder" y limit -12.00 12.00 0.00
$jointconstrain "l_shoulder" z limit 0.00 70.00 0.00

$jointconstrain "l_upperarm" x limit -30.00 30.00 0.00
$jointconstrain "l_upperarm" y limit -113.00 10.00 0.00
$jointconstrain "l_upperarm" z limit -21.00 60.00 0.00

$jointconstrain "l_forearm" x limit 0.00 0.00 0.00
$jointconstrain "l_forearm" y limit -140.00 0.00 0.00
$jointconstrain "l_forearm" z limit 0.00 0.00 0.00

$jointconstrain "l_hand" x limit -55.00 55.00 0.00
$jointconstrain "l_hand" y limit -30.00 30.00 0.00
$jointconstrain "l_hand" z limit -30.00 30.00 0.00

$jointmassbias "breast" 0.40
$jointinertia "breast" 5.00
$jointrotdamping "breast" 5.00
$jointconstrain "breast" x limit -15.00 15.00 0.00
$jointconstrain "breast" y limit -32.00 3.00 0.00
$jointconstrain "breast" z limit -30.00 30.00 0.00

$jointconstrain "head" x limit -44.00 44.00 0.00
$jointconstrain "head" y limit -30.00 30.00 0.00
$jointconstrain "head" z limit -50.00 8.00 0.00

$jointconstrain "l_thigh" x limit -35.00 15.00 0.00
$jointconstrain "l_thigh" y limit -35.00 35.00 0.00
$jointconstrain "l_thigh" z limit -30.00 90.00 0.00

$jointconstrain "l_lowerleg" x limit 0.00 0.00 0.00
$jointconstrain "l_lowerleg" y limit 0.00 0.00 0.00
$jointconstrain "l_lowerleg" z limit -140.00 0.00 0.00

$jointconstrain "r_hand" x limit -55.00 55.00 0.00
$jointconstrain "r_hand" y limit -84.00 30.00 0.00
$jointconstrain "r_hand" z limit -30.00 30.00 0.00

$jointconstrain "r_thigh" x limit -35.00 15.00 0.00
$jointconstrain "r_thigh" y limit -35.00 35.00 0.00
$jointconstrain "r_thigh" z limit -30.00 90.00 0.00

$jointconstrain "r_lowerleg" x limit 0.00 0.00 0.00
$jointconstrain "r_lowerleg" y limit 0.00 0.00 0.00
$jointconstrain "r_lowerleg" z limit -140.00 0.00 0.00

$jointconstrain "r_foot" x limit -30.00 10.00 0.00
$jointconstrain "r_foot" y limit -25.00 25.00 0.00
$jointconstrain "r_foot" z limit -37.00 28.00 0.00

$jointconstrain "l_foot" x limit -30.00 10.00 0.00
$jointconstrain "l_foot" y limit -25.00 25.00 0.00
$jointconstrain "l_foot" z limit -37.00 28.00 0.00

}

i’m still getting
ERROR***
models/Heather/male_06_reference.smd.smd doesn’t exist

when compiling the above

my folders look like

“” ep2/ep2/materials/models/Heather/mdldecompiler.qc

in that folder are the
physmodel.smd ,
ragdoll.smd ,
male_06_reference.smd , and the
heather02.smd
and that’s all that’s in there

the other folder’s path is ""ep2/ep2/models/Heather

in that folder it’s blank with no files whatsoever

thanks for replying and trying to help me

Hmm weird.

yah the .qc doesn’t have everything since the ragdoll models are not from source

i think they were ripped from some other thing but the files are at http://www.garrysmod.org/downloads/?a=view&id=62915

i have the lua and stuff all done and i can spawn the ragdoll as an npc in gmod but it has no animations ofcourse (T poser)

Try using the original model’s .smd and using it’s texture path. If you leave it the way it is, it won’t compile properlly because none of the bones of the phymodel line up with the new .smd.

thanks for the tip but I did try using the original .smd from the model and it still came up with the

ERROR
bad command $model

I don’t understand it at all

It seems like if I do nothing at all to the .qc and just try to compile after decompiling, it just won’t work
I always get that error about the $model

these are the original ragdolls here http://www.garrysmod.org/downloads/?a=view&id=62915

this really sucks because I want to make a machinima with these models and I don’t know why this isn’t working

What did you use to decompile it, and what are using to compile it?

I’m using GUI studioMDL to compile and Mdldecompiler.exe to decompile it

never have any problems decompiling at all