• Hey, guest user. Hope you're enjoying GameParadise! Have you considered registering for an account? Come join us and add your take to the daily discourse.
Porting a Model from V to VV - Step by Step

Porting a Model from V to VV - Step by Step
A Tutorial for Shin Megami Tensei V: Vengeance.

666e755898048.jpg


Introduction

Welcome to this comprehensive guide on porting a Model's mesh from Shin Megami Tensei V to Shin Megami Tensei V Vengeance. In general, you will learn how to extract and re-import a modded model. This guide covers everything from setting up the necessary programs to Blender procedures and importing them back into Unreal Engine, even some Material tips. Though on the last one, i really suggest you to research about modding it! You can create really good looking model with Materials and Texture Maps.

The guide also helps you avoid issues, because Vengeance needs some extra steps for the mod to work with no issues.

I recommend you having notion or experience on modding so maybe follow the Model Editing Guide!

GitHub Mirror

If i forgot something, some item needs clarification 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.
  • FModel.
  • UAssetGUI.
  • Both SHIN MEGAMI TENSEI V Base Game and SHIN MEGAMI TENSEI V VENGEANCE
  • 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:
    1. Right click the game on your Steam Library > Manage > Browse Local Files.
    2. The game folder, SMT5V will open, keep it open and jump to step 2.

Emulators

  • 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/010069c01ab82000/romfs.

Step 2: Prepare SMTV Files

You need SMTV base game because model swap mods don't have skeleton when shipped, it uses the demons vanilla skeleton, you need a skeleton to be exported as well.

  1. Open romfs/Project/Content/Paks/~mods and paste your mod there.

Step 3: Export Character

Do this two times, one for SMTV (VNX) and SMTVV (VPC).

  1. Extract FModel.
  2. Open FModel.
  3. Click Directory > Selector.
  4. Click the arrows icon under ADD UNDETECTED GAME.
  5. On Directory, select:
    • (VVPC) Path/to/SteamLibrary/common/SMT5V.
    • (VNX) Path/to/SMTV/ExtractedRomFS.
  6. Click the + button.
  7. On the Top Section change UE Versionsto:
    • (VVPC) GAME_UE4_27.
    • (VNX) GAME_UE4_23.

Step 4: Exporting the mod's Model

  1. Open the SMT V profile
  2. On the Top Bar click on Settings.
  3. In Texture Platform select Nintendo Switch.
  4. In the Side Bar change Mesh Format to PSK
  5. Change the pak loading method to ALL
  6. Load the PAK
  7. Go to the replaced character folder:
    • If it's Chadhobino, the protagonist as Nahobino, go to Game/Design/Character/Player/pla603_hero_union.
  8. 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.
  9. On the Top Bar click on Settings.
  10. In the Side Bar change Mesh Format to glTF 2.0 (binary)
  11. Right click pla603_hero_union folder, then:
    • Save Folder's Packages Models.
  12. Output will be on FModel Folder/Output/Exports/Project.
  13. Go to that output path and change Project to ProjectMod otherwise it will be overwritten later.

Step 5: Exporting the unedited's Model

This step is crucial for a mod that alter Nahobino, because there were skeleton changes from base SMTV, if you're unsure your character had changes to the skeleton either compare the skeletons or just do this step anyway, it's not harmful.

  1. Open the SMT VV profile
  2. On the Top Bar click on Settings.
  3. In Texture Platform select PC.
  4. In the Side Bar change Mesh Format to PSK.
  5. Change the pak loading method to ALL
  6. Load the PAK
  7. Go to the unedited character folder:
    • If it's Chadhobino, the protagonist as Nahobino, go to Game/Design/Character/Player/pla603_hero_union.
  8. 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.
  9. No need for glTF for ports since we will not use this mesh later.
  10. Output will be on FModel Folder/Output/Exports/Project.

Step 6: Import and Combine Files in Blender

For the modded character export:

  1. Click Import PSK and import the base game mod character's mesh.
  2. Go to File > Import > glTF and import the base game modcharacter's mesh.
    • If the glTF skeleton gets upside down, ignore it, follow the steps.
  3. Click on the Armature Object1 of the imported glTF then hold CTRL and click the Armature Object3 of the imported PSK.
    Combine PSK and GLTF
  4. Click on Combine PSK and GLTF3 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.
  5. Click Import PSK.
  6. Import the unedited model.

Step 6.1: Changing skeletons in Blender

  1. Click the modded mesh1 inside the armature, hold CTRL, click the VV's unedited model2 then hover your mouse to the viewport and press CTRL + P and select Armature Deform3.
    Changing skeletons in Blender
  2. Delete the modded mesh's old Armature.
  3. Select the modded mesh on the new Armature1, go to Modifiers2 and remove the old Armature's modifier3.
    Removing old armature
  4. Select the Armature and enter Pose Mode, select some bones, mainly the spine and legs and do some movement to see if it's all right, CTRL + Z back to the t-pose after that.

Step 6.2: Dealing with new mesh additions

You may notice that nahobino has 4 new swords, totaling 6 along with the old pair, you may want to keep them!

  1. Return to Object Mode and select the VV's unedited Mesh, enter Edit Mode.
  2. Unselect everything by click on an empty part of the viewport.
  3. Hover over each of the Swords and press L on each of them, Right Click Viewport > Separate > Selection
    Separating mesh
  4. You'll notice a new object appeared under the Armature, enter Object Mode and delete the mesh of the VV's unedited Body.
  5. That will leave you with 2 meshes, the swords and the modded mesh.

