[Gmod ragdoll] Help! Phymodel looks fine in hlmv but craps in-game?
2 replies, posted
I'm trying to get my custom model from SFM to Gmod.
I made the physics model, followed every tutorial I could find.
Everything looks a-ok, but when I test the model in Garry's Mod, it is completely broken!
Seems fine on hlmv and 3dsmax 2016...
[t]http://i.imgur.com/bhCd9Uk.png[/t] [t]http://i.imgur.com/ol3RBCZl.png[/t]
Inside Gmod. Model's deformed and suspended in the air.
[t]http://i.imgur.com/DDiMBQR.png[/t] [t]http://i.imgur.com/iqyEKQi.png[/t]
Suspicions:
- I've made sure each element is only weighted to one bone. Safe to rule this out?
- Not all bones used by the original mesh are skinned into the phymodel, this is where I went wrong?
- ~114 bones on base model, not over-budgeted I guess?
- I've tried exporting with Wallworm and SMD Exporter, same result. Not tool problem?
- The .phy is definitely the culprit? If I remove it, the model works fine, except ofc it's turns into not-ragdoll.
- Model is completely usable in SFM.
I'll be grateful for any help provided.
I'm running on a tight schedule as of now thus wishing for this to be solved as soon as able!
qc:
[code]$modelname "Freedom Planet 2/Lilac2.mdl"
$cdmaterials "models/Freedom Planet 2/Lilac2"
$model Lilac2 "Lilac2.smd"
$surfaceprop "flesh"
$Contents "solid"
$mostlyopaque
$sequence "ragdoll" "Lilac2.smd" {
fps 30
activity "ACT_DIERAGDOLL" 1
}
$illumposition 0 2.53093 20.9031
$eyeposition 0.000 0 32.92
$MaxEyeDeflection 90
$model Lilac2 "Lilac2_Lilac2_flex.smd" {
eyeball "righteye" "ValveBiped.Bip01_Head" -2.442 2.7 32.92 eyeball_r 1 4 "unused" 5.25
eyeball "lefteye" "ValveBiped.Bip01_Head" 2.442 2.7 32.92 eyeball_l 1 -4 "unused" 5.25
flexfile "Lilac2_Lilac2_flex.vta" {
$include "Lilac2_Lilac2_wwmt_flex.qci"
}
flexcontroller wwmt_flex_controller_Lilac2 right_EyeLidsHideLR left_EyeLidsHideLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_EyeBrowsHideLR left_EyeBrowsHideLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_LowerLidsSmileLR left_LowerLidsSmileLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_EyeLowerLidOpenLR left_EyeLowerLidOpenLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_squintLR left_squintLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_BrowAngryLR left_BrowAngryLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_BrowSadLR left_BrowSadLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_BrowRaiseLR left_BrowRaiseLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_EyeLidsHappyPeekLR left_EyeLidsHappyPeekLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_EyeLidsNormHalfLR left_EyeLidsNormHalfLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_EyeLidsSadHalfLR left_EyeLidsSadHalfLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_EyeLidsWideLR left_EyeLidsWideLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 JawOpen "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_liptightLR left_liptightLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_smileLR left_smileLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_frownLR left_frownLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_LipPuckLR left_LipPuckLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 UpperLipLower "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_UpperLipLR left_UpperLipLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 UpperLipM "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 UpperLipRaise "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 LowerLipRaise "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_LowerLipLR left_LowerLipLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 right_JawLR left_JawLR "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 Oo "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 V "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 OwO "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 tongueOut "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 tongueDown "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 tongueRaiseTip "range" 0.000 1.000
flexcontroller wwmt_flex_controller_Lilac2 tongueLowerTip "range" 0.000 1.000
%EyeLidsHideLRR = right_EyeLidsHideLR
%EyeLidsHideLRL = left_EyeLidsHideLR
%EyeBrowsHideLRR = right_EyeBrowsHideLR
%EyeBrowsHideLRL = left_EyeBrowsHideLR
%LowerLidsSmileLRR = right_LowerLidsSmileLR
%LowerLidsSmileLRL = left_LowerLidsSmileLR
%EyeLowerLidOpenLRR = right_EyeLowerLidOpenLR
%EyeLowerLidOpenLRL = left_EyeLowerLidOpenLR
%squintLRR = right_squintLR
%squintLRL = left_squintLR
%BrowAngryLRR = right_BrowAngryLR
%BrowAngryLRL = left_BrowAngryLR
%BrowSadLRR = right_BrowSadLR
%BrowSadLRL = left_BrowSadLR
%BrowRaiseLRR = right_BrowRaiseLR
%BrowRaiseLRL = left_BrowRaiseLR
%EyeLidsHappyPeekLRR = right_EyeLidsHappyPeekLR
%EyeLidsHappyPeekLRL = left_EyeLidsHappyPeekLR
%EyeLidsNormHalfLRR = right_EyeLidsNormHalfLR
%EyeLidsNormHalfLRL = left_EyeLidsNormHalfLR
%EyeLidsSadHalfLRR = right_EyeLidsSadHalfLR
%EyeLidsSadHalfLRL = left_EyeLidsSadHalfLR
%EyeLidsWideLRR = right_EyeLidsWideLR
%EyeLidsWideLRL = left_EyeLidsWideLR
%JawOpen = JawOpen
%liptightLRR = right_liptightLR
%liptightLRL = left_liptightLR
%smileLRR = right_smileLR
%smileLRL = left_smileLR
%frownLRR = right_frownLR
%frownLRL = left_frownLR
%LipPuckLRR = right_LipPuckLR
%LipPuckLRL = left_LipPuckLR
%UpperLipLower = UpperLipLower
%UpperLipLRR = right_UpperLipLR
%UpperLipLRL = left_UpperLipLR
%UpperLipM = UpperLipM
%UpperLipRaise = UpperLipRaise
%LowerLipRaise = LowerLipRaise
%LowerLipLRR = right_LowerLipLR
%LowerLipLRL = left_LowerLipLR
%JawLRR = right_JawLR
%JawLRL = left_JawLR
%Oo = Oo
%V = V
%OwO = OwO
%tongueOut = tongueOut
%tongueDown = tongueDown
%tongueRaiseTip = tongueRaiseTip
%tongueLowerTip = tongueLowerTip
}
$collisionjoints "Lilac2_hull.smd" {
$mass 60.0
$inertia 10.00
$damping 0.01
$rotdamping 1.50
$rootbone "ValveBiped.Bip01_pelvis"
$jointconstrain "tail_0" x limit -5.00 5.00 0.00
$jointconstrain "tail_0" y limit -10.00 10.00 0.00
$jointconstrain "tail_0" z limit -21.00 21.00 0.00
$jointconstrain "tail_1" x limit 0.00 0.00 0.00
$jointconstrain "tail_1" y limit -19.00 19.00 0.00
$jointconstrain "tail_1" z limit -21.00 21.00 0.00
$jointconstrain "tail_2" x limit 0.00 0.00 0.00
$jointconstrain "tail_2" y limit -15.00 15.00 0.00
$jointconstrain "tail_2" z limit -15.00 15.00 0.00
$jointconstrain "tail_3" x limit 0.00 0.00 0.00
$jointconstrain "tail_3" y limit -10.00 10.00 0.00
$jointconstrain "tail_3" z limit -15.00 15.00 0.00
$jointconstrain "tail_4" x limit 0.00 0.00 0.00
$jointconstrain "tail_4" y limit -10.00 10.00 0.00
$jointconstrain "tail_4" z limit -15.00 15.00 0.00
$jointconstrain "tail_5" x limit 0.00 0.00 0.00
$jointconstrain "tail_5" y limit -10.00 10.00 0.00
$jointconstrain "tail_5" z limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_spine" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_spine" y limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_spine" z limit -15.00 15.00 0.00
$jointconstrain "valvebiped.bip01_spine1" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_spine1" y limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_spine1" z limit -15.00 15.00 0.00
$jointconstrain "valvebiped.bip01_spine2" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_spine2" y limit -15.00 15.00 0.00
$jointconstrain "valvebiped.bip01_spine2" z limit -35.00 35.00 0.00
$jointconstrain "valvebiped.bip01_spine3" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_spine3" y limit -21.00 21.00 0.00
$jointconstrain "valvebiped.bip01_spine3" z limit -21.00 21.00 0.00
$jointconstrain "valvebiped.bip01_neck" x limit -50.00 50.00 0.00
$jointconstrain "valvebiped.bip01_neck" y limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_neck" z limit -20.00 20.00 0.00
$jointconstrain "valvebiped.bip01_head" x limit -55.00 55.00 0.00
$jointconstrain "valvebiped.bip01_head" y limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_head" z limit -30.00 30.00 0.00
$jointconstrain "whip_r_0" x limit -10.00 10.00 0.00
$jointconstrain "whip_r_0" y limit -30.00 30.00 0.00
$jointconstrain "whip_r_0" z limit -30.00 30.00 0.00
$jointconstrain "whip_r_1" x limit -10.00 10.00 0.00
$jointconstrain "whip_r_1" y limit -30.00 30.00 0.00
$jointconstrain "whip_r_1" z limit -30.00 30.00 0.00
$jointconstrain "whip_r_2" x limit -5.00 5.00 0.00
$jointconstrain "whip_r_2" y limit -30.00 30.00 0.00
$jointconstrain "whip_r_2" z limit -28.00 28.00 0.00
$jointconstrain "whip_r_3" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_3" y limit -28.00 28.00 0.00
$jointconstrain "whip_r_3" z limit -25.00 25.00 0.00
$jointconstrain "whip_r_4" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_4" y limit -26.00 26.00 0.00
$jointconstrain "whip_r_4" z limit -22.00 22.00 0.00
$jointconstrain "whip_r_5" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_5" y limit -24.00 24.00 0.00
$jointconstrain "whip_r_5" z limit -20.00 20.00 0.00
$jointconstrain "whip_r_6" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_6" y limit -22.00 22.00 0.00
$jointconstrain "whip_r_6" z limit -18.00 18.00 0.00
$jointconstrain "whip_r_7" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_7" y limit -20.00 20.00 0.00
$jointconstrain "whip_r_7" z limit -15.00 15.00 0.00
$jointconstrain "whip_r_8" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_8" y limit -18.00 18.00 0.00
$jointconstrain "whip_r_8" z limit -12.00 12.00 0.00
$jointconstrain "whip_r_9" x limit 0.00 0.00 0.00
$jointconstrain "whip_r_9" y limit -15.00 15.00 0.00
$jointconstrain "whip_r_9" z limit -10.00 10.00 0.00
$jointconstrain "whip_l_0" x limit -10.00 10.00 0.00
$jointconstrain "whip_l_0" y limit -30.00 30.00 0.00
$jointconstrain "whip_l_0" z limit -30.00 30.00 0.00
$jointconstrain "whip_l_1" x limit -10.00 10.00 0.00
$jointconstrain "whip_l_1" y limit -30.00 30.00 0.00
$jointconstrain "whip_l_1" z limit -30.00 30.00 0.00
$jointconstrain "whip_l_2" x limit -5.00 5.00 0.00
$jointconstrain "whip_l_2" y limit -30.00 30.00 0.00
$jointconstrain "whip_l_2" z limit -28.00 28.00 0.00
$jointconstrain "whip_l_3" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_3" y limit -28.00 28.00 0.00
$jointconstrain "whip_l_3" z limit -25.00 25.00 0.00
$jointconstrain "whip_l_4" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_4" y limit -26.00 26.00 0.00
$jointconstrain "whip_l_4" z limit -22.00 22.00 0.00
$jointconstrain "whip_l_5" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_5" y limit -24.00 24.00 0.00
$jointconstrain "whip_l_5" z limit -20.00 20.00 0.00
$jointconstrain "whip_l_6" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_6" y limit -22.00 22.00 0.00
$jointconstrain "whip_l_6" z limit -18.00 18.00 0.00
$jointconstrain "whip_l_7" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_7" y limit -20.00 20.00 0.00
$jointconstrain "whip_l_7" z limit -15.00 15.00 0.00
$jointconstrain "whip_l_8" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_8" y limit -18.00 18.00 0.00
$jointconstrain "whip_l_8" z limit -12.00 12.00 0.00
$jointconstrain "whip_l_9" x limit 0.00 0.00 0.00
$jointconstrain "whip_l_9" y limit -15.00 15.00 0.00
$jointconstrain "whip_l_9" z limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" x limit -70.00 70.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" y limit -90.00 75.00 0.00
$jointconstrain "valvebiped.bip01_l_upperarm" z limit -75.00 50.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" x limit -46.00 46.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" y limit -120.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_forearm" z limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" x limit -90.00 55.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" y limit -39.00 39.00 0.00
$jointconstrain "valvebiped.bip01_l_hand" z limit -77.00 77.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" x limit -70.00 70.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" y limit -90.00 75.00 0.00
$jointconstrain "valvebiped.bip01_r_upperarm" z limit -75.00 50.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" x limit -46.00 46.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" y limit -120.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_forearm" z limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" x limit -90.00 55.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" y limit -39.00 39.00 0.00
$jointconstrain "valvebiped.bip01_r_hand" z limit -77.00 77.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" x limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" y limit -70.00 70.00 0.00
$jointconstrain "valvebiped.bip01_r_thigh" z limit -55.00 120.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" x limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_calf" z limit -155.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" y limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_r_foot" z limit -88.00 30.00 0.00
$jointconstrain "valvebiped.bip01_r_toe0" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_r_toe0" y limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_r_toe0" z limit -15.00 35.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" x limit -60.00 60.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" y limit -70.00 70.00 0.00
$jointconstrain "valvebiped.bip01_l_thigh" z limit -55.00 120.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" x limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" y limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_calf" z limit -155.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" x limit -30.00 30.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" y limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_l_foot" z limit -88.00 30.00 0.00
$jointconstrain "valvebiped.bip01_l_toe0" x limit 0.00 0.00 0.00
$jointconstrain "valvebiped.bip01_l_toe0" y limit -10.00 10.00 0.00
$jointconstrain "valvebiped.bip01_l_toe0" z limit -15.00 35.00 0.00
}
$jigglebone "Hair_L1" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 5.0
length 15.0
angle_constraint 45
}
}
$jigglebone "Hair_L2" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 5.0
length 15.0
angle_constraint 45
}
}
$jigglebone "Hair_L3" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 5.0
length 15.0
angle_constraint 45
}
}
$jigglebone "Hair_R1" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 5.0
length 15.0
angle_constraint 45
}
}
$jigglebone "Hair_R2" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 5.0
length 15.0
angle_constraint 45
}
}
$jigglebone "Hair_R3" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 5.0
length 15.0
angle_constraint 45
}
}
$jigglebone "hairbang_back" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 0.0
length 15.0
angle_constraint 37
}
}
$jigglebone "hairbang_front0" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 0.0
length 60.0
angle_constraint 2
}
}
$jigglebone "hairbang_front1" {
is_flexible {
yaw_stiffness 20.0
yaw_damping 6.0
pitch_stiffness 20.0
pitch_damping 6.0
along_stiffness 100.0
along_damping 0.0
tip_mass 0.0
length 15.0
angle_constraint 37
}
}
$bodygroup outfit
{
studio "WhiteGi.smd"
blank
}
$include "Lilac2_wwmt_custom.qci"[/code]
Thanks a billion! You're a life-saver.
Talk about technical under-budget... Also I kind of wished there's a message notifying about it going over the limit.
Anyways, again, thanks!
Sorry, you need to Log In to post a reply to this thread.