Changin a Unit's Animations

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Changin a Unit's Animations

Post by Fierfek »

Okay, I looked through the FAQ, but couldn't find anything.
I know I'll probably get kicked for this, but how do I change a model's animation? I want to change a droid's animation to a clone one.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changin a Unit's Animations

Post by Maveritchell »

Clones use the standard human animations, droids use the droid animationbank. To switch animationbank lines is pretty self-explanatory (they have an obvious odf parameter); to use the standard human animations, just remove the line.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

Maveritchell wrote:Clones use the standard human animations, droids use the droid animationbank. To switch animationbank lines is pretty self-explanatory (they have an obvious odf parameter); to use the standard human animations, just remove the line.
Which line is that?
Sorry, I have never ever worked with animations before, so I am a complete noob.
MetalcoreRancor
Brigadier General
Brigadier General
Posts: 628
Joined: Thu Jun 07, 2007 11:13 am
Projects :: No Mod project currently.
Games I'm Playing :: swbf origin
xbox live or psn: No gamertag set

Re: Changin a Unit's Animations

Post by MetalcoreRancor »

add SkeletonName = "human"
AnimationName = "human" to your droids odf coding
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

Okay, here is my droid's odf:
Hidden/Spoiler:
[GameObjectClass]

ClassParent = "cis_inf_default_engineer"


[Properties]

GeometryName = "cis_inf_bdroid"
GeometryLowRes = "cis_inf_bdroid_low1"
SkeletonName = "human"
SkeletonLowRes = "human"
AnimationName = "human"

FirstPerson = "CIS\cisbdrd;cis_1st_bdroid"

OverrideTexture = "cis_inf_battledroid_orange"
He isn't ingame. Here is the section of my error log:
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10505)
EntitySoldier "cis_inf_engineer" missing animation bank "human"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10536)
EntitySoldier "cis_inf_engineer" missing lowres animation bank "human"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10505)
EntitySoldier "cis_inf_engineer" missing animation bank "human"
Now what?
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Changin a Unit's Animations

Post by RogueKnight »

Fierfek wrote:Okay, here is my droid's odf:
Hidden/Spoiler:
[GameObjectClass]

ClassParent = "cis_inf_default_engineer"


[Properties]

GeometryName = "cis_inf_bdroid"
GeometryLowRes = "cis_inf_bdroid_low1"
SkeletonName = "human"
SkeletonLowRes = "human"
AnimationName = "human"

FirstPerson = "CIS\cisbdrd;cis_1st_bdroid"

OverrideTexture = "cis_inf_battledroid_orange"
He isn't ingame. Here is the section of my error log:
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10505)
EntitySoldier "cis_inf_engineer" missing animation bank "human"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10536)
EntitySoldier "cis_inf_engineer" missing lowres animation bank "human"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10505)
EntitySoldier "cis_inf_engineer" missing animation bank "human"
Now what?
Possibly the fact that you don't have an anim bank named "human"?

Not sure if thats a stock animbank, I don't work with those often, but what I would do first is to go check the parent odf of the clone trooper to find out what animation bank that uses, copy it over to your CIS side, reference it in your engineer ODF and munge.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

DarthRogueKnight wrote:
Fierfek wrote:Okay, here is my droid's odf:
Hidden/Spoiler:
[GameObjectClass]

ClassParent = "cis_inf_default_engineer"


[Properties]

GeometryName = "cis_inf_bdroid"
GeometryLowRes = "cis_inf_bdroid_low1"
SkeletonName = "human"
SkeletonLowRes = "human"
AnimationName = "human"

FirstPerson = "CIS\cisbdrd;cis_1st_bdroid"

OverrideTexture = "cis_inf_battledroid_orange"
He isn't ingame. Here is the section of my error log:
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10505)
EntitySoldier "cis_inf_engineer" missing animation bank "human"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10536)
EntitySoldier "cis_inf_engineer" missing lowres animation bank "human"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntitySoldier.cpp(10505)
EntitySoldier "cis_inf_engineer" missing animation bank "human"
Now what?
Possibly the fact that you don't have an anim bank named "human"?

Not sure if thats a stock animbank, I don't work with those often, but what I would do first is to go check the parent odf of the clone trooper to find out what animation bank that uses, copy it over to your CIS side, reference it in your engineer ODF and munge.
How do I find out which animation the rep odf uses? I looked through everything I could think of, but couldn't find anything.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changin a Unit's Animations

Post by Maveritchell »

