From smd to mdl?(.qc issue)

Nostradamus

Newbie
Joined
May 17, 2003
Messages
980
Reaction score
0
Argh this is driving me nuts!!!!
Just trying to compile a mdl file from the 3 smd files and i fail misserably...this is how i have the stuff set up so far:

In username\sourcesdk_content\hl2mp\modelsrc\static\barsign1
I have my 3 smd files and the qc file

In username\sourcesdk_content\hl2mp\materialsrc\models\static\barsign
I have my tga file

In username\half-life 2 deathmatch\hl2mp\materials\barsign
I have my vtf and vmt files

this is how my qc file looks like:

Code:
// Output .MDL
$modelname static/barsign1/barsign1.mdl 

// Directory of .TGA
$cdmaterials D:\Programmer\Steam\SteamApps\username\sourcesdk_content\hl2mp\materialsrc\models\static\barsign

$staticprop
$scale 1.0

$body studio "D:\Programmer\Steam\SteamApps\username\sourcesdk_content\hl2mp\modelsrc\static\barsign1\barsign1.smd"



$sequence idle "barsign1_idle" loop fps 1
//This is your still.smd file you exported.

//Just use your ref so the compiler autocreates a physics box for you for now.
$collisionmodel "barsign1__phys.smd" {
     // Mass in kilograms
     $Mass 100
   $concave
}

When I run the qc file(with the studiomdl gui app) I get an error saying something about $cdmaterials being an erronous command or sumthing...

Any help?
thanks!
 
you're not suppose to put in the whole path. you simply put in the shortened paths.
for example cdmaterials should be
$cdmaterials models/static/barsign
also note u dont put the path to the tgas, you have to compile the tgas to vtf and write vmts.
same with the body studio, that should be relative to the qc file so if the qc files is in the modelsrc folder you write
$body studio static/barsign1/barsign1.smd
 
Thanks, but the message I get is still

Bad Command $cdmaterials

could it be that it's messed up because of the gui app i use?

EDIT: just tried using promt and I get an "Error opening barsign1.qc" ... :devil:

Never mind I think I got it to work now... :afro:
Stupid gui worked crap...
 
Ok new problem... It find all the smd files, but then It says it writes to hl2mp\models/static\blabla

note the slash between models and static... wtf? my $modelname only has static/barsign1/barsign1.mdl ... odd? yes...

edit: figured it out... when do i learn :D

thanks me and you! :D
 
oh, also; make sure you don't have smoothing groups on your phys model.
 
Back
Top