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.
[URL="http://s000.tinyupload.com/index.php?file_id=37983252815068081969"]Download Project[/URL]
Files:
- turn.blend
- turn.blend 1
- sonicgen_base.smd
- sonicgen.qc
- collision.smd
- sonicgen_tex.tga
- /anims
[CODE]$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 }[/CODE]
Your $sequence for active isn't being set to a Source activity.
Try using:
[code]
$sequence "active" "anims\active.smd" {
fps 30
snap
"INSERT_ACT_HERE" 1
}[/code]
Here's a list of activities from Source:
[code]
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,
[/code]
i'll try this now thanks, i reposted about this forgot i had already posted. here's the new project
[url]https://facepunch.com/showthread.php?t=1505709[/url]
i'll try the command now.
[editline]12th February 2016[/editline]
i tried this, still no luck
[QUOTE]//---------------------------------------------------
// Resources, Scale & Properties
//---------------------------------------------------
$modelname "sonicgen/sonicgen.mdl"
$scale 20
$body mybody "sonicgen.smd"
$cdmaterials "models/sonicgen"
$surfaceprop metal
$MaxEyeDeflection 90
// $HBoxSet "default"
$definebone "sonicgen_plate" "" 0.000000 0.000000 0.000000 -0.000000 126.869877 89.999983 0.000000 0.000000 0.000000 -0.000000 -0.000000 -0.000000
$definebone "blender_implicit" "" 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
//---------------------------------------------------
// Sequences
//---------------------------------------------------
$sequence "idle" "anims\idle.smd" {
fps 30
snap
"ACT_VM_IDLE" 1
}
//---------------------------------------------------
// Physics
//---------------------------------------------------
$collisionmodel "collision.smd" { $concave }
[/QUOTE]
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.
Sorry, you need to Log In to post a reply to this thread.