GUIStudioMDL Error : unknown model option "$model"

Well that’s a silly error.

QC :


$cd "C:\Users\User\Downloads\SFM-TF2-BP\TF2 - Hat Making Project 2014\Pyro\output"
$modelname "player/goggless_engineer.mdl"
$model "engineer" "engineer_LOD0.smd" {
     flexfile "mdldecompiler_expressions.vta" {
          flex "N" frame 1
          flex "MB" frame 2
          flex "PP" frame 3
          flex "DS" frame 4
          flex "GK" frame 5
          flex "T" frame 6
          flex "TH" frame 7
          flex "SH" frame 8
          flex "OO" frame 9
          flex "OH" frame 10
          flex "WQ" frame 11
          flex "FV" frame 12
          flex "UH" frame 13
          flex "AW" frame 14
          flex "AH" frame 15
          flex "AH2" frame 16
          flex "AE" frame 17
          flex "AE2" frame 18
          flex "IH" frame 19
          flex "Y" frame 20
          flex "EE" frame 21
          flex "ER" frame 22
          flex "silence1" frame 23
          flex "happySmall" frame 24
          flex "madUpper" frame 25
          flex "specialAction01Upper" frame 26
          flex "defaultFaceUpper" frame 27
          flex "scaredUpper" frame 28
          flex "painBigUpper" frame 29
          flex "painSmallUpper" frame 30
          flex "happyBigUpper" frame 31
          flex "happySmallUpper" frame 32
          flex "specialAction01" frame 33
          flex "defaultFace" frame 34
          flex "scared" frame 35
          flex "mad" frame 36
          flex "painBig" frame 37
          flex "painSmall" frame 38
          flex "happyBig" frame 39
          flex "happyBigClosed" frame 40
          flexpair "CloseLidLo" 1.0 frame 41
          flexpair "CloseLidUp" 1.0 frame 42
     }
     eyeball righteye bip_head -1.342 72.250 3.108 eyeball_r 1.200  1.500 engie_nogoggles_head 0.600
     eyeball lefteye bip_head 1.342 72.250 3.108 eyeball_l 1.200  -1.500 engie_nogoggles_head 0.600
     // If you uncomment the following lines the eyes will be closed
     // I'm including it anyway in case anyone wants to experiment
     // eyelid  upper_right "mdldecompiler_expressions.vta" lowerer 46 -1.000000 neutral 46 0.000000 raiser 46 1.000000 split 0.1 eyeball righteye
     // eyelid  lower_right "mdldecompiler_expressions.vta" lowerer 46 -1.000000 neutral 46 0.000000 raiser 46 1.000000  split 0.1 eyeball righteye
     // If you uncomment the following lines the eyes will be closed
     // I'm including it anyway in case anyone wants to experiment
     // eyelid  upper_left "mdldecompiler_expressions.vta" lowerer 46 -1.000000 neutral 46 0.000000 raiser 46 1.000000 split -0.1 eyeball lefteye
     // eyelid  lower_left "mdldecompiler_expressions.vta" lowerer 46 -1.000000 neutral 46 0.000000 raiser 46 1.000000  split -0.1 eyeball lefteye
     flexcontroller eyelids right_CloseLid "range" -1.000 1.000
     flexcontroller eyelids left_CloseLid "range" -1.000 1.000
     flexcontroller eyelids multi_CloseLid "range" -1.000 1.000
     flexcontroller blink blink "range" 0.000 1.000
     flexcontroller happySmall happySmall "range" 0.000 1.000
     flexcontroller happySmallUpper happySmallUpper "range" 0.000 1.000
     flexcontroller specialAction01Upper specialAction01Upper "range" 0.000 1.000
     flexcontroller painSmall painSmall "range" 0.000 1.000
     flexcontroller ER ER "range" 0.000 1.000
     flexcontroller AE2 AE2 "range" 0.000 1.000
     flexcontroller happyBigClosed happyBigClosed "range" 0.000 1.000
     flexcontroller painBig painBig "range" 0.000 1.000
     flexcontroller EE EE "range" 0.000 1.000
     flexcontroller silence1 silence1 "range" 0.000 1.000
     flexcontroller scared scared "range" 0.000 1.000
     flexcontroller defaultFace defaultFace "range" 0.000 1.000
     flexcontroller specialAction01 specialAction01 "range" 0.000 1.000
     flexcontroller madUpper madUpper "range" 0.000 1.000
     flexcontroller silence silence "range" 0.000 1.000
     flexcontroller happyBigUpper happyBigUpper "range" 0.000 1.000
     flexcontroller IH IH "range" 0.000 1.000
     flexcontroller Y Y "range" 0.000 1.000
     flexcontroller painBigUpper painBigUpper "range" 0.000 1.000
     flexcontroller painSmallUpper painSmallUpper "range" 0.000 1.000
     flexcontroller mad mad "range" 0.000 1.000
     flexcontroller happyBig happyBig "range" 0.000 1.000
     flexcontroller defaultFaceUpper defaultFaceUpper "range" 0.000 1.000
     flexcontroller scaredUpper scaredUpper "range" 0.000 1.000
     flexcontroller N N "range" 0.000 1.000
     flexcontroller MB MB "range" 0.000 1.000
     flexcontroller PP PP "range" 0.000 1.000
     flexcontroller DS DS "range" 0.000 1.000
     flexcontroller GK GK "range" 0.000 1.000
     flexcontroller T T "range" 0.000 1.000
     flexcontroller TH TH "range" 0.000 1.000
     flexcontroller SH SH "range" 0.000 1.000
     flexcontroller OO OO "range" 0.000 1.000
     flexcontroller OH OH "range" 0.000 1.000
     flexcontroller WQ WQ "range" 0.000 1.000
     flexcontroller FV FV "range" 0.000 1.000
     flexcontroller UH UH "range" 0.000 1.000
     flexcontroller AW AW "range" 0.000 1.000
     flexcontroller AH AH "range" 0.000 1.000
     flexcontroller AH2 AH2 "range" 0.000 1.000
     flexcontroller AE AE "range" 0.000 1.000
     flexcontroller eyes eyes_updown "range" -45.000 45.000
     flexcontroller eyes eyes_rightleft "range" -45.000 45.000
    %CloseLidLoR = (( 0.500 + ( right_CloseLid /  2.000)) - (( multi_CloseLid /  2.000) * ( 1.000 +  right_CloseLid)))
    %CloseLidUpR = (( 0.500 + ( right_CloseLid /  2.000)) + (( multi_CloseLid /  2.000) * ( 1.000 +  right_CloseLid)))
    %CloseLidLoL = (( 0.500 + ( left_CloseLid /  2.000)) - (( multi_CloseLid /  2.000) * ( 1.000 +  left_CloseLid)))
    %CloseLidUpL = (( 0.500 + ( left_CloseLid /  2.000)) + (( multi_CloseLid /  2.000) * ( 1.000 +  left_CloseLid)))
    %N =  N
    %MB =  MB
    %PP =  PP
    %DS =  DS
    %GK =  GK
    %T =  T
    %TH =  TH
    %SH =  SH
    %OO =  OO
    %OH =  OH
    %WQ =  WQ
    %FV =  FV
    %UH =  UH
    %AW =  AW
    %AH =  AH
    %AH2 =  AH2
    %AE =  AE
    %AE2 =  AE2
    %IH =  IH
    %Y =  Y
    %EE =  EE
    %ER =  ER
    %silence1 =  silence1
    %happySmall =  happySmall
    %madUpper =  madUpper
    %specialAction01Upper =  specialAction01Upper
    %defaultFaceUpper =  defaultFaceUpper
    %scaredUpper =  scaredUpper
    %painBigUpper =  painBigUpper
    %painSmallUpper =  painSmallUpper
    %happyBigUpper =  happyBigUpper
    %happySmallUpper =  happySmallUpper
    %specialAction01 =  specialAction01
    %defaultFace =  defaultFace
    %scared =  scared
    %mad =  mad
    %painBig =  painBig
    %painSmall =  painSmall
    %happyBig =  happyBig
    %happyBigClosed =  happyBigClosed
$model "googles" "UnknownModelName.smd"
$model "googles" "goggles_neck.smd"
$model "googles" "goggles_forehead.smd"
$poseparameter body_pitch -45.00 45.00
$poseparameter body_yaw -45.00 45.00
$cdmaterials "models\player\engineer\"
$cdmaterials "models\player\medic\"
$cdmaterials "models\effects\"
$cdmaterials ""
$texturegroup skinfamilies
{
	{"engie_nogoggles_head.vmt"
 "eyeball_l.vmt"
 "eyeball_r.vmt"
}
 	{"engie_nogoggles_head_blue.vmt"
 "eyeball_l.vmt"
 "eyeball_r.vmt"
}
 	{"engie_nogoggles_head_invun.vmt"
 "eyeball_invun.vmt"
 "eyeball_invun.vmt"
}
 	{"engie_nogoggles_head_invun_blue.vmt"
 "eyeball_invun.vmt"
 "eyeball_invun.vmt"
}
 	{"engie_nogoggles_head_zombie.vmt"
 "eyeball_invun.vmt"
 "eyeball_invun.vmt"
}
 	{"engie_nogoggles_head_blue_zombie.vmt"
 "eyeball_invun.vmt"
 "eyeball_invun.vmt"
}
 	{"engie_nogoggles_head_invun.vmt"
 "eyeball_invun.vmt"
 "eyeball_invun.vmt"
}
 	{"engie_nogoggles_head_invun_blue.vmt"
 "eyeball_invun.vmt"
 "eyeball_invun.vmt"
}
 }
$hboxset "engineer"
$hbox 1 "bip_head" -6.000  -11.000  -8.000  6.000  4.000  6.000
$hbox 3 "bip_spine_0" -9.000  -2.000  -10.000  9.000  4.000  4.000
$hbox 3 "bip_spine_1" -9.000  -3.000  -10.500  9.000  3.000  4.500
$hbox 2 "bip_spine_2" -10.000  -3.000  -9.000  10.000  3.000  5.000
$hbox 2 "bip_spine_3" -10.000  -3.500  -10.000  10.000  1.500  4.000
$hbox 4 "bip_upperArm_L" 0.000  -3.500  -2.750  12.000  3.500  3.250
$hbox 4 "bip_lowerArm_L" 0.000  -2.250  -3.250  13.000  2.250  3.250
$hbox 4 "bip_hand_L" -3.500  -10.000  -3.000  1.500  0.000  5.000
$hbox 5 "bip_upperArm_R" 0.000  -3.500  -2.750  12.000  3.500  3.250
$hbox 5 "bip_lowerArm_R" 0.000  -3.250  -2.750  13.000  3.250  2.750
$hbox 5 "bip_hand_R" -2.500  0.500  -3.500  2.500  9.500  4.500
$hbox 6 "bip_hip_L" 2.000  -4.000  -5.000  16.000  4.000  4.000
$hbox 6 "bip_knee_L" 0.000  -2.250  -4.500  16.000  3.250  2.500
$hbox 6 "bip_foot_L" -2.000  -10.000  -3.000  2.000  2.000  3.000
$hbox 7 "bip_hip_R" 2.000  -4.000  -5.000  16.000  4.000  4.000
$hbox 7 "bip_knee_R" 0.000  -3.250  -4.500  16.000  2.250  2.500
$hbox 7 "bip_foot_R" -2.000  -2.000  -2.500  2.000  10.000  3.500
// Model uses material "engie_nogoggles_head.vmt"
// Model uses material "eyeball_l.vmt"
// Model uses material "eyeball_r.vmt"
// Model uses material "engineer_red.vmt"
// Model uses material "engineer_mech_hand.vmt"
// Model uses material "engineer_goggles.vmt"
// Model uses material "engie_nogoggles_head_blue.vmt"
// Model uses material "engineer_blue.vmt"
// Model uses material "engineer_mech_hand_blue.vmt"
// Model uses material "engie_nogoggles_head_invun.vmt"
// Model uses material "engineer_head_red_invun.vmt"
// Model uses material "eyeball_invun.vmt"
// Model uses material "engineer_red_invun.vmt"
// Model uses material "invulnfx_red.vmt"
// Model uses material "engie_nogoggles_head_invun_blue.vmt"
// Model uses material "engineer_head_blue_invun.vmt"
// Model uses material "engineer_blue_invun.vmt"
// Model uses material "invulnfx_blue.vmt"
// Model uses material "engie_nogoggles_head_zombie.vmt"
// Model uses material "engineer_red_zombie_alphatest.vmt"
// Model uses material "engie_nogoggles_head_blue_zombie.vmt"
// Model uses material "engineer_blue_zombie_alphatest.vmt"
// Model uses material "engineer_red_zombie_invun.vmt"
// Model uses material "engineer_blue_zombie_invun.vmt"
$attachment "head" "bip_head" 0.00 -10.66 1.23 rotate 74.70 -90.00 0.00
$attachment "exhaust" "bip_hand_R" -2.86 -0.54 2.68 rotate -37.72 -175.85 -11.65
$attachment "flag" "bip_spine_2" 0.12 1.92 9.64 rotate 0.95 -6.92 -1.52
$attachment "partyhat" "bip_head" 0.00 -9.26 -2.23 rotate 75.00 90.00 -180.00
$includemodel "player/engineer_animations.mdl"
$surfaceprop "flesh"
$eyeposition -0.000 -72.250 0.000
$illumposition -1.347 0.514 38.444
$sequence ref "ref" fps 30.00
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$ikchain rhand bip_hand_R knee  0.000 0.000 0.000
$ikchain lhand bip_hand_L knee  0.000 0.000 0.000
$ikchain rfoot bip_foot_R knee  0.000 0.000 0.000
$ikchain lfoot bip_foot_L knee  0.000 0.000 0.000


This might not be it, but try changing the slash in

player/goggless_engineer.mdl

to \

I tend to get errors if they are forward slashes.

Nope no luck.


$model "engineer" "engineer_LOD0.smd" {

The ‘{’ is never closed before


$model "googles" "UnknownModelName.smd"

Yeah add another close bracket after %happyBigClosed = happyBigClosed

Yay! It works :3