StudioMDL refuses to compile my specific model for no reason.

All my other QC’s compile fine if it’s a static prop, but when I try to compile my weapon model it comes up with a mysterious error

qdir:    "c:\users\hp\documents\3dsmax\export\krinkov\"
gamedir: "c:\games\steam\steamapps\SourceMods	estbed\"
g_path:  "C:\Users\HP\Documents\3dsmax\export\krinkov\ak74u.qc"
Building binary model files...
Working on "ak74u.qc"
ERROR: c:\users\hp\documents\3dsmax\export\krinkov\ak74u.qc(1): - bad command $

here is my qc

$modelname "weapons\krinkov\v_krinkov.mdl"
$cdmaterials "models\Weapons\hands" 
$cdmaterials "models\Weapons\krinkov"
// whole body
$body studio "refs.smd"
$origin 0 0 68
//Muzzle flash
$attachment "muzzle" "ValveBiped.muzzle" 0 0 0
//Shell eject
$attachment "1" "ValveBiped.eject" -1.00 0.00 0.00 rotate -0 90 -180
$sequence shoot "shoot" snap fps 30 activity ACT_VM_PRIMARYATTACK 1 { event AE_MUZZLEFLASH 0 "PISTOL MUZZLE" } node 2
$sequence draw "draw" snap fps 30 activity ACT_VM_DRAW 1 node 0

You need to put the location of the files in the .qc.

You don’t for StudioMDL/GuiStudioMDL only for StudioCompiler.

Hmm, tried re-exporting the model?
Sometimes GUIstudioMDL gives errors about really weird stuff, but compiles it the second time I’ve exported a model. Dunno why.

I moved the QC file to the other pc, and it compiles fine.

I think it’s a problem with Vista, any ideas ;(?

Vista works fine for compiling.

Yeah, it’s compiling all my other props EXCEPT this :argh:

I think this happened to someone else when they copied and pasted the .qc. You could try going through and manually replace every $ with your own.