Maveritchell wrote:Clones use the standard human animations, droids use the droid animationbank. To switch animationbank lines is pretty self-explanatory (they have an obvious odf parameter); to use the standard human animations, just remove the line.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

Maveritchell wrote:
Maveritchell wrote:Clones use the standard human animations, droids use the droid animationbank. To switch animationbank lines is pretty self-explanatory (they have an obvious odf parameter); to use the standard human animations, just remove the line.
Okay, but where is the parameter? This is my VERY first time working with animations, so don't expect me to know everything about it.
Is this the parameter?
Hidden/Spoiler:
[GameObjectClass]

ClassParent = "cis_inf_default_engineer"


[Properties]

GeometryName = "cis_inf_bdroid"
GeometryLowRes = "cis_inf_bdroid_low1"
SkeletonName = "bdroid"
SkeletonLowRes = "bdroidlz"


FirstPerson = "CIS\cisbdrd;cis_1st_bdroid"

OverrideTexture = "cis_inf_battledroid_orange"
Do I just remove that part?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changin a Unit's Animations

Post by Maveritchell »

Yes. "Skeleton" and "Animation" references are - essentially - the same thing. The default animationbanks aren't supposed to be specifically referenced in the odf, so all you need to do is remove any references to anything else.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

Okay - figured it out.
Problem though - now he looks like this:
Hidden/Spoiler:
Image
How do I fix that?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changin a Unit's Animations

Post by Maveritchell »

Fierfek wrote:How do I fix that?
By using the droid animationset that you just changed it from. Alternatively you could re-envelop the model to a new skeleton in XSI.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

Maveritchell wrote:
Fierfek wrote:How do I fix that?
By using the droid animationset that you just changed it from. Alternatively you could re-envelop the model to a new skeleton in XSI.
I want him to have the clone's animations for a disguise kit.
And XSI won't work for me.
Xavious did this in his new Battlefront Clone Wars mod, right? How did he get it working?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changin a Unit's Animations

Post by Maveritchell »

Fierfek wrote:
Maveritchell wrote:
Fierfek wrote:How do I fix that?
By using the droid animationset that you just changed it from. Alternatively you could re-envelop the model to a new skeleton in XSI.
I want him to have the clone's animations for a disguise kit.
And XSI won't work for me.
Xavious did this in his new Battlefront Clone Wars mod, right? How did he get it working?
He either did what you did and lived with it or he did one of the things I said.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

Maveritchell wrote:
Fierfek wrote:
Maveritchell wrote:
Fierfek wrote:How do I fix that?
By using the droid animationset that you just changed it from. Alternatively you could re-envelop the model to a new skeleton in XSI.
I want him to have the clone's animations for a disguise kit.
And XSI won't work for me.
Xavious did this in his new Battlefront Clone Wars mod, right? How did he get it working?
He either did what you did and lived with it or he did one of the things I said.
Wait, are the skeleton and the animationset the same thing?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Changin a Unit's Animations

Post by Maveritchell »

Fierfek wrote:Wait, are the skeleton and the animationset the same thing?
Maveritchell wrote:Yes. "Skeleton" and "Animation" references are - essentially - the same thing.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Changin a Unit's Animations

Post by AceMastermind »

add SkeletonName = "human"
AnimationName = "human" to your droids odf coding


..."Skeleton" and "Animation" references are - essentially - the same thing...
excerpt from BF2 Jedi Creation.doc simplified by me wrote:the next line can be one of 3 choices:
1. Not included (blank)
if the model wants to use the basic human skeleton and animations.

2. AnimationName
if this model uses the basic human skeleton, but wants to provide its own animations as a set of files in the "munged" folder.

3. SkeletonName
if this model wants to use its own skeleton in addition to its own animations.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

No offense or anything, but is that just telling Mav something, or can it help me?
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Changin a Unit's Animations

Post by RogueKnight »

Fierfek wrote:No offense or anything, but is that just telling Mav something, or can it help me?
That can be very useful to you, if you understand it.
User avatar
Fierfek
High General
High General
Posts: 805
Joined: Wed Jul 01, 2009 4:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)

Re: Changin a Unit's Animations

Post by Fierfek »

DarthRogueKnight wrote:That can be very useful to you, if you understand it.
I kind of understand it.
This is what I want:
I want a normal-looking droid who, when the disguise kit is activated, turns into a normal-looking clone.
My question is: How do I accomplish that? Without using XSI.
Post Reply