|
|
#1 |
![]() Join Date: Mar 2010
Reputation: 0
Posts: 13
|
So after a good 2 hours of searching, I've come to no avail in solving the "ERROR: Bad command {" error that I've been getting whilst compiling a model. I've have really tried just about everything that I've come across, none of it working. I've tried numerous compiling programs, from StudioCompiler, to StudioMDL, even to compiling with Notepad++ and ConTEXT. ALL of them give me the same "bad command {" error. I've made sure there are no stray or misplaced open brackets, and there's been no way of getting around it. I'm attempting to compile the vending machine model directly from Half-Life˛, but with an added skin. I've also tried decompiling, then recompiling the model as-is, and still receive the same error. I've been trying to compile this and fix it for nearly 2 hours now. Here's the .qc:
Code:
$cd "C:\offcom\decompiles\vending\files"
$modelname "props_interiors\VendingMachineSoda01a.mdl"
$model "Body" "VendingMachineSoda01a_reference.smd"
$lod 100
{
replacemodel "VendingMachineSoda01a_reference" "lod1_VendingMachineSoda01a_reference"
}
$cdmaterials "models\props_interiors/"
$texturegroup skinfamilies
{
{ "SodaMachine01a.vmt" }
{ "SodaMachine01b.vmt" }
}
$hboxset "default"
$hbox 0 "static_prop" -21.423 -26.061 -47.992 21.423 26.061 47.992
// Model uses material "SodaMachine01a.vmt"
$surfaceprop "plastic_barrel"
$keyvalues { prop_data { "base" "Metal.Large" } }
$illumposition -0.000 0.000 0.000
$sequence idle "idle" fps 30.00
$collisionmodel "phymodel.smd"
{
$concave
$mass 600.0
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}
|
|
|
|
|
|
#2 |
![]() Join Date: Apr 2010
Reputation: 2
Posts: 30
|
I would recommend reading this page from the Valve Developer Community about compiling a model:
https://developer.valvesoftware.com/...piling_a_model |
|
|
|
|
|
#3 |
![]() Join Date: Mar 2010
Reputation: 0
Posts: 13
|
I have thoroughly read that page, and many others on VDC.
|
|
|
|
|
|
#4 |
![]() Join Date: Dec 2007
Reputation: 142
Posts: 1,461
|
Your QC file looks fine as far as I can tell. Have you tried splitting "$keyvalues { prop_data { "base" "Metal.Large" } }" into multiple lines? Maybe the compiler doesn't like multiple opening/closing brackets on a single line.
|
|
|
|
|
|
#5 |
![]() Join Date: Mar 2010
Reputation: 0
Posts: 13
|
Wow, the model actually compiles now, thank you.
Last edited by Crypt19: 02-26-2012 at 07:30 PM. |
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|