Compiled model only comes out as MDL. with no other files and 0 bytes big.
5 replies, posted
Title, basically.
I tried to remake a QC all by myself to fix another problem of mine, it also uses a custom physics model which is probably the problem, when I compile the QC all that comes out is an MDL of 0 bytes and a PHY file, when I try to view it in HLMV it comes out as an ERROR, obviously.
Has anyone had a similar problem and fixed it? I know I did, and then I thought to myself "mmh, maybe I should type out how I fix all of my problems", but didn't, and now I really could've used it.
If you're using Crowbar, it usually tells you about any errors that popped up during the compiling process. Check your log after you compile the model to see what comes up. It might also help to post your .QC file, as it would be easier for us to identify possibly find a resolution for the problem.
QC:
$modelname "spm/geo/geodude/geodude.mdl"
$model "Geodude" "Geodude.smd"
$bodygroup Eyes
{
studio "Eyes1.smd"
studio "Eyes2.smd"
studio "Eyes3.smd"
studio "Eyes4.smd"
studio "Eyes5.smd"
studio "Eyes6.smd"
studio "Eyes7.smd"
}
$cdmaterials "spm/geo/geodude/"
$texturegroup "Shiny"
{
{"body" "bodyshiny"}
{"eyes" "eyesshiny"}
}
$surfaceprop "rock"
$sequence reference "anims/reference.smd" fps 1
$animation a_proportions "anims/a_proportions.smd" subtract reference 0
$sequence proportions a_proportions predelta autoplay
$sequence "ragdoll" "anims\ragdoll.smd" {
fps 30
"ACT_DIERAGDOLL" 1
}
$includemodel "m_anm.mdl"
$collisionjoints "physics.smd"
{
$automass
$jointconstrain "valvebiped.bip01_spine2" x limit -48.00 48.00 1.00
$jointconstrain "valvebiped.bip01_spine2" y limit -26.00 26.00 1.00
$jointconstrain "valvebiped.bip01_spine2" z limit -39.00 68.00 1.00
$jointconstrain "valvebiped.bip01_r_upperarm" x limit -64.00 64.00 1.00
$jointconstrain "valvebiped.bip01_r_upperarm" y limit -26.00 122.00 1.00
$jointconstrain "valvebiped.bip01_r_upperarm" z limit -122.00 50.00 1.00
$jointconstrain "valvebiped.bip01_l_upperarm" x limit -64.00 64.00 1.00
$jointconstrain "valvebiped.bip01_l_upperarm" y limit -122.00 28.00 1.00
$jointconstrain "valvebiped.bip01_l_upperarm" z limit -100.00 59.00 1.00
$jointconstrain "valvebiped.bip01_l_forearm" x limit 0.00 0.00 1.00
$jointconstrain "valvebiped.bip01_l_forearm" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" z limit -140.00 0.00 1.00
$jointconstrain "valvebiped.bip01_l_hand" x limit -68.00 68.00 1.00
$jointconstrain "valvebiped.bip01_l_hand" y limit -37.00 41.00 1.00
$jointconstrain "valvebiped.bip01_l_hand" z limit -44.00 70.00 1.00
$jointconstrain "valvebiped.bip01_r_forearm" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" z limit -149.00 1.00 1.00
$jointconstrain "valvebiped.bip01_r_hand" x limit -75.00 93.00 1.00
$jointconstrain "valvebiped.bip01_r_hand" y limit -37.00 32.00 1.00
$jointconstrain "valvebiped.bip01_r_hand" z limit -48.00 66.00 1.00
$jointconstrain "valvebiped.bip01_r_thigh" x limit -50.00 48.00 1.00
$jointconstrain "valvebiped.bip01_r_thigh" y limit -19.00 70.00 1.00
$jointconstrain "valvebiped.bip01_r_thigh" z limit -79.00 73.00 1.00
$jointconstrain "valvebiped.bip01_r_calf" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" z limit 0.00 133.00 1.00
$jointconstrain "valvebiped.bip01_head1" x limit -61.00 61.00 1.00
$jointconstrain "valvebiped.bip01_head1" y limit -44.00 44.00 1.00
$jointconstrain "valvebiped.bip01_head1" z limit -32.00 50.00 1.00
$jointconstrain "valvebiped.bip01_l_thigh" x limit -39.00 39.00 1.00
$jointconstrain "valvebiped.bip01_l_thigh" y limit -59.00 23.00 1.00
$jointconstrain "valvebiped.bip01_l_thigh" z limit -84.00 66.00 1.00
$jointconstrain "valvebiped.bip01_l_calf" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" z limit 0.00 131.00 1.00
$jointconstrain "valvebiped.bip01_l_foot" x limit -23.00 23.00 1.00
$jointconstrain "valvebiped.bip01_l_foot" y limit -28.00 28.00 1.00
$jointconstrain "valvebiped.bip01_l_foot" z limit -46.00 46.00 1.00
$jointconstrain "valvebiped.bip01_r_foot" x limit -23.00 23.00 1.00
$jointconstrain "valvebiped.bip01_r_foot" y limit -23.00 23.00 1.00
$jointconstrain "valvebiped.bip01_r_foot" z limit -35.00 57.00 1.00
}
Compile log:
Compiling with Crowbar 0.44.0.0: "C:\Users\user\Desktop\Geo\models\spm\geo\geodude\geodude.qc" ...
Compiling ".\geodude.qc" ...
qdir: "c:\users\user\desktop\geo\models\spm\geo\geodude\"
gamedir: "C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\"
g_path: "geodude.qc"
Building binary model files...
Working on "geodude.qc"
SMD MODEL Geodude.smd
SMD MODEL Eyes1.smd
SMD MODEL Eyes2.smd
SMD MODEL Eyes3.smd
SMD MODEL Eyes4.smd
SMD MODEL Eyes5.smd
SMD MODEL Eyes6.smd
SMD MODEL Eyes7.smd
SMD MODEL anims/reference.smd
SMD MODEL anims/a_proportions.smd
SMD MODEL anims\ragdoll.smd
SMD MODEL physics.smd
Processing jointed collision model
ValveBiped.Bip01_Head1 ( 80 verts, 1 convex elements) volume: 5491.38
007 Jaw ( 24 verts, 1 convex elements) volume: 388.64
ValveBiped.Bip01_L_UpperArm ( 24 verts, 1 convex elements) volume: 181.44
ValveBiped.Bip01_L_Forearm ( 24 verts, 1 convex elements) volume: 388.92
ValveBiped.Bip01_L_Hand ( 24 verts, 1 convex elements) volume: 1872.98
ValveBiped.Bip01_R_UpperArm ( 24 verts, 1 convex elements) volume: 181.44
ValveBiped.Bip01_R_Forearm ( 24 verts, 1 convex elements) volume: 388.92
ValveBiped.Bip01_R_Hand ( 24 verts, 1 convex elements) volume: 1872.98
Collision model completed.
Computed Mass: 423.44 kg
---------------------
writing C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\models/spm/geo/geodude/geodude.mdl:
bones 13176 bytes (46)
animation x y ips angle
@reference 0.00 0.00 : 0.00 ( 90.00) 1.0
a_proportions 0.00 0.00 : 0.00 ( 90.00) 0.0
@ragdoll 0.00 0.00 : 0.00 ( 90.00) 0.0
animations 1408 bytes (3 anims) (6 frames) [0:02]
sequences 832 bytes (3 seq)
ik/pose 1216 bytes
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
eyeballs 0 bytes (0 eyeballs)
flexes 0 bytes (0 flexes)
textures 412 bytes
keyvalues 0 bytes
bone transforms 6320 bytes
Collision model volume 10766.69 in^3
... Compiling ".\geodude.qc" finished. Check above for any errors.
... Compiling with Crowbar 0.44.0.0: "C:\Users\user\Desktop\Geo\models\spm\geo\geodude\geodude.qc" finished.
Both of them completely normal, I was reluctanct to post the QC because it's such a distinct problem I would've guessed someone who knows how to fix it might recognize it instantly, and other various reasons I don't want to discuss.
If you do a stripped down compile of only the reference and necessary sequence, does it compile correctly?
EG, if you just use this as a QC:
$modelname "spm/geo/geodude/geodude.mdl"
$model "Geodude" "Geodude.smd"
$sequence idle "geodude.smd" fps 1
You have a point, it did compile, all I have to do now is add more onto it until I see what causes the problem, I'll reply when it gives me the 0 byte file again.
That's bizarre.
Unfortunately, I don't have too much experience with physmodels. I've been working with SFM exclusively for the past 5 or so years, and physmodels and I never got along when I worked with Gmod.
I hope you get your problem resolved!
Sorry, you need to Log In to post a reply to this thread.