Page 1 of 1

Animation Problems....

Posted: Tue Sep 08, 2009 12:08 am
by RogueKnight
Well, I may be a little rusty in the modding area, but I'm 90% sure I set up D.U.C.K.'s animations correctly except for this;

Code: Select all

Message Severity: 3
.\Source\DisplaySoldier.cpp(349)
DisplaySoldier 'rep_inf_ep2_rifleman' failed to find animmap elite_
The map crashes, and about 200-300 of these pop up in my errorlog.

What I did:
1) Munged D.U.C.K.'s anims
2) Checked the ARC/munged folder and saw that they were indeed there
3) Referenced "AnimationName = "elite"" under the properties in rep_inf_default_rifleman

rep_inf_default_rifleman:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default"


[Properties]

AnimationName = "elite"

WEAPONSECTION = 1
WeaponName = "rep_weap_inf_sniper_rifle"
WeaponAmmo = 10


VOUnitType = 121
rep_inf_ep2_rifleman:
Hidden/Spoiler:
[GameObjectClass]
ClassParent = "rep_inf_default_rifleman"

[Properties]

AnimationName = "elite"

AnimatedAddon = "goggles"
GeometryAddon = "rep_waz_add_gogs"
AddonAttachJoint = "bone_head"

Label = "Republic Trooper"
UnitType = "trooper"
IconTexture = "rep_trooper_icon"

GeometryName = "rep_inf_trooper"
GeometryLowRes = "rep_inf_trooper_low1"
FirstPerson = "REP\reptroop;rep_1st_trooper"
Its referenced twice because I forgot that i needed to reference it in the parent file, which I'm still not sure of.

For good measures I also referenced it in the weapon odf:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_sniper_rifle"
GeometryName = "sniper_rifle.msh"

[Properties]

AnimationName = "elite"

GeometryName = "sniper_rifle"
HighResGeometry = "sniper_rifle"

OrdnanceName = "rep_weap_inf_sniper_rifle_ord"
FirePointName = "hp_fire"

//************************************************
//******************* SOUND *****************
//************************************************

FireSound = "rep_weap_inf_sniper_rifle_fire"
ReloadSound = "com_weap_inf_reload_med"
ChangeModeSound = "com_weap_inf_blaster_rifle_modechange"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "com_weap_inf_equip_med"
JumpSound = "com_weap_inf_rifle_mvt_jump"
LandSound = "com_weap_inf_rifle_mvt_land"
RollSound = "com_weap_inf_rifle_mvt_roll"
//ProneSound = "com_weap_inf_rifle_mvt_lie"
SquatSound = "com_weap_inf_rifle_mvt_squat"
//StandSound = "com_weap_inf_rifle_mvt_getup"
After that didn't work, i referenced it in the weapon's parent, and at that point it crashed.
Hidden/Spoiler:
[WeaponClass]
ClassLabel = "cannon"

[Properties]
ScoreForMedalsType = 4
MedalsTypeToLock = 4


AnimationName = "elite"

//***********************************************
//************* TARGET & RANGE VALUES **********
//***********************************************

TargetEnemy = "1"
TargetNeutral = "0"
TargetFriendly = "0"

TargetPerson = "1"
TargetAnimal = "1"
TargetDroid = "1"
TargetVehicle = "0"
TargetBuilding = "0"

MinRange = "8"
OptimalRange = "64"
MaxRange = "128"
AIUseBubbleCircle = "1"
AIBubbleSizeMultiplier = "0.6"

LockOnRange = "0.0"
LockTime = "0.0"
LockOnAngle = "1.0"

ReticuleInAimingOnly = 1
SniperScope = 1
ZoomFirstPerson = 1
ZoomMin = "2.0"
ZoomMax = "8.0"
ZoomRate = "0.0"

YawSpread = "0.0"
PitchSpread = "0.0"

KickStrength = "0.0" // "2.0"

SpreadPerShot = "1.1"
SpreadRecoverRate = "4.8"
SpreadThreshold = "1.6"
SpreadLimit = "6.0"

StandStillSpread = "0.0"
StandMoveSpread = "0.0"
CrouchStillSpread = "0.0"
CrouchMoveSpread = "0.0"
ProneStillSpread = "0.0"
ProneMoveSpread = "0.0"

//***********************************************
//*********** WEAPON PERFORMANCE VALUES *********
//***********************************************

RoundsPerClip = "8" // 5
ReloadTime = "2.0"
ShotDelay = "0.8" //1.0
TriggerSingle = "1"
MaxPressedTime = "0.0"

SalvoCount = "1"
SalvoDelay = "0.0"
InitialSalvoDelay = "0.0"
SalvoTime = "0.0"

//***********************************************
//*********** HUD & CONTROLLER VALUES *********
//***********************************************

ScopeTexture = "weapon_scope3"

MuzzleFlash = "small_muzzle_flash"
FlashColor = "255 80 80 255"
FlashLength = 0.025
FlashLightColor = "255 192 192 175"
FlashLightRadius = "2.0"
FlashLightDuration = "0.25"
Discharge = "small_smoke_effect"

Re: Animation Problems....

Posted: Tue Sep 08, 2009 6:00 am
by Deviss
lol Elite animation is for unit, not for weapon XD so remove them of your weapon's odf and did you munge right the elite animation ?? this is placed in munged folder of your side? :D

Re: Animation Problems....

Posted: Tue Sep 08, 2009 9:19 am
by RogueKnight
DarthRogueKnight wrote: 2) Checked the ARC/munged folder and saw that they were indeed there
I referenced the animation in the weapons parent file because the animation there was overriding the units animation somehow, and it must have worked, since it didn't crash until i did that.

Re: Animation Problems....

Posted: Tue Sep 08, 2009 10:14 am
by DarthD.U.C.K.
AnimationName = "elite"

that line in the weapon odf is wrong, weapons have animationbanks not animationnames
the proper line would be

AnimationBank = "pistol"

Re: Animation Problems....

Posted: Tue Sep 08, 2009 6:54 pm
by RogueKnight
Does it matter that its a rifle?

Ok, I added it and still got a crash, checking error log now.

EDIT: before I did the error log, i ran over the tut again for a refresher, and i missed this step;
"pistol" is the name of the animationbank, that means that in this case all pistols will use this animation (other animationbanks are tool, melee, bazooka etc.).
I changed the name of it to "rifle".
Testing again now.