Model compiling - ARGH

Recoil

Newbie
Joined
Aug 26, 2003
Messages
1,688
Reaction score
0
Ok, I have a problem with compiling a model:

I compile it, I place it in the right directory, I open SourceSDK to take a look at it with the modelviewer. I open the model file. Great. But there's nothing to be seen! There's just nothing - I don't understand argh.... I compiled a model before, and that one worked. I also have the materials ready, but this can't be of any importance, I know that models also work without materials. Any ideas? I think it might be a problem of the newer version of the compiler or so.

btw, those small additional files (vtx80, vtx90 dunno) are way smaller in size than the ones from the working model... though I compiled them the same way.
 
This is the .bat for the compiler:

studiomdl.exe ..\cstrike_sample_content\model_sources\lamp\1911.qc
pause

...and this is the .qc

$modelname v_1911.mdl
$cdmaterials models\1911
$staticprop
$surfaceprop "metal"
$scale 1.0

// Base or Reference .SMD
$body studio "1911"

// sequences: all sequences are in $cd
$sequence idle "1911_idle" loop fps 15
 
Are you certain the model is actually being compiled?

From my experience studiomdl is an absolute pain to convince to actually compile anything!

I didn't think the 'cstrike_sample_content' actually existed anymore?
 
From my experience studiomdl is an absolute pain to convince to actually compile anything!

Well... an actual file comes out... but as I said, it's rather small. So yeah, maybe it's being compiled the wrong way.

I didn't think the 'cstrike_sample_content' actually existed anymore?

It does for me :| hm, but there shouldn't be any problems caused be the path? ;)
 
The path could cause a lot of problems, studiomdl won't compile if things are all in exactly the right place.

I'm sure you shouldn't have the 'cstrike_sample_content' folder anymore. I don't. There should've been a directory restructure quite a few updates a go. It should do it for you, but if it didn't I think it was supposed to if you run the 'reset game config' and 'refresh sdk content' options in the SDK.
 
No, doesn't change anything at all, the folders are all the same.
 
That's strange...

There should be a 'sourcesdk' folder, and a 'sourcesdk_content' folder. The 'sourcesdk_content' folder has 'cstrike', 'hl2' and 'hl2mp' folder all with different bits of sample content in em.

Anyway...I'm almost certain it's not compiling properly down to the directories. Try making a shortcut to studiomdl somewhere and in the 'target' box use this...

...Steam\SteamApps\username\sourcesdk\bin\studiomdl.exe "the full directory path with the qc file at the end"

So for example...

Code:
C:\Steam\SteamApps\Recoil\sourcesdk\bin\studiomdl.exe "C:\Steam\SteamApps\Recoil\sourcesdk_content\hl2\modelsrc\1911.qc"

Just out of curiosity..what is it that you're compiling?
 
Ok, I'll try that whole path...

Just out of curiosity..what is it that you're compiling?

A 1911 view-model I made, I'd like to see it with effects on the materials (chrome :))
 
Ahh i see. I thought you were compiling a proper weapon model so I was kinda wonering why '$staticprop' was in the qc, and a lot of other stuff missing! :)
 
Hm, still doesn't work. All the same.

It's not for ingame use yet :) I'd just like to see the model for now.
 
So is the model actually showing up in the model viewer list? but not in the actual view?
 
Yeah, there's a file. And it's also in the model viewer list, I can open it. But there's nothing to be seen in the viewer.

Hm, do you want to try it? Shall I send you the smd's and all?
 
The only thing I can think of is possibly a problem with the textures...

You could send me the if you like yeah
 
are you following the guide on the sdk documentaion to compile them in the cmd prompt? make sure u freeze your model before exporting and make sure it has a bone attached to it and also if your using xsi if the model doesnt have a texture assigned to it when you export then it exports an empty smd file.
 
Back
Top