studiomdl error opening .qc

S

-=Superfly=-

Guest
When trying to compile my model with studiomdl I get the error saying there was an error opening the .qc this is my first time so my .qc is prolly ****ed, what wrong with it?

Code:
// Output .MDL
$modelname cube/cube.mdl
// Where to find your textures, usually "sourcesdk_content\cstrike\materialsrc\models\
$cdmaterials models

$staticprop

$scale 1.0

// The name of your model, in ./cube format.
$body studio "./cube"

// Sequences: All sequences in $cd must have an animation sequence, whether there's animation or not.
$sequence idle "cube" loop fps 15

// You can make a separate collision model for complex structures, which goes here.
// Otherwise just use the same model as above.
$collisionmodel "cube.smd"
{
// Mass in kilograms for when the model is used as a prop_phys
$Mass 100
$concave
}
 
when I got that error when I was first figuring out compiling, it was because the .qc file wasn't actually a .qc file. You probably saved it as cube.qc, but sometimes it makes it into a .txt anyways. The actually content in your qc should be fine, just make sure you save it properly and type it in correctly in the command prompt.
 
Either copy one of the sample .qc files in the :sourcesdk_content\cstrike\modelsrc\lamp folder and put it in your model folder, then just replace the information for the lamp model with the info for your model, and rename the .qc file to your model name. Or, if when you tried to make the .qc before and it saved as a .txt, it's because you right-clicked and said create a new text document. This saves it as a .txt and not a .qc. You have to open up notepad and paste the info from your .qc.txt thing, into a new document in notepad. Then save that as sphere.qc, and make sure you change the file type to all files, instead of the default.txt. That should work, hopefully it makes sense, but keep trying, once you figure it out it gets easy.
 
Thanks, I tried that and I think it worked but I have no idea where it sent the file to :eek:
 
check the models folder in any game. it will be in one of those three places i think (cs, hl2, hl2 dm models folders. mine are usually in the hl2dm models folder).
 
$modelname "bball.mdl"
$scale 1.0

$cd ".\"
$body "Body" bball_ref.smd
$cdmaterials "bball" //This must be the location of your VMT texture file relevant to the materials folder as before
$staticprop

// 1 sequence
$sequence idle "bball_idle" fps 5 ACT_IDLE 1

$surfaceprop "concrete"

$keyvalues { "prop_data" {"base" "stone.small" }


$collisionmodel "bball_phys.smd" {
// Mass in kilograms

$concave
$mass 4.54
}



Thats my .qc file. It compiles perfectly in studiomdl.exe but when I try and open the model in HLMV it says Error opening model. The smp and qc files are in the sourcesdk_content\cstrike\modelsrc folder and the vmt and vtf files are in the sourcesdk_content\cstrike\materialsrc folder. ANy help?
 
do you actualy have an animation smd called bball_idle.smd and a phys called bball_phys? and also do you have a bone and a texture applyed to your model before exporting?
 
I didnt do the actuall modelling. it was done by a friend in 3ds Max and yes he did apply a texture to it and I told you where I put it.
 
Back
Top