SMTV ‐ From Game to Blender to Game - mugenrei/mugenrei.github.io GitHub Wiki

Step 0: Programs you need


Step 1: Extract game's files

  • On Ryujinx:
  1. Add a game folder with SMTV's .NSP inside.
  2. Right click the game > Extract Data > RomFS.
  3. Select the folder, click OK and wait.
  • On Yuzu:
  1. Add a game folder with SMTV's .NSP inside.
  2. Right click the game > Dump RomFS.
  3. Select Program, click OK.
  4. Full, click OK.
  5. It will should extract the game to %APPDATA%/Yuzu/dump/010063B012DC6000/romfs.

Step 2: Export Character from UModel

  1. Extract UModel.
  2. Open either the default or modified executable.
  3. In Path to game files, click ... and browse the Path/to/SMTV/ExtractedRomFS.
  4. Tick Override game detection.
  5. On the First dropdown: Select Unreal engine 4, Second Dropdown: Select Unreal engine 4.23.
  6. Platform: Select Nintendo Switch.
  7. Click OK.
  8. Input the AES key 0x5B23532568E0C4E82F4ABC7B22BCAC3599006FD106D9CD8AACD1BD4393FFDC61 and click OK.
  • Alternatively:
    1. On the UModel folder right-click on any blank space, then New > Text Document.
    2. Name it Start.bat.
    3. Open it and paste the following:
    • "umodel.exe" "Path/to/SMTV/ExtractedRomFS/Project/Content/Paks/pakchunk0-Switch.pak" -game="ue4.23" -nsw -aes=0x5B23532568E0C4E82F4ABC7B22BCAC3599006FD106D9CD8AACD1BD4393FFDC61
    1. Open it, it's a nice shortcut!
  1. Go to the character folder:
  • For Chadhobino, the protagonist as Nahobino, go to Game/Design/Character/Player/pla603_hero_union/Mesh.
  1. Single click SK_Pla603.uasset and click Export on the program's footer.
  2. Set an output folder, then in Skeletal Mesh, under Mesh Export, select ActorX (psk) then click OK.
  3. Again, single click SK_Pla603.uasset and click Export on the program's footer.
  4. Set an output folder, then in Skeletal Mesh, under Mesh Export, select glTF 2.0 then click OK.
  5. Close Umodel.

Step 3: Install Blender Addon

  1. Download this fork of blender3d_import_psk_psa.
  2. Open Blender, go to File > Preferences > Add-ons.
  3. Install the addon on Blender and enable it by ticking it's box.
  4. You should see the PSK addon in the CTRL+N sidebar on Blender's viewport.
  5. Open it.

Step 4: Import and Combine Files in Blender

  1. Click import PSK.
  2. Go to File > Import > GLTF.
  3. Click on the Armature Object (imported PSK) then CTRL click the GLTF imported Object.
  4. Click on Combine PSK and GLTF in the PSK addon.

Combine Objects


Step 5: Editing Mesh in Blender

  1. Select the mesh inside the armature and enter edit mode.
  2. Do some edits, you can just move some vertexes.

Dummy Edit

  1. Or you can enter Blender's sculpt mode tab and give that a go.
  2. Enter Sculpting tab[1], then expand your Armature Object[2], select the Mesh[3] and enter Sculpt Mode[4].

Sculpt Mode

  1. After that you can enable symmetry mirror to aid you[1], then you can change your brush options[2] or select a different mode[3].

Sculpt Settings

  1. Then brush your model! You can use this to maybe improve that female model, or to do Giga Chadhobino!

Brushing


Step 6: Export from Blender

  1. Enter object mode and save the project.
  2. Select the Armature object.
  3. Make sure it is named Armature.
  4. Click export as FBX.

Exporting


Step 7: Import to Unreal Engine 4.23

  1. Open Unreal Engine 4.23 and create a blank project.
  2. Create the character's "Mesh" folder structure.
  • For Chadhobino it is /Content/Design/Character/Player/pla603_hero_union/Mesh.
  1. Rename the FBX you exported from Blender to match the character's uasset name (e.g., SK_pla603.fbx).
  2. Drag and drop it into the UE4's "Mesh" folder.

Importing


Step 8: Set Import Settings

  1. Tick these import settings: Use T0 As Ref Pose, Import Normals and Tangents.

Import Settings


Step 9: Prepare for Cooking

  1. Create the "Material" folder
  • Again, for Chadhobino it is /Content/Design/Character/Player/pla603_hero_union/Material.
  1. Move the materials placeholders that UE4 created to the Material folder.

Cooking

  1. Go to File > Cook Content for Windows.

Step 10: Create Mod Folder

  1. Create the mod's working folder, in this case the example folder.
  2. Inside this folder you:
  • Extract the UnrealPak.exe and the BAT file accompanying it.
  • Create a folder for the pak, in this example the exahero folder.
  1. Create the mod's folder structure from UE4 inside the exahero folder.
  • exahero/Project/Content/Design/Character/Player/pla603_hero_union/Mesh.
  • No need for the Material folder.
  1. Move the mesh files from the cooked's Mesh folder to the mod's Mesh folder.
  • Should be inside D:\Documents\Unreal Projects\ProjectName\Saved\Cooked\WindowsNoEditor\ProjectName\Content\Design\Character\Player\pla603_hero_union\Mesh
  • Don't move the Skeleton uasset, otherwise it will break the game.

Mod Folder


Step 11: Package and Install Mod

  1. Drag the mod's exahero folder to unrealpak's BAT.

Paking mod

  1. Copy the mod.pak to the game's ~mods folder.
  • Refer to my Mod installation guide if you have inexperience installing mods.
  1. Fire up the game.

Open the game

  • You should notice the changes you did!

Fire the Game


Enjoy your modding!