Step 6.3: Checking material names

FModel seems to not keep all the material names, fix that! (Section done afterwards so that's why the extra sword meshes aren't on the screenshot, imagine they are)

  1. Return to Object Mode and select the modded Mesh1, enter Edit Mode2 go to Materials3, and see if any entry is called material_n.
    Checking material names
  2. If true then you'll have to fix it, go to the modded character's Mesh folder on the ProjectMod Output folder and open the mesh.uasset (eg. SK_pla603.uasset) with UAssetGui.
  3. In Name Map check the paths with "Material" on it, compare to see what's missing on Blender's materials.
  4. If it's more than one and if you don't know which part the material covers:
    • Still in Edit Mode unselect everything1, Select the unnamed material2 and click Select3, the part of that material is now selected4.
    Selecting material
  5. Rename the material by double clicking on it.

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 in the PSK addon.

Step 7: Import to Unreal Engine 4.27

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

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


Step 8: Prepare for Cooking

  1. If the model has custom textures, see where they are located in the ProjectMod folder.
  2. Recreate the Texture folder on UE4 and move them there.
  3. Select them, Right click > Assets Action > Bulk Edit via Property Matrix....
  4. Tick Compress Without Alpha and on Mip Gen Settings select NoMipmaps.
  5. Go to File > Save All.
  6. Close the window.
  7. Create the Material folder.
  8. Move the materials created by UE4 to the Material folder.

Step 8.1: Creating PostAnimBP (Pla601 or Pla603 only)

  1. On the Mesh Folder right click SK_pla603 > Create > Anim Blueprint.
  2. Name it Pla603_PostAnimBP.
  3. Create the The following folder:
    • /Content/Blueprints/Character/Player/Pla603/.
  4. Move Pla603_PostAnimBP to the Pla603 folder.
  5. On the Mesh Folder double click SK_pla603.
  6. In the Asset Details sidebar, scroll down to the Skeletal Mesh section.
  7. Find Pla603_PostAnimBP in the Post Process Anim Blueprint dropdown.
  8. Close the SK_pla603 window.

Step 8.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.

  1. On the Mesh Folder rename SK_pla603_PhysicsAsset to SK_pla603_PhAT and double click it.
  2. In the Skeleton Tree sidebar, select any bone, press CTRL + A and unselect the b_pelvis bone.
  3. Right click the selection and select Delete.
  4. Select the b_pelvis bone and in the Detailstab on the right sidebar:
    • 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.
  5. Close the SK_pla603_PhAT window.
  6. Go to File > Cook Content for Windows.

Step 9: Create Mod Folder

  1. Create the mod's working folder, in this case the example folder.
  2. 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.
  3. Create the mod's folder structure from UE4 inside the exahero folder.
    • No need for the Material or Blueprints folder.
  4. Move the mesh and physics asset files from the cooked's Mesh folder to the mod's Mesh folder, same for the textures.
    • Should be inside D:\Documents\Unreal Projects\ProjectName\Saved\Cooked\WindowsNoEditor\ProjectName\Content\Design\Character\Player\pla603_hero_union
    • Don't move the Skeleton uasset, otherwise it will break the game.

Step 10: Dealing with Extra Materials and Textures

This is here more as a rundown/barebones on materials because I'm lacking ideas on how to properly explain material editing right now (if you want to improve it follow the GitHub wiki link at top of the page and change it, I would appreciate it).

You (probably) can't just copy the base game materials, you need one cooked on UE 4.27, so you use one from the game.

  • Check if the base game mod has textures with different names from the vanilla character.
  • Check if there are extra materials in the base game mod compared to the vanilla folder.
If neither of the cases:

  • Maybe it's a mod that changes our man Nahobino shape to become the Giga Chadhobino, then probably no materials were changed:
    1. You're done, move to the packaging step
If the first case:

  • Let's say you're porting a Nahobino mod that attached something to him or replaced him with another model, that would need a different material as well.
    1. Go to the vv character Material folder.
    2. Copy a vv material that you think might fit the part the previous material was located (e.g., If it's skin, choose a skin, hada, body, or face material) to the equivalent ported mod Materialfolder.
      • You'll need to rename it both outside and inside the file, as well as adjust the path. To do so:
        1. Rename the extra material's name from its original name to the base game mod's.
        2. Open it with UAssetGui.
        3. On Name Map, find the path with the vv material's name on it.
        4. Click on the entry, copy it, right click, and select Replace all references...; PS: Don't just change it without doing this.
        5. Paste the path and change the material name at the end of the path. The path should match where the Material is currently located, starting from /Game/.
        6. Still on Name Map, scroll down to find the vv material's name without a path.
        7. Click on the entry, right click it, and select Replace all references..., change it as well.
        8. Do the same for the textures, rename both the paths and their isolated entries to the ones from the base game mod.
        9. Save it and close it.

Step 11: Package and Install Mod

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

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

Open the Game

  • You should notice the changes you did!
Game Screenshot


Enjoy your modding!
Author
admin
Views
257
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from admin

Back
Top