Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/archive/global.php(40) : eval()'d code on line 2
Model compiling error [Archive] - TF2Maps.net Forums

PDA

View Full Version : Model compiling error


Spike
03-24-2008, 02:28 PM
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\orang ebox\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
{
$Mass 40
$concave
}
It compiles but the prop doesn't have any physics ingame and is non-solid.

Shmitz
03-24-2008, 02:39 PM
I've seen this problem before, and really don't know what causes it. Try retyping the entire thing in a brand new text file. There might be some subtle formatting issue that the parser doesn't like. The model compiler parser is really picky about things sometimes.

Hawk
03-24-2008, 05:36 PM
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
03-25-2008, 11:10 AM
I think the way to fix that is to check a box on the studiomdl, but not sure. Cannonball is now well compiled.