Sifu Modding Wiki
DiscordGithub
  • 👋Welcome!
  • modding:sifu
    • Getting Started
      • Extracting Game Files
      • Creating Your First Mod
      • Making your .PAK / Mod
    • Information
    • File types and hierarchy
  • modding:tools
    • UnrealPak
    • UAssetGUI
    • UAssetAPI
    • Unreal Engine 4.26
    • UModel
    • Wwiseutil-gui
  • modding:tutorials
    • Community Tutorials
      • Rigging Player Model for Sifu [Blender]
      • How To Fix Old Combotrees/Moveset (After Summer Update)
      • How To Create Aging Hair
    • Model Swapping
    • Mesh Modding
    • Sound Modding
    • Moveset Modding
    • Map Modding
    • Blueprint Modding
    • Animation Swapping
    • Add more outfits to the closet
  • Help
    • Community
    • FAQ
Powered by GitBook
On this page
  • Required tools
  • Required files
  • Step 1. Export an animation
  • Step 2. Import custom animation in Blender
  • Step 3. Export custom animation to UE4
  • Step 4. Cook custom animation
  1. modding:tutorials

Animation Swapping

PreviousBlueprint ModdingNextAdd more outfits to the closet

Last updated 9 months ago

Note: You should already be familiar with creating & modifying .pak files, extracting assets with Fmodel, and working within Unreal Engine 4.26.

Required tools

Fmodel (Latest version)

  • Installation: Download from .

  • Usage: Browse and export game assets for further use.

  • Important: In the settings ("Models"), Socket format should be set to "Don't Export Bone Sockets"

Blender (3.5.0)

  • Installation: Download from .

  • Usage: Model, animate, and export assets for Unreal Engine. Export models and animations in formats like FBX for compatibility with Unreal Engine.

Unreal Engine (4.26)

  • Installation: Download via Epic Games Launcher from Unreal Engine website.

  • Usage: Import or replace assets, use Blueprints or C++ for game logic.

Required files

Unreal Engine 4 Animation Project Template

  • Installation: Download and save it somewhere on your pc

  • Usage: To cook the custom animations

Blender Import PSK/PSA addon

  • Installation: Download the zip file, in Blender go to "Preferences" => "Addons" => "Install Addon" and select the zip file.

  • Usage: To import psk and psa animations that you exported through fmodel

Skeletal Mesh of the main character in Sifu.

  • Installation: Download the psk and save it somewhere that you can easily access on your pc

  • Usage: Needed to be used in blender when importing animations

Step 1. Export an animation

In our case, we will be using Absolver as this pretty much matches with Sifu.

Open Fmodel and go to the animations folder. In there look for an animation that you want to use.

I'll be using "emote_seeYa.uasset". Right click and click on "Save Animation"

Step 2. Import custom animation in Blender

Now that we exported an animation from absolver, it is time to import it into blender. You should already have blender with the addon installed.

First, we will remove everything on the top right panel. Only the scene collection should stay.

It should look like this:

Now that this is done, we can import our skeletal mesh of the main character in Sifu.

Go to "File" => "Import" => "Skeleton Mesh" and select the psk in the folder that you saved it.

It should look like this:

Now we will import our custom animation from absolver. This can be done through the same method but instead of importing a skeleton Mesh we will be importing a "Skeleton Anim". Click on that and select the custom animation.

This is what you should see in Blender:

The yellow icons below are the keymarkers from the custom animation. You can also play it to see how it looks.

Step 3. Export custom animation to UE4

Now that we have our custom animation in Blender, you can do any modifications or instanly export it so that it can be imported into ue4. We will not be doing any modifications in this tutorial.

Export as FBX

To export to ue4, we will need a fbx file. To that, you can go to file => export => fbx. Before saving you should keep note of a few options.

On the right side you will have a panel where you can select or deselect some options

"Selected Objects" should be selected

Under Armature => Add leaf bones should be Deselected.

Bake animation should be selected

Now give your fbx the name of the current sifu animation that you want to replace. In my case I'm going to replace a taunt called "Bring it" so my filename is:

Now click on "Export FBX" and you have sucessfully exported the FBX.

Import into UE4.

Open the custom animation unreal engine 4 template that you can find up top. My content folder in the ue4 project looks like this:

We only need to be in the animations folder. Recreate the correct folder path to where the original sifu animation was stored in. In my case it is the "Taunts" folder.

In my Taunts folder I drag the fbx file into it. This will open an import panel. you need to deselect the import mesh option and select the base skeleton as the Skeleton. AFter that click on Import.

You will get a warning about bone transform being different. You can ignore that.

Open the animation, it will look weird and there is currently no way of fixing this. But trust the process.

Very important it to select "EnableRootMotion" this is also being used for attacks!

Step 4. Cook custom animation

Now you only need to save it and cook the animation. You can do this by going to File => "Cook Content For Windows". Wait a bit and you can find the custom animation under the "Saved\Cooked\WindowsNoEditor\" folder in your UE4 project.

Now you only need to create the .pak file and put the custom animation in there. Put it under the ~mods folder and it should look like this:

Fmodel website
Blender website
5MB
Sifu_Unreal_Project_Animation.zip
archive
46KB
io_import_scene_unreal_psa_psk_280.zip
archive
4MB
SK_M_MainChar_01.psk
"emote_seeYa.uasset"
Remove Collection, Camera, Cube and Light