Implementing Custom First Person Animations Tutorial (FAQ)

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

Lieutenant General
User avatar
Posts: 672
Joined: Sat Sep 22, 2012 3:41 pm

Implementing Custom First Person Animations Tutorial (FAQ)

Postby Nedarb7 » Fri Feb 07, 2014 11:20 pm

IMPLEMENTING CUSTOM FIRST PERSON ANIMATIONS


I didn't like the fact that custom first person animations were unsupported so I decided to try a workaround. So here it is, a FP animation tutorial. Here's a video of me trying a custom animation: CLICK HERE
How it is done:

STEP 1
Create an Animations folder in data_*** then copy the FirstPerson folder from:
assets\Animations\
and paste it in your newly create Animations folder.

STEP 2
Create your animations (I believe there is a tutorial in the XSI FAQ covers this, just import a fp animation basepose instead of using the soldier bones. Edit it how you wish)
Replace the existing fp animation mshs with your new ones, make sure the names are the same, for example:
If you make a shooting animation name it humanfp_rifle_shoot and replace the one that exists with it.

STEP 3
Edit the munge.bat in the animation set you are changing, in this case humanfp (the other being droidekafp which is only used by walkerdroids. Don't change these names). Make it look like this:
Code: Select all
@call ..\munge_animation.bat "/keepframe0 /dest humanfp.zaf" Sides\fpanimset

Save and then run the munge.bat, if you are using windows vista, 7, or 8 you might need to edit
the munge_animation.bat in data_***\Animations\FirstPerson\ Click here for the fix

STEP 4
Now go to data_***\Sides\fpanimset\ and create a req called fpanimset. Make it look like this:
Code: Select all
ucft
{
   REQN
   {
      "zafbin"
      "humanfp"
   }
   REQN
   {
      "zaabin"
      "humanfp"
   }

}
Save and exit.

STEP 5
Open your LUA and find ReadDataFile("ingame.lvl"), add this on top of it:
Code: Select all
ReadDataFile("dc:SIDE\\fpanimset.lvl")


STEP 6
Go to data_***\_BUILD\Sides\ and make a folder called fpanimset, then go to
data_***\_BUILD\Sides\REP and copy the munge.bat and clean.bat. Paste them in your new fpanimset folder.

After this munge with sides selected fpanimset and you are done! :D
Last edited by Nedarb7 on Mon Mar 10, 2014 6:26 pm, edited 3 times in total.

Lieutenant General
User avatar
Posts: 714
Joined: Fri Aug 17, 2012 3:13 pm
Location: 411Remnant
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set

Re: Implementing Custom First Person Animations Tutorial

Postby TWINKEYRUNAWAY » Fri Feb 07, 2014 11:22 pm

:bowdown: Awesome job!

Master of the Force
User avatar
Posts: 4766
Joined: Sat Sep 19, 2009 11:37 am
Location: Mos Espa (germany)
Projects :: RC Side Mod SWBF2 HD SWBF3 Legacy

Re: Implementing Custom First Person Animations Tutorial

Postby Anakin » Sat Feb 08, 2014 12:30 pm

Thank you for this tutorial. There are a few animation i could do for RC

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 1 guest