SMTV ‐ From Game to Blender to Game - mugenrei/mugenrei.github.io GitHub Wiki
Step 0: Programs you need
- Unreal Engine 4.23.1, 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.
- This executable can extract SMTV's UI textures, you won't be doing that in the guide, but keep it in mind..
- If you want to have it, put on the folder you extracted UModel alongside the default exe.
- An emulator set-up with the keys, either Ryujinx or Yuzu, to extract the game's files.
Step 1: Extract game's files
- 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.
- Open either the default or modified executable.
- In
Path to game files
, click...
and browse thePath/to/SMTV/ExtractedRomFS
. - Tick
Override game detection
. - On the
First dropdown
: Select Unreal engine 4,Second Dropdown
: Select Unreal engine 4.23. Platform
: Select Nintendo Switch.- Click OK.
- Input the
AES
key0x5B23532568E0C4E82F4ABC7B22BCAC3599006FD106D9CD8AACD1BD4393FFDC61
and 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:
"umodel.exe" "Path/to/SMTV/ExtractedRomFS/Project/Content/Paks/pakchunk0-Switch.pak" -game="ue4.23" -nsw -aes=0x5B23532568E0C4E82F4ABC7B22BCAC3599006FD106D9CD8AACD1BD4393FFDC61
- 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.
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
. - Click on the Armature Object (imported PSK) then CTRL click the GLTF imported Object.
- Click on Combine PSK and GLTF in the PSK addon.
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.23
- Open Unreal Engine 4.23 and create a blank project.
- Create the character's "Mesh" folder structure.
- For Chadhobino it is
/Content/Design/Character/Player/pla603_hero_union/Mesh
.
- 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.
Step 8: Set Import Settings
- Tick these import settings: Use T0 As Ref Pose, Import Normals and Tangents.
Step 9: Prepare for Cooking
- Create the "Material" folder
- Again, for Chadhobino it is
/Content/Design/Character/Player/pla603_hero_union/Material
.
- Move the materials placeholders that UE4 created to the Material folder.
- 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.
- 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.
- 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.
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!