Blender to Garry's Mod Problem

Hi guys.

I got this Solid Snake model ported from SSBB (kudos to Luigimario) that I decided to modify by extracting it via Cannonfodder’s StudioMDL and modify it in Blender. However, I have ran into 2 problems:

  1. Blender wouldn’t allow me to save an armature-only ragdoll.smd (I knowingly deleted selected bones, which is why I couldn’t use the original ragdoll.smd)
  2. StudioMDL wouldn’t allow me to export the Solid Snake mode l(among other models) back into .mdl format. Here are some screens and the qc file itself:

http://imageshack.us/a/img9/3460/erroryf.jpg

http://imageshack.us/a/img210/5877/error2ae.jpg


$cd "U:\MODELLING\Decompiled\snake\"
$modelname "metalgearsolid2\Snake.mdl"
$model "Snake" "Snake.smd" {
     flexfile "mdldecompiler_expressions.vta" {
          flex "eye_shut" frame 1
          flex "eye_closed" frame 2
          flex "eye_fixed" frame 3
          flex "ah" frame 4
          flex "l_close" frame 5
          flex "r_close" frame 6
          flex "right_inner_up" frame 7
          flex "left_inner_up" frame 8
          flex "right_angry" frame 9
          flex "left_angry" frame 10
          flex "l_smile" frame 11
          flex "r_smile" frame 12
          flex "jaw_open" frame 13
          flex "r_eyelid" frame 14
          flex "l_eyelid" frame 15
          flex "mouth_in" frame 16
          flex "open_mouth" frame 17
          flex "grr" frame 18
     }
     eyeball righteye ValveBiped.Bip01_Head1 -1.246 -2.115 68.215 eyeball_r 1.000  -1.000 pupil_r 1.500
     eyeball lefteye ValveBiped.Bip01_Head1 1.246 -2.115 68.215 eyeball_l 1.000  1.000 pupil_l 1.500
      eyelid  upper_right "mdldecompiler_expressions.vta" lowerer 19 0.000000 neutral 0 0.000000 raiser 19 0.000000 split 0.1 eyeball righteye
      eyelid  lower_right "mdldecompiler_expressions.vta" lowerer 20 0.000000 neutral 0 0.000000 raiser 20 0.000000  split 0.1 eyeball righteye
      eyelid  upper_left "mdldecompiler_expressions.vta" lowerer 21 0.000000 neutral 0 0.000000 raiser 21 0.000000 split -0.1 eyeball lefteye
      eyelid  lower_left "mdldecompiler_expressions.vta" lowerer 22 0.000000 neutral 0 0.000000 raiser 22 0.000000  split -0.1 eyeball lefteye
     mouth 0 "mouth"  ValveBiped.Bip01_Head1 0.000 1.000 0.000
     flexcontroller phoneme blank "range" 0.000 1.000
     flexcontroller phoneme eye_shut "range" 0.000 1.000
     flexcontroller phoneme eye_closed "range" 0.000 1.000
     flexcontroller phoneme eye_fixed "range" 0.000 1.000
     flexcontroller phoneme ah "range" 0.000 1.000
     flexcontroller phoneme l_close "range" 0.000 1.000
     flexcontroller phoneme r_close "range" 0.000 1.000
     flexcontroller phoneme right_inner_up "range" 0.000 1.000
     flexcontroller phoneme left_inner_up "range" 0.000 1.000
     flexcontroller phoneme right_angry "range" 0.000 1.000
     flexcontroller phoneme left_angry "range" 0.000 1.000
     flexcontroller phoneme l_smile "range" 0.000 1.000
     flexcontroller phoneme r_smile "range" 0.000 1.000
     flexcontroller phoneme jaw_open "range" 0.000 1.000
     flexcontroller phoneme r_eyelid "range" 0.000 1.000
     flexcontroller phoneme l_eyelid "range" 0.000 1.000
     flexcontroller phoneme mouth_in "range" 0.000 1.000
     flexcontroller phoneme open_mouth "range" 0.000 1.000
     flexcontroller phoneme grr "range" 0.000 1.000
     flexcontroller phoneme blank "range" 0.000 1.000
    %blank =  blank
    %eye_shut =  eye_shut
    %eye_closed =  eye_closed
    %eye_fixed =  eye_fixed
    %ah =  ah
    %l_close =  l_close
    %r_close =  r_close
    %right_inner_up =  right_inner_up
    %left_inner_up =  left_inner_up
    %right_angry =  right_angry
    %left_angry =  left_angry
    %l_smile =  l_smile
    %r_smile =  r_smile
    %jaw_open =  jaw_open
    %r_eyelid =  r_eyelid
    %l_eyelid =  l_eyelid
    %mouth_in =  mouth_in
    %open_mouth =  open_mouth
    %grr =  grr
    %blank =  blank
}

