• GUIStudioMDL error
    2 replies, posted
Hello, I've been working on a model for GMod, and the first run-through it worked fine, only it was super small, the texture was a little off, and gmod thought it was an effect. So I edited the qc to scale it up and fix the texture and edit the first line so it should see it as a model, and when I went to recompile I get this: [CODE]GUIStudioMDL 2.2/Source - © 2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/ Created command line: D:\SteamLibrary\SteamApps\common\SourceSDK\bin\orangebox\bin\studiomdl.exe -game D:\SteamLibrary\SteamApps\common\GarrysMod\garrysmod -nop4 -nox360 "D:\gamestuff etc\game assets\spagget\old\spagget.qc" qdir: "d:\gamestuff etc\game assets\spagget\old\" gamedir: "D:\SteamLibrary\SteamApps\common\GarrysMod\garrysmod\" g_path: "D:\gamestuff etc\game assets\spagget\old\spagget.qc" Building binary model files... Working on "spagget.qc" ERROR: d:\gamestuff etc\game assets\spagget\old\spagget.qc(1): - could not load file 'spagget\spagget.mdl' WARNING: Leaking 1 elements [/CODE] what have I broken? the qc is as follows: [CODE]$model "spagget" "spagget\spagget.mdl" $scale 7 $body mybody "spagget.smd" $staticprop $surfaceprop "glass" $cdmaterials "spagget" $sequence idle "spagget_idle.smd" loop fps 1 $collisionmodel "spagget.smd"[/CODE]
The first line is bugged. Unless you're wanting to use the command ($model) that's meant to point to a .SMD file, you're currently using the wrong command for that line. Since you've already got $body in use, you'll want to change it to $modelname instead, as well as remove the first "spagget" from that line. What you have now: [code]$model "spagget" "spagget\spagget.mdl"[/code] What you should have instead: [code]$modelname "spagget\spagget.mdl"[/code] Your .QC after applying the changes: [code]$modelname "spagget\spagget.mdl" $scale 7 $body mybody "spagget.smd" $staticprop $surfaceprop "glass" $cdmaterials "spagget" $sequence idle "spagget_idle.smd" loop fps 1 $collisionmodel "spagget.smd"[/code]
[QUOTE=Katra804;49555536]The first line is bugged. Unless you're wanting to use the command ($model) that's meant to point to a .SMD file, you're currently using the wrong command for that line. Since you've already got $body in use, you'll want to change it to $modelname instead, as well as remove the first "spagget" from that line. What you have now: [code]$model "spagget" "spagget\spagget.mdl"[/code] What you should have instead: [code]$modelname "spagget\spagget.mdl"[/code] Your .QC after applying the changes: [code]$modelname "spagget\spagget.mdl" $scale 7 $body mybody "spagget.smd" $staticprop $surfaceprop "glass" $cdmaterials "spagget" $sequence idle "spagget_idle.smd" loop fps 1 $collisionmodel "spagget.smd"[/code][/QUOTE] Thanks, it compiles again, the funny thing is is I THOUGHT I already tried reverting the qc, weird
Sorry, you need to Log In to post a reply to this thread.