Problem with QC code for flexes.

Find interesting thing on developer.valvesoftware.com. Called “flexpair”.
I was think that this feature help me make face flexes much faster. But i can’t make it work. Compiler say:


(41): - Rule for unknown flex right_mouth_corner_down
    ERROR: Aborted Processing on 'femaledragon.mdl'
  ... Compiling ".\femaledragon.qc" finished. Check above for any errors.


Idk, what i doing wrong. Make all things as Valve explain on their site.

My QC code:


$modelname "femaledragon.mdl"
$surfaceprop "flesh"
$cdmaterials "models\femaledragon\"
$eyeposition 0 0 70
$attachment "eyes" "head" 0.00 8.80 -5.50 rotate 45 90 0
$attachment "righteye" "eye.R" 0.60 1.00 0.00 rotate 0 90 0
$attachment "lefteye" "eye.L" -0.60 1.00 0.00 rotate 0 90 0
$attachment "mouth" "head" 0.00 7.00 -8.00 rotate 45 90 0
$model model "ref"	{

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

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

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

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

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

flexfile "mouth_corner_down.vta" {
	flexpair "mouth_corner_down" 1.0 frame 10
}
flexcontroller "phoneme" "right_mouth_corner_down" "left_mouth_corner_down" "range" 0 1

%right_mouth_corner_down = right_mouth_corner_down (line(41) where compiling stops)
%left_mouth_corner_down = left_mouth_corner_down

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

	eyeball righteye "eye.R" -2.7 -20.77 43.93 "eyeball_r" 4.00 1 "pupil" 4
	eyeball lefteye "eye.l"  2.7 -20.77 43.93 "eyeball_l" 4.00 -1 "pupil" 4
	mouth 0 "mouth" "Head" 0 1 0

}
$collisionjoints phy.smd {

	$mass 30.0
	$inertia 10.00
	$damping 0.05
	$rotdamping 5.00
	$rootbone "hip"

	$jointconstrain "leg1.l" x limit -100.00 90.00 0.00
	$jointconstrain "leg1.l" y limit -50.00 50.00 0.00
	$jointconstrain "leg1.l" z limit -40.00 100.00 0.00

	$jointconstrain "leg2.l" x limit -30.00 65.00 0.00
	$jointconstrain "leg2.l" y limit -20.00 20.00 0.00
	$jointconstrain "leg2.l" z limit -20.00 20.00 0.00

	$jointconstrain "leg3.l" x limit -80.00 50.00 0.00
	$jointconstrain "leg3.l" y limit -10.00 10.00 0.00
	$jointconstrain "leg3.l" z limit -10.00 10.00 0.00

	$jointconstrain "leg1.r" x limit 0.00 0.00 0.00
	$jointconstrain "leg1.r" y limit 0.00 0.00 0.00
	$jointconstrain "leg1.r" z limit -100.00 40.00 0.00

	$jointconstrain "leg2.r" x limit -30.00 60.00 0.00
	$jointconstrain "leg2.r" y limit -20.00 20.00 0.00
	$jointconstrain "leg2.r" z limit -20.00 20.00 0.00

	$jointconstrain "leg3.r" x limit -80.00 50.00 0.00
	$jointconstrain "leg3.r" y limit 0.00 0.00 0.00
	$jointconstrain "leg3.r" z limit 0.00 0.00 0.00

	$jointconstrain "foot1.r" x limit -50.00 50.00 0.00
	$jointconstrain "foot1.r" y limit -20.00 20.00 0.00
	$jointconstrain "foot1.r" z limit -30.00 30.00 0.00

	$jointconstrain "hip.001" x limit -110.00 60.00 0.00
	$jointconstrain "hip.001" y limit 0.00 0.00 0.00
	$jointconstrain "hip.001" z limit -30.00 30.00 0.00

	$jointconstrain "hip.002" x limit -70.00 70.00 0.00
	$jointconstrain "hip.002" y limit 0.00 0.00 0.00
	$jointconstrain "hip.002" z limit 0.00 0.00 0.00

	$jointconstrain "foot1.l" x limit -50.00 50.00 0.00
	$jointconstrain "foot1.l" y limit -20.00 20.00 0.00
	$jointconstrain "foot1.l" z limit -30.00 30.00 0.00

	$jointconstrain "spine1" x limit -40.00 60.00 0.00
	$jointconstrain "spine1" y limit -30.00 30.00 0.00
	$jointconstrain "spine1" z limit -20.00 20.00 0.00

	$jointconstrain "spine2" x limit -40.00 60.00 0.00
	$jointconstrain "spine2" y limit 0.00 0.00 0.00
	$jointconstrain "spine2" z limit 0.00 0.00 0.00

	$jointconstrain "wing1.r" x limit -90.00 90.00 0.00
	$jointconstrain "wing1.r" y limit -30.00 30.00 0.00
	$jointconstrain "wing1.r" z limit -20.00 90.00 0.00

	$jointconstrain "wing2.r" x limit -80.00 40.00 0.00
	$jointconstrain "wing2.r" y limit -30.00 30.00 0.00
	$jointconstrain "wing2.r" z limit -30.00 30.00 0.00

	$jointconstrain "shoulder.r" x limit -30.00 30.00 0.00
	$jointconstrain "shoulder.r" y limit -30.00 30.00 0.00
	$jointconstrain "shoulder.r" z limit -30.00 30.00 0.00

	$jointconstrain "upperarm.r" x limit -90.00 60.00 0.00
	$jointconstrain "upperarm.r" y limit -40.00 40.00 0.00
	$jointconstrain "upperarm.r" z limit -70.00 70.00 0.00

	$jointconstrain "lowerarm.r" x limit -10.00 10.00 0.00
	$jointconstrain "lowerarm.r" y limit -10.00 10.00 0.00
	$jointconstrain "lowerarm.r" z limit 0.00 140.00 0.00

	$jointconstrain "hand.r" x limit -90.00 90.00 0.00
	$jointconstrain "hand.r" y limit -90.00 90.00 0.00
	$jointconstrain "hand.r" z limit -70.00 70.00 0.00

	$jointconstrain "shoulder.l" x limit -30.00 30.00 0.00
	$jointconstrain "shoulder.l" y limit -30.00 30.00 0.00
	$jointconstrain "shoulder.l" z limit -30.00 30.00 0.00

	$jointconstrain "upperarm.l" x limit -90.00 60.00 0.00
	$jointconstrain "upperarm.l" y limit -40.00 40.00 0.00
	$jointconstrain "upperarm.l" z limit -70.00 70.00 0.00

	$jointconstrain "lowerarm.l" x limit -10.00 10.00 0.00
	$jointconstrain "lowerarm.l" y limit -10.00 10.00 0.00
	$jointconstrain "lowerarm.l" z limit -140.00 0.00 0.00

	$jointconstrain "hand.l" x limit -90.00 90.00 0.00
	$jointconstrain "hand.l" y limit -90.00 90.00 0.00
	$jointconstrain "hand.l" z limit -70.00 70.00 0.00

	$jointconstrain "neck" x limit -20.00 40.00 0.00
	$jointconstrain "neck" y limit -21.00 21.00 0.00
	$jointconstrain "neck" z limit -30.00 30.00 0.00

	$jointconstrain "head" x limit -40.00 40.00 0.00
	$jointconstrain "head" y limit -40.00 40.00 0.00
	$jointconstrain "head" z limit -50.00 50.00 0.00

	$jointconstrain "wing1.l" x limit -90.00 90.00 0.00
	$jointconstrain "wing1.l" y limit -30.00 30.00 0.00
	$jointconstrain "wing1.l" z limit -90.00 20.00 0.00

	$jointconstrain "wing2.l" x limit -80.00 40.00 0.00
	$jointconstrain "wing2.l" y limit -30.00 30.00 0.00
	$jointconstrain "wing2.l" z limit -30.00 30.00 0.00

	$jointconstrain "hip.003" x limit -60.00 60.00 0.00
	$jointconstrain "hip.003" y limit 0.00 0.00 0.00
	$jointconstrain "hip.003" z limit -60.00 60.00 0.00
	$noselfcollisions
}
$sequence ragdoll 		"ragdoll" 		FPS 30 		activity ACT_DIERAGDOLL 1

I think you need to change


%right_mouth_corner_down = right_mouth_corner_down
%left_mouth_corner_down = left_mouth_corner_down

to


%mouth_corner_downR = right_mouth_corner_down
%mouth_corner_downL = left_mouth_corner_down

Oh. Now it works.
Thank’s for help!