Model compiling error

Spike

L10: Glamorous Member
Feb 13, 2008
716
82
I've made a cannonball and when I try to compile it gives me this error:

Created command line: "C:\Program Files\Steam\steamapps\paumonsu\sourcesdk\bin\orangebox\bin\studiomdl.exe" -game "C:\Program Files\Steam\steamapps\paumonsu\team fortress 2\tf" -nop4 -nox360 "C:\Program Files\Steam\steamapps\paumonsu\team fortress 2\tf\models\TimeBomb.qc"

WARNING: AppFramework : Unable to load module p4lib.dll!
qdir: "c:\program files\steam\steamapps\paumonsu\team fortress 2\tf\models\"
gamedir: "C:\Program Files\Steam\steamapps\paumonsu\team fortress 2\tf\"
g_path: "C:\Program Files\Steam\steamapps\paumonsu\team fortress 2\tf\models\TimeBomb.qc"
Building binary model files...
Working on "TimeBomb.qc"
SMD MODEL cannonball.smd
ERROR: c:\program files\steam\steamapps\paumonsu\team fortress 2\tf\models\TimeBomb.qc(14): - bad command {
ERROR: Aborted Processing on 'cannonball.mdl'

That's my .QC file:

$modelname cannonball.mdl

$cdmaterials models

$staticprop

$scale 1.0

$body studio "cannonball.smd"

$sequence idle "cannonball.smd" fps 15

$collisionmodel "cannonballphysics.smd"
{
$Mass 40
$concave
}

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


If I delete this part
Code:
{
   $Mass 40
   $concave
}
It compiles but the prop doesn't have any physics ingame and is non-solid.
 

Hawk

L7: Fancy Member
Dec 3, 2007
419
213
I think the problem may be with your collision model. The compiler is awfully picky about some strange things on your collision model, but look it over and see if these things apply:

- It should be a completely enclosed convex shape.
- It must have a UV map and texture applied. The don't need to look good, but they must exist.

I've made a custom objects tutorial here: http://forums.tf2maps.net/showthread.php?t=838
It could prove helpful.
 

Spike

L10: Glamorous Member
Feb 13, 2008
716
82
I think the way to fix that is to check a box on the studiomdl, but not sure. Cannonball is now well compiled.