Page 1 of 1

Ragdoll Help

PostPosted: Sun Dec 22, 2013 5:33 pm
by abenito206
So, recently, my interest for Elder Scrolls has been reignited and I felt compelled to try something new other than just mapping all the time. I decided to try ripping some stuff out of skyrim to then import into gmod, much like someone before me had done with most of the NPC's, items and beast races of skyrim. Since he hadn't included Elf or Human races in his pack, I thought I'd try and do it to see if I could. He included a nice little tutorial in his download on how to get things done, and for the most part, I understood it. Or so I thought. I got the parts into 3DSmax, I stuck them together, I'm pretty sure I did the skeleton and stuff right, but I ran into a few problems.

1. It's untextured. Not a big deal, I know how to fix that. I just gotta set the vtf and vmt's to correct locations and whatever.
2. Instead of a ragdoll, the untextured product come out as an effect. With the little green circle at its feet and everything, stuck in the t-pose.
3. The model was far larger than it needed to be. It was nearly the same size as a Giant from Skyrim which was also included in the pack.

So I tried fiddling around with what I aw and decompiled it, messed around with the .qc and .smd files and then recompiled it. Now, I have no clue if it's working or not because whenever I spawn it, it instantly crashes my gmod. I'm a total noob at this and desperately need someone to point me in the right direction. If need be, I can provide screenshots/files. Thanks in advance.

What it SHOULD look like...
Image

What it actually looks like... ;.;
Image


.qc file itself. I took it from a template that was included in the tutorial...for the most part.
Code: Select all
$cd "C:\Users\Sexy Frog\Desktop\New folder\models\myproject"
$modelname "myproject\model01.mdl"
$surfaceprop "flesh"
$cdmaterials "models\myproject"
$eyeposition 0 0 70
$attachment "eyes" "NPC Head [Head]" 0.00 -3.93 68.41 absolute
$attachment "mouth" "NPC Head [Head]" 0.80 -5.80 -0.15 rotate 0 -80 -90
$model model "idle.smd"{


flexfile "r_eyelid_raise.vta"
flex "r_eyelid_raise" frame 10
flexcontroller "phoneme" "r_eyelid_raise" "range" 0 1
%r_eyelid_raise = r_eyelid_raise

flexfile "l_eyelid_raise.vta"
flex "l_eyelid_raise" frame 10
flexcontroller "phoneme" "l_eyelid_raise" "range" 0 1
%l_eyelid_raise = l_eyelid_raise

flexfile "r_eyelid_lower.vta"
flex "r_eyelid_lower" frame 10
flexcontroller "phoneme" "r_eyelid_lower" "range" 0 1
%r_eyelid_lower = r_eyelid_lower

flexfile "l_eyelid_lower.vta"
flex "l_eyelid_lower" frame 10
flexcontroller "phoneme" "l_eyelid_lower" "range" 0 1
%l_eyelid_lower = l_eyelid_lower

flexfile "r_angry.vta"
flex "r_angry" frame 10
flexcontroller "phoneme" "r_angry" "range" 0 1
%r_angry = r_angry

flexfile "l_angry.vta"
flex "l_angry" frame 10
flexcontroller "phoneme" "l_angry" "range" 0 1
%l_angry = l_angry

flexfile "r_sad.vta"
flex "r_sad" frame 10
flexcontroller "phoneme" "r_sad" "range" 0 1
%r_sad = r_sad

flexfile "l_sad.vta"
flex "l_sad" frame 10
flexcontroller "phoneme" "l_sad" "range" 0 1
%l_sad = l_sad

flexfile "r_close.vta"
flex "r_close" frame 10
flexcontroller "phoneme" "r_close" "range" 0 1
%r_close = r_close

flexfile "l_close.vta"
flex "l_close" frame 10
flexcontroller "phoneme" "l_close" "range" 0 1
%l_close = l_close

flexfile "blank.vta"
flex "blank" frame 10
flexcontroller "phoneme" "blank" "range" 0 1
%blank = blank


   mouth 0 "mouth" "NPC Head [Head]" 0 1 0
   eyeball righteye "NPC Head [Head]" -2.01 -3.23 68.41 "eyeball_r1" 1.00 1.5 "pupil1" 1.8
   eyeball lefteye "NPC Head [Head]" 2.01 -3.23 68.41 "eyeball_l1" 1.00 -1.5 "pupil1" 1.8

}

