Blender To Source (Animations not Running)

I have finished a model and its texture and animations, but the exported animations do not work in source games, can anyone figure out why?

Here is the project for anyone who knows how to animate for source i could really do with some help.

I’m using blender and source tools smd exporter, and studio compiler.

Download Project

Files:

  • turn.blend
  • turn.blend 1
  • sonicgen_base.smd
  • sonicgen.qc
  • collision.smd
  • sonicgen_tex.tga
  • /anims

$modelname "sonicgen\sonicgen.mdl"
$scale 20
$body mybody "sonicgen.smd"

$surfaceprop metal
$cdmaterials "models\sonicgen"


//--------------------------------------•-------
// Sequences
//--------------------------------------•-------

$sequence idle "anims/idle.smd" loop fps 1
$sequence active "anims/active.smd" loop fps 30

//--------------------------------------•-------
// Physbox
//--------------------------------------•-------

$collisionmodel "collision.smd" { $concave }

Your $sequence for active isn’t being set to a Source activity.

Try using:



$sequence "active" "anims\active.smd" {
	fps 30
	snap
	"INSERT_ACT_HERE" 1
}

Here’s a list of activities from Source:



ACT_VM_DRAW,
ACT_VM_HOLSTER,
ACT_VM_IDLE,
ACT_VM_FIDGET,
ACT_VM_PULLBACK,
ACT_VM_PULLBACK_HIGH,
ACT_VM_PULLBACK_LOW,
ACT_VM_THROW,
ACT_VM_PULLPIN,
ACT_VM_PRIMARYATTACK,		// fire
ACT_VM_SECONDARYATTACK,		// alt. fire
ACT_VM_RELOAD,			
ACT_VM_DRYFIRE,				// fire with no ammo loaded.
ACT_VM_HITLEFT,				// bludgeon, swing to left - hit (primary attk)
ACT_VM_HITLEFT2,			// bludgeon, swing to left - hit (secondary attk)
ACT_VM_HITRIGHT,			// bludgeon, swing to right - hit (primary attk)
ACT_VM_HITRIGHT2,			// bludgeon, swing to right - hit (secondary attk)
ACT_VM_HITCENTER,			// bludgeon, swing center - hit (primary attk)
ACT_VM_HITCENTER2,			// bludgeon, swing center - hit (secondary attk)
ACT_VM_MISSLEFT,			// bludgeon, swing to left - miss (primary attk)
ACT_VM_MISSLEFT2,			// bludgeon, swing to left - miss (secondary attk)
ACT_VM_MISSRIGHT,			// bludgeon, swing to right - miss (primary attk)
ACT_VM_MISSRIGHT2,			// bludgeon, swing to right - miss (secondary attk)
ACT_VM_MISSCENTER,			// bludgeon, swing center - miss (primary attk)
ACT_VM_MISSCENTER2,			// bludgeon, swing center - miss (secondary attk)
ACT_VM_HAULBACK,			// bludgeon, haul the weapon back for a hard strike (secondary attk)
ACT_VM_SWINGHARD,			// bludgeon, release the hard strike (secondary attk)
ACT_VM_SWINGMISS,
ACT_VM_SWINGHIT,
ACT_VM_IDLE_TO_LOWERED,
ACT_VM_IDLE_LOWERED,
ACT_VM_LOWERED_TO_IDLE,
ACT_VM_RECOIL1,
ACT_VM_RECOIL2,
ACT_VM_RECOIL3,
ACT_VM_PICKUP,
ACT_VM_RELEASE,
 
ACT_VM_ATTACH_SILENCER,
ACT_VM_DETACH_SILENCER,


i’ll try this now thanks, i reposted about this forgot i had already posted. here’s the new project
http://forum.facepunch.com/showthread.php?t=1505709

i’ll try the command now.

[editline]12th February 2016[/editline]

i tried this, still no luck

Sorry for the late response;

So your next best bet is something wrong lua code. Make sure your SWEP code is actually performing ACT_PRIMARYATTACK when left clicking

EDIT: I just checked your code. You only have the animation for idle. Add the other animation.