SMTVV ‐ From Game to Blender to Game - mugenrei/mugenrei.github.io GitHub Wiki
Step 0: Programs you need
- Unreal Engine 4.27, you can get it on the Unreal Engine Downloader Launcher.
- Tip: You can install to any folder, create a shortcut to the UE4Editor.exe then remove the launcher later.
- Blender, I've used Version 3.6.
- UModel.
- IF ON SWITCH: This executable can extract SMTVV's UI textures, you won't be doing that in the guide, but keep it in mind..
- IF ON SWITCH: If you want to have it, put on the folder you extracted UModel alongside the default exe.
- OR FModel.
- IF ON SWITCH: An emulator set-up with the keys, either Ryujinx or Yuzu, to extract the game's files.
Step 1: Locating game's files
PC
- On Steam:
- Right click the game on your
Steam Library > Manage > Browse Local Files
. - The game folder, SMT5V will open, keep it open and jump to step 2.
Emulators
- On Ryujinx:
- Add a game folder with SMTV's .NSP inside.
- Right click the game > Extract Data > RomFS.
- Select the folder, click OK and wait.
- On Yuzu:
- Add a game folder with SMTV's .NSP inside.
Right click the game > Dump RomFS
.- Select Program, click OK.
- Full, click OK.
- It will should extract the game to
%APPDATA%/Yuzu/dump/010063B012DC6000/romfs
.
Step 2: Export Character
From UModel
- Extract UModel.
- (PC) Download oo2core_5_win32.dll
- (PC) Copy and paste
oo2core_5_win32.dll
alongside the UModel executable. - Open UModel.
- In
Path to game files
, click...
and browse:- (PC)
Path/to/SteamLibrary/common/SMT5V
. - (NX)
Path/to/SMTVV/ExtractedRomFS
.
- (PC)
- Tick
Override game detection
. - On the
First dropdown
: Select Unreal engine 4,Second Dropdown
:- Select Unreal Engine 4.27.
- (NX)
Platform
: Select Nintendo Switch. - Click OK.
- Alternatively:
- On the UModel folder right-click on any blank space, then
New > Text Document
. - Name it
Start.bat
. - Open it and paste the following:
- (PC)
"umodel.exe" "Path/to/SMT5V/Folder" -game="ue4.27"
- (NX)
"umodel.exe" "Path/to/SMTVV/Folder" -game="ue4.27" -nsw
- (PC)
- Open it, it's a nice shortcut!
- On the UModel folder right-click on any blank space, then
- Go to the character folder:
- For Chadhobino, the protagonist as Nahobino, go to
Game/Design/Character/Player/pla603_hero_union/Mesh
.
- Single click
SK_Pla603.uasset
and clickExport
on the program's footer. - Set an output folder, then in
Skeletal Mesh
, underMesh Export
, select ActorX (psk) then click OK. - Again, single click
SK_Pla603.uasset
and clickExport
on the program's footer. - Set an output folder, then in
Skeletal Mesh
, underMesh Export
, select glTF 2.0 then click OK. - Close UModel.
From FModel
-
Extract UModel.
-
Open FModel.
-
Click
Directory > Selector
. -
Click the arrows icon under ADD UNDETECTED GAME.
-
On Directory, select:
- (PC)
Path/to/SteamLibrary/common/SMT5V
. - (NX)
Path/to/SMTVV/ExtractedRomFS
.
- (PC)
-
Click the
+ button
. -
On the Top Section change UE Versions to
GAME_UE4_27
. -
Click OK.
-
(NX) On the Top Bar click on
Settings
. -
(NX) In Texture Platform select
Nintendo Switch
. -
Go to the character folder:
- For Chadhobino, the protagonist as Nahobino, go to
Game/Design/Character/Player/pla603_hero_union/Mesh
.
- For Chadhobino, the protagonist as Nahobino, go to
-
Right click
pla603_hero_union
folder, then:- Save Folder's Packages Textures (.png).
- Save Folder's Packages Models.
- Save Folder's Packages Animations.
-
(NX) On the Top Bar click on
Settings
. -
In the Side Bar change Mesh Format to glTF 2.0 (binary)
-
Right click
pla603_hero_union
folder, then:- Save Folder's Packages Models.
-
Output will be on
FModel Folder/Output/Exports/Project
. -
Close FModel.
Step 3: Install Blender Addon
- Download this fork of blender3d_import_psk_psa.
- Open Blender, go to
File > Preferences > Add-ons
. - Install the addon on Blender and enable it by ticking it's box.
- You should see the PSK addon in the
CTRL
+N
sidebar on Blender's viewport. - Open it.
Step 4: Import and Combine Files in Blender
- Click import PSK.
- Go to
File > Import > GLTF
.- If the glTF skeleton gets upside down, ignore it, follow the steps.
- Click on the Armature Object (imported PSK) then CTRL click the GLTF imported Object.
- Click on Combine PSK and GLTF in the PSK addon.
- Why do this?: PSK usually don't preserve smoothing groups, making the mesh not be preserved, so you use the glTF mesh with the PSK Armature.
- Delete the glTF Armature.
Step 5: Editing Mesh in Blender
- Select the mesh inside the armature and enter edit mode.
- Do some edits, you can just move some vertexes.
- Or you can enter Blender's sculpt mode tab and give that a go.
- Enter Sculpting tab[1], then expand your Armature Object[2], select the Mesh[3] and enter Sculpt Mode[4].
- 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].
- Then brush your model! You can use this to maybe improve that female model, or to do Giga Chadhobino!
Step 6: Export from Blender
- Enter object mode and save the project.
- Select the Armature object.
- Make sure it is named Armature.
- Click export as FBX.
Step 7: Import to Unreal Engine 4.27
- Open Unreal Engine 4.27 and create a blank project called Project, optional name.
- Create the character's "Mesh" folder structure.
- For Chadhobino it is
/Content/Design/Character/Player/pla603_hero_union/Mesh
.
- For Chadhobino it is
- Rename the FBX you exported from Blender to match the character's uasset name (e.g.,
SK_pla603.fbx
). - Drag and drop it into the UE4's "Mesh" folder.
- You won't need Textures for this tutorial.
Step 8: Set Import Settings
- Tick these import settings: Use T0 As Ref Pose, Import Normals and Tangents.
Step 9: Prepare for Cooking
- Rename
SK_pla603_PhysicsAsset
toSK_pla603_PhAT
- Create the Material folder:
- Again, for Chadhobino it is
/Content/Design/Character/Player/pla603_hero_union/Material
.
- Again, for Chadhobino it is
- Move the materials created by UE4 to the Material folder.
Step 9.1: Creating PostAnimBP (Pla601 or Pla603 only)
-
On the Mesh Folder right click
SK_pla603 > Create > Anim Blueprint
. -
Name it
Pla603_PostAnimBP
. -
Create the The following folder:
/Content/Blueprints/Character/Player/Pla603/
.
-
Move
Pla603_PostAnimBP
to the Pla603 folder. -
On the Mesh Folder double click
SK_pla603
. -
In the
Asset Details
side bar, scroll down to the Skeletal Mesh section. -
Find
Pla603_PostAnimBP
in the Post Process Anim Blueprint dropdown. -
Close the
SK_pla603
window.
Step 9.2: Setting up the Physics Asset (Fix camera jamming into the body)
- This is the values for the Hero, Pla603, for other characters: Learn how to get them.
-
On the Mesh Folder rename
SK_pla603_PhysicsAsset
toSK_pla603_PhAT
and double click it. -
In the
Skeleton Tree
side bar, select any bone, pressCTRL + A
and unselect theb_pelvis
bone. -
Right click the selection and select
Delete
. -
Select the
b_pelvis
bone and in the Details Tab on the right side bar:- Under Collision change Collision Response to
Disabled
. - Under Physics change Physics Type to
Kinematic
. - Under Body Setup expand Primitives, Capsules and 0:
- Set the X on Center to
-10
- Set the Y on Center to
90
- Set the Radius to
70
- Set the Length to
70
- Set the X on Center to
- Under Collision change Collision Response to
-
Close the
SK_pla603_PhAT
window. -
Go to
File > Cook Content for Windows
.
Step 10: Create Mod Folder
- Create the mod's working folder, in this case the example folder.
- Inside this folder you:
- Extract the
UnrealPak.exe
and theBAT file
accompanying it. - Create a folder for the pak, in this example the exahero folder.
- Extract the
- 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 or Blueprints folder.
- Move the mesh and physics asset 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.
- Should be inside
Step 11: Package and Install Mod
- Drag the mod's exahero folder to unrealpak's BAT.
- Copy the
mod.pak
to the game's ~mods folder.- Refer to my Mod installation guide if you have inexperience installing mods.
- Fire up the game.
Open the game
- You should notice the changes you did!
Enjoy your modding!