LOD Model help needed

pur3r4ge

Newbie
Joined
Aug 30, 2004
Messages
187
Reaction score
0
Hey all. I'm trying to compile a custom static prop, with an LOD model. Currently, whenever I run studiomdl, I get the following output:

Code:
C:\Program Files\Valve\Steam\SteamApps\<email removed>\sourcesdk\bin>studiomdl
.exe C:\OffLimits\fire_barrel.qc
c:\offlimits\, c:\program files\valve\steam\SteamApps\SourceMods\offlimits\, pat
h fire_barrel
Working on "fire_barrel.qc"
SMD MODEL models/ol_deadcity/fire_barrel.smd
SMD MODEL models/ol_deadcity/fire_barrel_idle.smd
SMD MODEL models/ol_deadcity/fire_barrel_phys.smd
ERROR: Unknown replace model 'fire_barrel'
ERROR: Aborted Processing on 'ol_deadcity/fire_barrel.smd'

My .qc file is as follows:

Code:
$modelname ol_deadcity/fire_barrel.smd
$cdmaterials models/ol_debris
$staticprop
$scale 1
$body studio "models/ol_deadcity/fire_barrel"
$sequence idle "models/ol_deadcity/fire_barrel_idle.smd" fps 1
$collisionmodel "models/ol_deadcity/fire_barrel_phys.smd" {
       $Mass 1000
   $concave
}

$lod 100
{
replacemodel "fire_barrel" "fire_barrel_lod1"
}

I have the following models in my /models/ol_deadcity/ folder:

fire_barrel.smd
fire_barrel_idle.smd
fire_barrel_phys.smd
fire_barrel_lod1.smd

Does anyone have any idea why I might be getting that error? If I comment out the $lod command from the .qc, it compiles fine, so it only gets the error when it reaches that point. I've compared against the sample .qc files and can't see a difference.

Any help would be very appreciated.
 
As is typical, I figured it out after a day of trying, just minutes after posting for help :)

I changed the .qc file to the following:

Code:
$modelname ol_deadcity/fire_barrel.mdl
$cdmaterials models/ol_debris
$staticprop
$scale 10
$body studio "models/ol_deadcity/fire_barrel"
$sequence idle "models/ol_deadcity/fire_barrel_idle.smd" fps 1
$collisionmodel "models/ol_deadcity/fire_barrel_phys.smd" {
       $Mass 1000
   $concave
}

$lod 100
{
replacemodel "models/ol_deadcity/fire_barrel" "models/ol_deadcity/fire_barrel_lod1"
}

Basically I added complete relative paths to the replacemodel parameter within $lod.

hurrrrr.
 
Back
Top