STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
829
IN-GAME
6,204
ONLINE
Founded
October 26, 2013
Language
English
Alchemist Feb 2, 2019 @ 5:43am
Animation Shows in List But Doesn't Play [EDIT] Animation not working in game
I have honestly been up all night with this one model and i need to get it finished.

Software: Blender, Hl2 Model Viewer, Crowbar
Type: Smd

The model is a 3 part industrial drill, cables, base and drill part.
cables and base share "bone" part of the rig and drill part is controlled by "Bone.001"
the animation plays and exports, compiles fine, but does not play in game or hl2model viewer.

all 3 parts have the amature modifier, and are rigged by vertex groups and they do not conflict or overlap with each other, the entire model is completely rigged no missing verts ect.

QC File:
$modelname "drill.mdl" $bodygroup "Body" { studio "drillbase.smd" } $bodygroup "BodyDrill" { studio "drillpart.smd" } $bodygroup "BodyCables" { studio "cables.smd" } $surfaceprop "combine_metal" $contents "solid" $cdmaterials "models\dubzdrill\" $sequence "idle" { "anims\Idle.smd" fadein 0.2 fadeout 0.2 fps 30 } $sequence "active" { "anims\Active.smd" fadein 0.2 fadeout 0.2 fps 30 } $collisionmodel "drillbase.smd"

I would love some help with this honestly its driving me nuts
Last edited by Alchemist; Feb 2, 2019 @ 1:58pm
< >
Showing 1-5 of 5 comments
ZeqMacaw Feb 2, 2019 @ 6:46am 
Try viewing each mesh SMD with each anim SMD in Blender to see if the anims play correctly there.
Alchemist Feb 2, 2019 @ 12:11pm 
yeah the animation is there when i import the SMD files, drillpart.smd / anims\active.smd
https://gyazo.com/bc1c547a5e7b0cd6de5b175764412335

the animation ramps for some reason still for some reason the animation is there but its not making it passed compiling.
Alchemist Feb 2, 2019 @ 12:36pm 
ah i got it working in hl2 model viewer, redid the rigging for the 7th time and changed what list i used in the animations tab, for some reason the top 4 drop down options wouldnt play the animation.

Now i have to animate it in game

I ran
function AnimateTest(self) timer.Simple( 10, function() local sequence = self:LookupSequence( "active" ) self:ResetSequence( "active" ) self:SetSequence( sequence ) print("Sequence Test") end ) timer.Simple( 20, function() self:SetSequence( "active" ) print("Simple Sequence Test") end ) end

and the strings were printed but the animation didnt play.
Alchemist Feb 2, 2019 @ 12:51pm 
Originally posted by Dubz:
ah i got it working in hl2 model viewer, redid the rigging for the 7th time and changed what list i used in the animations tab, for some reason the top 4 drop down options wouldnt play the animation.

Now i have to animate it in game

I ran
function AnimateTest(self) timer.Simple( 10, function() local sequence = self:LookupSequence( "active" ) self:ResetSequence( "active" ) self:SetSequence( sequence ) print("Sequence Test") end ) timer.Simple( 20, function() self:SetSequence( "active" ) print("Simple Sequence Test") end ) end

and the strings were printed but the animation didnt play.

I also tried printing the animations table with GetSequenceList()

console
Sequence Test Simple Sequence Test idle active
Alchemist Feb 2, 2019 @ 1:39pm 
I have
ENT.AutomaticFrameAdvance = true
in shared.lua

and
local sequence = self:LookupSequence( "active" ) self:ResetSequence( "active" ) self:SetSequence( sequence )
in initialize
Last edited by Alchemist; Feb 2, 2019 @ 1:39pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Feb 2, 2019 @ 5:43am
Posts: 5