$cdmaterials "models\solidsnake\"
$hboxset "default"
$hbox 0 "ValveBiped.Bip01_Pelvis" -7.617  -6.720  -7.195  7.617  10.802  4.909
$hbox 0 "ValveBiped.Bip01_Spine2" -0.482  -5.774  -9.789  19.560  6.337  9.789
$hbox 0 "ValveBiped.Bip01_Spine4" 0.000  -3.483  -1.956  2.780  0.000  1.956
$hbox 0 "ValveBiped.Bip01_R_UpperArm" -2.017  -3.449  -3.319  12.217  3.935  5.934
$hbox 0 "ValveBiped.Bip01_R_Forearm" -0.229  -2.782  -2.487  12.781  2.606  2.490
$hbox 0 "ValveBiped.Bip01_R_Hand" -0.354  -2.308  -3.275  5.642  1.473  2.326
$hbox 0 "ValveBiped.Bip01_R_Finger2" 0.000  -0.707  -0.633  2.958  1.022  0.500
$hbox 0 "ValveBiped.Bip01_R_Finger21" -0.071  -0.520  -0.492  2.663  0.716  0.583
$hbox 0 "ValveBiped.Bip01_R_Finger3" 0.000  -0.645  -0.704  2.539  0.942  0.597
$hbox 0 "ValveBiped.Bip01_R_Finger31" -0.071  -0.494  -0.446  2.213  0.617  0.584
$hbox 0 "ValveBiped.Bip01_R_Finger4" 0.000  -0.486  -0.728  2.074  0.649  0.523
$hbox 0 "ValveBiped.Bip01_R_Finger1" 0.000  -0.742  -0.551  2.844  0.833  0.509
$hbox 0 "ValveBiped.Bip01_R_Finger11" -0.189  -0.574  -0.553  2.114  0.661  0.495
$hbox 0 "ValveBiped.Bip01_R_Finger0" -0.757  -0.931  -1.373  2.945  1.687  1.005
$hbox 0 "ValveBiped.Bip01_R_Finger01" -1.352  -0.730  -0.818  2.416  1.338  1.003
$hbox 0 "ValveBiped.Bip01_R_Finger02" -0.807  -0.564  -0.660  1.440  0.680  0.720
$hbox 0 "ValveBiped.Bip01_L_UpperArm" -2.005  -3.445  -3.112  12.275  3.932  3.238
$hbox 0 "ValveBiped.Bip01_L_Forearm" -0.379  -2.729  -2.408  12.631  2.654  2.570
$hbox 0 "ValveBiped.Bip01_L_Hand" -0.297  -2.210  -2.373  5.719  1.525  3.298
$hbox 0 "ValveBiped.Bip01_L_Finger2" 0.000  -0.973  -0.609  2.796  0.769  0.691
$hbox 0 "ValveBiped.Bip01_L_Finger21" -0.290  -0.587  -0.601  2.457  0.653  0.474
$hbox 0 "ValveBiped.Bip01_L_Finger3" -0.000  -0.809  -0.570  2.434  0.861  0.710
$hbox 0 "ValveBiped.Bip01_L_Finger31" -0.256  -0.588  -0.552  2.031  0.618  0.473
$hbox 0 "ValveBiped.Bip01_L_Finger4" -0.092  -0.751  -0.503  1.913  0.642  0.624
$hbox 0 "ValveBiped.Bip01_L_Finger1" 0.000  -0.948  -0.591  2.840  0.778  0.510
$hbox 0 "ValveBiped.Bip01_L_Finger11" -0.272  -0.583  -0.528  2.050  0.692  0.482
$hbox 0 "ValveBiped.Bip01_L_Finger0" -0.492  -1.084  -0.996  3.130  1.596  1.392
$hbox 0 "ValveBiped.Bip01_L_Finger01" -1.375  -0.684  -0.995  2.588  1.308  0.686
$hbox 0 "ValveBiped.Bip01_L_Finger02" -0.661  -0.630  -0.833  1.577  0.628  0.583
$hbox 0 "ValveBiped.Bip01_Head1" -2.766  -5.189  -4.413  9.909  6.377  4.429
$hbox 0 "mouth" 0.000  -1.377  -1.936  3.483  0.890  1.936
$hbox 0 "ValveBiped.Bip01_L_Thigh" -2.197  -3.956  -5.319  21.975  3.662  5.860
$hbox 0 "ValveBiped.Bip01_L_Calf" -1.504  -3.767  -2.634  20.364  5.059  3.598
$hbox 0 "ValveBiped.Bip01_L_Foot" -1.361  -8.461  -3.058  7.445  3.063  2.783
$hbox 0 "ValveBiped.Bip01_R_Thigh" -2.197  -5.823  -5.319  21.975  3.957  5.860
$hbox 0 "ValveBiped.Bip01_R_Calf" -1.497  -3.778  -3.572  20.359  5.055  2.633
$hbox 0 "ValveBiped.Bip01_R_Foot" -1.535  -8.607  -2.691  7.218  3.023  2.797
$attachment "eyes" "ValveBiped.Bip01_Head1" 6.86 -7.97 0.01 rotate 0.00 -80.10 -90.00
$attachment "mouth" "ValveBiped.Bip01_Head1" 0.80 -5.80 -0.15 rotate 0.00 -80.00 -90.00
$surfaceprop "flesh"
$eyeposition -0.000 0.000 70.000
$illumposition -0.699 -0.019 37.558
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
$ikchain rhand ValveBiped.Bip01_R_Hand knee  0.707 0.707 0.000
$ikchain lhand ValveBiped.Bip01_L_Hand knee  0.707 0.707 0.000
$ikchain rfoot ValveBiped.Bip01_R_Foot knee  0.707 -0.707 0.000
$ikchain lfoot ValveBiped.Bip01_L_Foot knee  0.707 -0.707 0.000


Is there a way to make a new ragdoll.smd from existing armature and is there a problem with the qc file?

Thanks
evapour

I usually don’t make a ragdoll.smd, I just use the base .smd as the ragdoll, in your case, “snake.smd”. I don’t know if this is proper, but it hasn’t NOT worked yet.

As for your error, it’s looking for the blank flex, which you don’t have. It often isn’t in the list when you decompile I’ve found. I would just stick “flex “blank” frame 0” in the flex definition right about the eye_shut one. Again, not sure if proper, but it works for me.

Thanks! Do I need to delete the ragdoll line or do I replace “ragdoll” with the main model name?

I would replace the line with

$sequence ragdoll “snake.smd”

Yay! It fixed it! Thank you very much!

EDIT:
Is it normal that a .py doesn’t come out of the compiling? StudioCompile came up with this:

http://cloud-2.steampowered.com/ugc/577852710622783941/E0B9E098D17888F8ACA5269448A2D3793458FB82/