Introduction
Welcome to this comprehensive guide on modding a Model's mesh on Shin Megami Tensei V Vengeance. In general, you will learn how to extract, edit, and re-import a model to SMTVV - From Game to Blender to Game. This guide covers everything from setting up the necessary programs to editing meshes in Blender and importing them back into Unreal Engine.It also helps you avoid issues, because Vengeance needs some extra steps for the mod to work with no issues.
A mod porting guide is coming soon.
GitHub Mirror
The mesh editing presented here is a simple sculpting or edit of existing vertexes, it doesn't teach you to add new ones, attach stuff, weight paint or replace the model, it's a simple guide for you to get the hang of model exporting and re-importing in a basic way, but you'll be able scale it to modeling and sculpting the model since it follows the same basic principle, or even tinker to fully replace the model if you have blender experience. Maybe in the future I can post a tutorial on Model replacing, but for now let's go, heh!
If i forgot something or something could be added, tell me.
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.
- 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.
- 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 click Export on the program's footer.
- Set an output folder, then in Skeletal Mesh, under Mesh Export, select ActorX (psk) then click OK.
- Again, single click SK_Pla603.uasset and click Export on the program's footer.
- Set an output folder, then in Skeletal Mesh, under Mesh Export, select glTF 2.0 then click OK.
- Single click SK_Pla603.uasset and SK_Pla603_PhAT.uasset and click Save on the program's footer.
- Set a path, I recommend you use the same you used for Export, click OK.
- Close UModel.
- 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
- Open it, it's a nice shortcut!
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.
- 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.
- Right click pla603_hero_union folder, then:
- Export Folder's Packages Raw Data (.uasset)
- Save Folder's Packages Textures (.png).
- Save Folder's Packages Models.
- Save Folder's Packages Animations.
- 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 GLTFin 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 demon's 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" folderstructure.
- 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.
- 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
- Create the Material folder:
- For Chadhobino, it is /Content/Design/Character/Player/pla603_hero_union/Material.
- 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 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 to SK_pla603_PhAT and double-click it.
- In the Skeleton Tree side bar, select any bone, press CTRL + A and unselect the b_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
- 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:
- Extract the UnrealPak.exe and the BAT 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.
- 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.
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.
Enjoy your modding!