MDL Compiler Crashing (studiomdl.exe)

Beakshy

Newbie
Joined
Feb 16, 2004
Messages
42
Reaction score
0
Hello, I've been working on a QC file trying to get it to compile. I've looked at many tutorials and tried and many things trying to get this right with little luck... but now after studiomdl reads the 3 smds a windows pops up with an error saying it’s crashing and gives the classic windows send error report. This isn’t just happening one time it happens everytime I boot studiomdl up and try to run that qc file. The odd thing is I took this exact code from the QC Lamp Example in the SourceSDK folder and just modified to fit my models needs. What’s put me in stump even more is that I can compile that lamp QC file and it compiles without crashing. I know this may sound like this is some noob question but I really cant find anything in that QC file that would suggest studiomdl to crash but I’ll let you be the judge of that. All of the SMD files were exported correctly as well as the VTF and VMT files which are all in place so here’s what I’m wondering…has has been having any of the same problems. Here’s the QC file, realize I’m still new to this so if there’s something wrong please tell me.

QC FILE BELOW

// Output .MDL
$modelname props/sandbag.mdl

// Directory of .BMP
$cdmaterials materials/models/props
$staticprop

// Write textures into a ???T.mdl
//$externaltextures

$scale 1.0

// whole body
$body studio "sandbag"

// sequences: all sequences are in $cd
$sequence idle "sandbag_idle.smd" loop fps 1

$collisionmodel "sandbag_phys.smd" {
// Mass in kilograms
$Mass 100
$concave
}

Thank you. Beakshy
 
if it crashes on the 3rd smd read, that means your physbox smd is borked. Try taking off the concave tag, if that dont work, take off the collision stuff.
 
no, the problem is (My guess) is that you just copied your ref model and called it your collision model. Either make a simple box as your collision model, or remove all the smooth groups.
 
Thank you for your comments. Yet I tried both of suggestions and in both cases everywhich way ... the same error was recieved.
 
your collision model needs to have texture associated with it... open the .smd in notepade and edit->replace "null.bmp" with your "texture.tga"
 
Back
Top