help with my qc file :(

hi guys im working on my first rag doll and rigged it and all that good stuff from these video’s (http://www.youtube.com/watch?v=qyodBSpiD8Q) but im stuck at the part where your make a qc file cause ive got it kinda down but every time i compile it it just says ERROR bad command $ and not sure whats wrong. heres what it looks like…its killing me…but i would really appreciate the help thanks :slight_smile:

cd "C:\Users\mr danial\garrys mod rigging\sakura" modelname “sakura.mdl”
$ surfaceprop “flesh”

$ cdmaterials “models\robert101410\sakura”

eyeposition 0 0 70 attachment “eyes” “head” 0.00 -4.93 68.74 absolute
$ attachment “mouth” “head” 0.80 -5.80 -0.15 rotate 0 -80 -90

$ model model “reference.smd” {

flexfile"blank.vta"
flex “blank” frame 10
flexcontroller “phoneme” “blank” “range” 01
%blank =blank

flexfile"smile.vta"
flex “smile” frame 10
flexcontroller “phoneme” “smile” “range” 01
%smile = smile

flexfile"frown.vta"
flex “frown” frame 10
flexcontroller “phoneme” “frown” “range” 01
%frown = frown

flexfile"open mouth.vta"
flex “open mouth” frame 10
flexcontroller “phoneme” “open mouth” “range” 01
%open mouth = open mouth

flexfile"left top eye lid close.vta"
flex “left top eye lid close” frame 10
flexcontroller “phoneme” “left top eye lid close” “range” 01
%left top eye lid close = left top eye lid close

flexfile"top eyes close.vta"
flex “top eyes close” frame 10
flexcontroller “phoneme” “top eyes close” “range” 01
%top eyes close = top eyes close

flexfile"close all eyes.vta"
flex “close all eyes” frame 10
flexcontroller “phoneme” “close all eyes” “range” 01
%close all eyes = close all eyes

flexfile"mad.vta"
flex “mad” frame 10
flexcontroller “phoneme” “mad” “range” 01
%mad = mad

flexfile"left eye brow.vta"
flex “left eye brow” frame 10
flexcontroller “phoneme” “left eye brow” “range” 01
%left eye brow = left eye brow

flexfile"right eye brow.vta"
flex “right eye brow” frame 10
flexcontroller “phoneme” “top eyes close” “range” 01
%top eyes close = top eyes close

flexfile"right eye brow.vta"
flex “right eye brow” frame 10
flexcontroller “phoneme” “top eyes close” “range” 01
%top eyes close = top eyes close

flexfile"blank.vta"
flex “blank” frame 10
flexcontroller “phoneme” “blank” “range” 01
%blank = blank

             mouth 0 "mouth" head 0.000 1.000 0.000                   
              eyeball righteye "head" -1.78 -4.93 68.74 "eyeball_r" 1.00 4 "pupil_r" 0.63
          eyeball lefteye "head" 1.78 -4.93 68.74 "eyeball_l" 1.00 -4 "pupil_l" 0.63

[editline]25th December 2012[/editline]

can anyone see the problem?

Don’t put a space after the $.

well thats gone but now it says ERROR bad command $surfaceprop

[editline]25th December 2012[/editline]

i think i might know the problem i was using the old version of gui studio i just downloaded version 2.2 so im gonna see if this helps

try placing it into the collision segment of the QC

yeah i guess that fixed that part now it says ERROR bad command $cdmaterials :\

Ikay that not save the error, what encpding do you save the qc as?

if you mean what encoding its ANSI? but heres a download link to my qc file: http://www.mediafire.com/?61gqa43u8nw5q7g but the files i have for my ragdoll is phymodel.smd, ragdoll.smd, reference.smd, and facial animation file smile.vta but it could be im not putting them in the qc file right but ive been following this tutorial: http://www.youtube.com/watch?v=qyodBSpiD8Q and did everything he said to do

it should be $cdmaterial iirc

putting the iirc after $cdmaterial doesn’t make a difference :frowning:

hmm just tested the QC on my end and I don’t seem to have any real problems. Try to save it as UTF-8 and try that as opposed to ANSI.

Also do you have an english version of windows or not?

“iirc” is an abbreviation for “if I recall correctly”, don’t put it in the qc.

[editline]26th December 2012[/editline]

It’s also $cdmaterials and not $cdmaterial, and it has to go after the face flexes shit.

You should really examine a .qc to see how it’s supposed to be set up. Here is one of mine.



$cd "C:\Users\Home\Documents\3dsmax\PROJECTS	equila"
$modelname "inspector_tequila.mdl"
$model "pOOP" "tequila.smd" {

flexfile "brow_mad.vta"
flex "brow_mad" frame 10
flexcontroller "phoneme" "brow_mad" "range" 0 1
%brow_mad = brow_mad

flexfile "brow_sad.vta"
flex "brow_sad" frame 10
flexcontroller "phoneme" "brow_sad" "range" 0 1
%brow_sad = brow_sad

flexfile "mouth_open.vta"
flex "mouth_open" frame 10
flexcontroller "phoneme" "mouth_open" "range" 0 1
%mouth_open = mouth_open

flexfile "mouth_sneer.vta"
flex "mouth_sneer" frame 10
flexcontroller "phoneme" "mouth_sneer" "range" 0 1
%mouth_sneer = mouth_sneer

flexfile "mouth_smile.vta"
flex "mouth_smile" frame 10
flexcontroller "phoneme" "mouth_smile" "range" 0 1
%mouth_smile = mouth_smile

flexfile "mouth_frown.vta"
flex "mouth_frown" frame 10
flexcontroller "phoneme" "mouth_frown" "range" 0 1
%mouth_frown = mouth_frown
}
$cdmaterials "models	equila"
$opaque
$hboxset "default"
$surfaceprop "flesh"
$illumposition 0.637 0.000 35.954
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$attachment "anim_attachment_head" "ValveBiped.Bip01_Head1" -0.00 0.00 0.00 rotate -90.00 -90.00 0.00
$attachment "mouth" "ValveBiped.Bip01_Head1" 1.10 -6.00 -0.18 rotate 0.00 -80.00 -90.00
$attachment "eyes" "ValveBiped.Bip01_Head1" 3.83 -4.03 -0.14 rotate 0.00 -80.10 -90.00
$collisionjoints "phymodel.smd" {
	$mass 90.0
	$inertia 10.00
	$damping 0.01
	$rotdamping 1.50
	$rootbone "hips"

	$jointconstrain "rightupleg" x limit -17.00 21.00 0.00
	$jointconstrain "rightupleg" y limit -82.00 77.00 0.00
	$jointconstrain "rightupleg" z limit -61.00 8.00 0.00

	$jointconstrain "rightleg" x limit -8.00 23.00 0.00
	$jointconstrain "rightleg" y limit 0.00 111.00 0.00
	$jointconstrain "rightleg" z limit 0.00 0.00 0.00

	$jointconstrain "leftupleg" x limit -19.00 17.00 0.00
	$jointconstrain "leftupleg" y limit -75.00 102.00 0.00
	$jointconstrain "leftupleg" z limit -57.00 12.00 0.00

	$jointconstrain "leftleg" x limit -32.00 14.00 0.00
	$jointconstrain "leftleg" y limit -106.00 0.00 0.00
	$jointconstrain "leftleg" z limit 0.00 0.00 0.00

	$jointconstrain "leftfoot" x limit -61.00 44.00 0.00
	$jointconstrain "leftfoot" y limit -55.00 46.00 0.00
	$jointconstrain "leftfoot" z limit -46.00 37.00 0.00

	$jointconstrain "spine" x limit -53.00 54.00 0.00
	$jointconstrain "spine" y limit -46.00 46.00 0.00
	$jointconstrain "spine" z limit -46.00 44.00 0.00

	$jointconstrain "spine2" x limit -12.00 19.00 0.00
	$jointconstrain "spine2" y limit -21.00 35.00 0.00
	$jointconstrain "spine2" z limit -23.00 23.00 0.00

	$jointconstrain "rightarm" x limit -57.00 61.00 0.00
	$jointconstrain "rightarm" y limit -57.00 91.00 0.00
	$jointconstrain "rightarm" z limit -84.00 50.00 0.00

	$jointconstrain "leftarm" x limit -55.00 58.00 0.00
	$jointconstrain "leftarm" y limit -91.00 59.00 0.00
	$jointconstrain "leftarm" z limit -84.00 55.00 0.00

	$jointconstrain "leftforearm" x limit -41.00 44.00 0.00
	$jointconstrain "leftforearm" y limit -142.00 0.00 0.00
	$jointconstrain "leftforearm" z limit -19.00 15.00 0.00

	$jointconstrain "valvebiped.bip01_l_hand" x limit -126.00 75.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" y limit -70.00 70.00 0.00
	$jointconstrain "valvebiped.bip01_l_hand" z limit -37.00 79.00 0.00

	$jointconstrain "rightforearm" x limit -41.00 41.00 0.00
	$jointconstrain "rightforearm" y limit 0.00 122.00 0.00
	$jointconstrain "rightforearm" z limit -12.00 8.00 0.00

	$jointconstrain "valvebiped.bip01_r_hand" x limit -70.00 82.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" y limit -37.00 54.00 0.00
	$jointconstrain "valvebiped.bip01_r_hand" z limit -66.00 70.00 0.00

	$jointconstrain "valvebiped.bip01_head1" x limit -66.00 66.00 0.00
	$jointconstrain "valvebiped.bip01_head1" y limit -32.00 66.00 0.00
	$jointconstrain "valvebiped.bip01_head1" z limit -41.00 26.00 0.00

	$jointconstrain "rightfoot" x limit -53.00 59.00 0.00
	$jointconstrain "rightfoot" y limit -37.00 59.00 0.00
	$jointconstrain "rightfoot" z limit -55.00 59.00 0.00

}

yeah i got a english version of windows, and thanks um a big fat ass for the info and sorry about that XD i should have looked that up XD.