$collisionjoints physmodel.smd {

   $mass 65.0
   $inertia 10.00
   $damping 0.01
   $rotdamping 1.50
   $rootbone "npc com [com ]"

   $jointconstrain "npc spine1 [spn1]" x limit -40.00 40.00 0.00
   $jointconstrain "npc spine1 [spn1]" y limit -30.00 30.00 0.00
   $jointconstrain "npc spine1 [spn1]" z limit -30.00 30.00 0.00

   $jointconstrain "npc spine2 [spn2]" x limit -40.00 40.00 0.00
   $jointconstrain "npc spine2 [spn2]" y limit -30.00 30.00 0.00
   $jointconstrain "npc spine2 [spn2]" z limit -30.00 30.00 0.00

   $jointconstrain "npc l clavicle [lclv]" x limit -30.00 30.00 0.00
   $jointconstrain "npc l clavicle [lclv]" y limit -30.00 30.00 0.00
   $jointconstrain "npc l clavicle [lclv]" z limit -30.00 30.00 0.00

   $jointconstrain "npc r clavicle [rclv]" x limit -30.00 30.00 0.00
   $jointconstrain "npc r clavicle [rclv]" y limit -30.00 30.00 0.00
   $jointconstrain "npc r clavicle [rclv]" z limit -30.00 30.00 0.00

   $jointconstrain "npc r upperarm [ruar]" x limit -90.00 90.00 0.00
   $jointconstrain "npc r upperarm [ruar]" y limit -70.00 50.00 0.00
   $jointconstrain "npc r upperarm [ruar]" z limit -40.00 40.00 0.00

   $jointconstrain "npc r forearm [rlar]" x limit -130.00 10.00 0.00
   $jointconstrain "npc r forearm [rlar]" y limit -15.00 15.00 0.00
   $jointconstrain "npc r forearm [rlar]" z limit -30.00 30.00 0.00

   $jointconstrain "ValveBiped.Bip01_L_Hand" x limit -120.00 120.00 0.00
   $jointconstrain "ValveBiped.Bip01_L_Hand" y limit -120.00 120.00 0.00
   $jointconstrain "ValveBiped.Bip01_L_Hand" z limit -120.00 120.00 0.00

   $jointconstrain "npc l upperarm [luar]" x limit -90.00 90.00 0.00
   $jointconstrain "npc l upperarm [luar]" y limit -50.00 70.00 0.00
   $jointconstrain "npc l upperarm [luar]" z limit -40.00 40.00 0.00

   $jointconstrain "npc head [head]" x limit -40.00 40.00 0.00
   $jointconstrain "npc head [head]" y limit -30.00 30.00 0.00
   $jointconstrain "npc head [head]" z limit -70.00 70.00 0.00

   $jointconstrain "npc l forearm [llar]" x limit -130.00 10.00 0.00
   $jointconstrain "npc l forearm [llar]" y limit -15.00 15.00 0.00
   $jointconstrain "npc l forearm [llar]" z limit -30.00 30.00 0.00

   $jointconstrain "ValveBiped.Bip01_R_Hand" x limit -120.00 120.00 0.00
   $jointconstrain "ValveBiped.Bip01_R_Hand" y limit -120.00 120.00 0.00
   $jointconstrain "ValveBiped.Bip01_R_Hand" z limit -120.00 120.00 0.00

   $jointconstrain "jaw" x limit -20.00 20.00 0.00
   $jointconstrain "jaw" y limit -20.00 20.00 0.00
   $jointconstrain "jaw" z limit -3.00 34.00 0.00

   $jointconstrain "npc r thigh [rthg]" x limit -120.00 120.00 0.00
   $jointconstrain "npc r thigh [rthg]" y limit -120.00 120.00 0.00
   $jointconstrain "npc r thigh [rthg]" z limit -40.00 40.00 0.00

   $jointconstrain "npc r calf [rclf]" x limit 0.00 140.00 0.00
   $jointconstrain "npc r calf [rclf]" y limit -15.00 15.00 0.00
   $jointconstrain "npc r calf [rclf]" z limit -20.00 20.00 0.00

   $jointconstrain "ValveBiped.Bip01_R_Foot" x limit -50.00 50.00 0.00
   $jointconstrain "ValveBiped.Bip01_R_Foot" y limit -50.00 50.00 0.00
   $jointconstrain "ValveBiped.Bip01_R_Foot" z limit -50.00 50.00 0.00

   $jointconstrain "npc l thigh [lthg]" x limit -120.00 120.00 0.00
   $jointconstrain "npc l thigh [lthg]" y limit -120.00 120.00 0.00
   $jointconstrain "npc l thigh [lthg]" z limit -40.00 40.00 0.00

   $jointconstrain "npc l calf [lclf]" x limit 0.00 140.00 0.00
   $jointconstrain "npc l calf [lclf]" y limit -15.00 15.00 0.00
   $jointconstrain "npc l calf [lclf]" z limit -20.00 20.00 0.00

   $jointconstrain "ValveBiped.Bip01_L_Foot" x limit -50.00 50.00 0.00
   $jointconstrain "ValveBiped.Bip01_L_Foot" y limit -50.00 50.00 0.00
   $jointconstrain "ValveBiped.Bip01_L_Foot" z limit -50.00 50.00 0.00

}
$sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00