compiler deleting root bone

Recently I tried compiling the Gun Truck from SA2 only to runinto a problem with the physics model.

On source engine 2009 the model looses the root bone.
On source engine 2006 (Compiled by accident) The root bone remains and a physics thingy is made as is what’s suppose to happen.

Now question is how is this happeing and why does source 2006 work when source 2009 failed?

Below is my compile log and QC

QC


$cd "C:\Documents and Settings\Anthony\My Documents\3dsmax\export\Ragdoll"
$surfaceprop "metal"
$modelname "GUN_truck_SA2.mdl"
$model studio "GUNtruck.SMD"

$cdmaterials "models\SA2\"

$sequence ragdoll     "guntruckrig.smd" FPS 30         activity ACT_DIERAGDOLL 1
$collisionjoints "guntruckphy.smd" {
    $mass 500.0
    $inertia 10.00
    $damping 0.01
    $rotdamping 1.50
    $rootbone "bone01"
}

Compile log


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

Loaded QC file - "C:\Users\Anthony\Documents\QC\GUNtruck.qc"

Created command line: "G:\Program files\Steam\SteamApps\suroguner\sourcesdk\bin\source2009\bin\studiomdl.exe" -game "g:\program files\steam\steamapps\suroguner\half-life 2\hl2" -nop4 -nox360 C:\Users\Anthony\Documents\QC\GUNtruck.qc

qdir:    "c:\users\anthony\documents\qc\"
gamedir: "g:\program files\steam\steamapps\suroguner\half-life 2\hl2\"
g_path:  "C:\Users\Anthony\Documents\QC\GUNtruck.qc"
Building binary model files...
Working on "GUNtruck.qc"
SMD MODEL C:\Documents and Settings\Anthony\My Documents\3dsmax\export\Ragdoll/GUNtruck.smd
SMD MODEL C:\Documents and Settings\Anthony\My Documents\3dsmax\export\Ragdoll/guntruckrig.smd
SMD MODEL C:\Documents and Settings\Anthony\My Documents\3dsmax\export\Ragdoll/guntruckphy.smd
Processing jointed collision model
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: Model has 2-dimensional geometry (less than 0.500 inches thick on any axis)!!!
WARNING: COSTLY COLLISION MODEL!!!! (55 parts - 40 allowed)
WARNING: Error with convex elements of C:\Documents and Settings\Anthony\My Documents\3dsmax\export\Ragdoll/guntruckphy.smd, building single convex!!!!
Bone03                   (164 verts, 6 convex elements) volume: 173576.22
Bone04                   (164 verts, 6 convex elements) volume: 173576.27
Bone02                   (264 verts, 6 convex elements) volume: 1180082.13
Collision model completed.
---------------------
writing g:\program files\steam\steamapps\suroguner\half-life 2\hl2\models/GUN_truck_SA2.mdl:
bones         1816 bytes (4)
animations     128 bytes (1 anims) (101 frames) [0:03]
sequences      232 bytes (1 seq) 
ik/pose        164 bytes
eyeballs         0 bytes (0 eyeballs)
flexes           0 bytes (0 flexes)
textures      1060 bytes
keyvalues        0 bytes
bone transforms      608 bytes
Collision model volume 1527234.61 in^3
collision        0 bytes
total         6108
---------------------
writing g:\program files\steam\steamapps\suroguner\half-life 2\hl2\models/GUN_truck_SA2.vvd:
vertices     45888 bytes (956 vertices)
tangents     15296 bytes (956 vertices)
total        61248 bytes
---------------------
Generating optimized mesh "g:\program files\steam\steamapps\suroguner\half-life 2\hl2\models/GUN_truck_SA2.sw.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:           144 bytes
strip groups:     400 bytes
strips:           432 bytes
verts:           8604 bytes
indices:         2778 bytes
bone changes:       8 bytes
everything:     12430 bytes
---------------------
Generating optimized mesh "g:\program files\steam\steamapps\suroguner\half-life 2\hl2\models/GUN_truck_SA2.dx80.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:           144 bytes
strip groups:     400 bytes
strips:           432 bytes
verts:           8604 bytes
indices:         2778 bytes
bone changes:     168 bytes
everything:     12590 bytes
---------------------
Generating optimized mesh "g:\program files\steam\steamapps\suroguner\half-life 2\hl2\models/GUN_truck_SA2.dx90.vtx":
body parts:         8 bytes
models:            20 bytes
model LODs:        12 bytes
meshes:           144 bytes
strip groups:     400 bytes
strips:           432 bytes
verts:           8604 bytes
indices:         2778 bytes
bone changes:     168 bytes
everything:     12590 bytes

Completed "GUNtruck.qc"


Source doesn’t work well with UDK style rootbones - aka not rigged to anything.

Use a rootbone that the model is actually rigged to.

Umm, that’s just it, bone01 is actually rigged to the main bulk of the model. and I have no idea what UDK is.

As of right now I’m using a work around where I compile in both versions of source (2006 and 2009) so that I can get my physics model. so far it seems to be working.

If need be I can upload my source files.

I guess try simplyfying your collision model a bit? Since it seems to have a lot of small parts

I did, I simplified it so that bone01 was just a box at one point, and it still got that problem.