Compiler Error

Got problems with your models? Struggling with textures? Get help with your custom assets.

Compiler Error

Postby StefanC19 on Tue May 17, 2011 12:55 am

Hey,

So what am I trying ?
I've decompiled a model from Day Of Defeat and applied a custom animation to it. The original model has no animations, its the mill_water_wheel model and I gave it a simple 98 frame 360 degree rotation. I've got all the files in order, and placed in the correct folders but when I compile in GUIStudioMDL I'm getting an error, Also I am trying to recompile it back in to episode 2 instead of DOD:

Code: Select all
ERROR: cannot find bone static_prop for bbox
ERROR: Aborted Processing on 'props_stefanc\mill_water_wheel_extra.mdl'


I'm betting my money on something small or simple to fix but personally I don't know what :P

Here is the full log of the compiler:

Code: Select all
GUIStudioMDL 2.2/Source - © 2007 Neil 'Jed' Jedrzejewski - http://www.wunderboy.org/

Created command line: D:\Games\Steam\steamapps\stefanc481\sourcesdk\bin\orangebox\bin\studiomdl.exe -game "d:\games\steam\steamapps\stefanc481\half-life 2 episode two\ep2" -nop4 -nox360 D:\Games\Steam\steamapps\stefanc481\sourcesdk_content\ep2\modelsrc\models\props_stefanc\mill_water_wheel.qc

all paths:d:\games\steam\steamapps\stefanc481\half-life 2 episode two\ep2\;d:\games\steam\steamapps\stefanc481\sourcesdk\bin\orangebox\ep2\;d:\games\steam\steamapps\stefanc481\sourcesdk\bin\orangebox\episodic\;d:\games\steam\steamapps\stefanc481\sourcesdk\bin\orangebox\hl2\
qdir:    "d:\games\steam\steamapps\stefanc481\sourcesdk_content\ep2\modelsrc\models\props_stefanc\"
gamedir: "d:\games\steam\steamapps\stefanc481\half-life 2 episode two\ep2\"
g_path:  "D:\Games\Steam\steamapps\stefanc481\sourcesdk_content\ep2\modelsrc\models\props_stefanc\mill_water_wheel.qc"
Building binary model files...
Working on "mill_water_wheel.qc"
SMD MODEL mill_water_wheel.smd
SMD MODEL mill_water_wheel_idle.smd
SMD MODEL mill_water_wheel_360cw.smd
SMD MODEL mill_water_wheel_phys.smd
ERROR: cannot find bone static_prop for bbox
ERROR: Aborted Processing on 'props_stefanc\mill_water_wheel_extra.mdl'


Now to insure nothing is overlooked and that you guys have all the information I can provide here is where I placed all the files and what the names of the files are and the .qc code:

Material and Texture :
half-life 2 episode two\ep2\materials\models\props_stefanc
- mill_water_wheel.vmt
- mill_water_wheel.vtf

.vmt code:
Code: Select all
"VertexLitGeneric"
{
   "$baseTexture" "models\props_stefanc/mill_water_wheel"
   "$envmap" "env_cubemap"
   "$basealphaenvmapmask" 1
}


Model files:
sourcesdk_content\ep2\modelsrc\models\props_stefanc
- mill_water_wheel.qc
- mill_water_wheel.smd
- mill_water_wheel_idle.smd
- mill_water_wheel_360cw.smd
- mill_water_wheel_phys.smd

Model files are to be compiled to:
half-life 2 episode two\ep2\models\props_stefanc

The .qc:
Code: Select all
$modelname "props_stefanc\mill_water_wheel_extra.mdl"
$model "Body" "mill_water_wheel.smd"
$cdmaterials "models\props_normandy\"
$hboxset "default"
$hbox 0 "static_prop" -134.511  -63.100  -93.032  130.746  60.554  172.225
// Model uses material "mill_water_wheel.vmt"
$surfaceprop "wood"
$illumposition -1.883 -1.273 39.597
$sequence idle "mill_water_wheel_idle" act_idle 1 fps 30.00
$sequence rota "mill_water_wheel_360cw" act_rota 1 fps 30.00
$collisionmodel "mill_water_wheel_phys.smd" {

   $concave
   $mass 1.0
   $inertia 1.00
   $damping 0.00
   $rotdamping 0.00
}


The material vmt code and .qc code is from decompiling and is not made by myself, I only modified the naming and added my own animation sequence. Also in the .vmt code you can see brackets are used like this \/ this is how it came when decompiling so I assume that is correct. I bet 90% of this post contains information that was not needed in order to fix this problem :lol:
User avatar
StefanC19
Regular
Regular
 
Joined: Fri Aug 06, 2010 2:50 pm
Location: The Netherlands

Re: Compiler Error

Postby StefanC19 on Tue May 17, 2011 1:54 am

oh, ignore this post ... I now used that wall worm tool and it all works perfectly :D
User avatar
StefanC19
Regular
Regular
 
Joined: Fri Aug 06, 2010 2:50 pm
Location: The Netherlands

Re: Compiler Error

Postby Z-O-M-B-I-E on Fri May 27, 2011 10:22 am

Code: Select all
$hbox 0 "static_prop" -134.511  -63.100  -93.032  130.746  60.554  172.225

delete
And add:
Code: Select all
$staticprop

For static models.

Code: Select all
}
$keyvalues 
{
 prop_data
 {
 "base" "Plastic.break" 
 }
}

Form physics models.
Image
User avatar
Z-O-M-B-I-E
Member
Member
 
Joined: Fri May 27, 2011 10:20 am
Location: Russia

Return to Custom Asset Help

Who is online

Users browsing this forum: Google [Bot]

cron