I myself learned from this article here: https://www.nexusmods.com/residentevil42023/articles/38

Instructions:

  • Use RE Tool to unpack the game's chunk file
  • Use FusionTools to find the file .pck file I need through trial and error (FusionTool can open .pck files and play the sound files in them)
  • Extract .wem, and converted .wav files from the .pck file I found.
  • Run Whisper voice recognition on .wav files, and make a spreadsheet linking WEM IDs to transcripts.
  • Find appropriate lines to replace the existing ingame lines, and put the replacement file names into the same spreadsheet.
  • Rename replacement lines to have the same filename they are replacing.
  • Use Wwise to convert replacement .wav files into .wem.
  • Overwrite the WEMs extracted in step 3 with new replacement WEMs.
  • Use FusionTool to open the .bnk file that corresponds to the .pck file found in step 2 and import all the WEMs into it.
  • Save the new BNK file.

SPCK vs SBNK:
You can see the filenames in the my mod's installation instructions, but there's a trick to them.The actual files that contain the voice lines in the game are sounds packs (pay attention to the .spck extension) here:
  • STM\Streaming\Sound\Wwise\OT_Dia_Type01_m.spck.1.X64.En
  • STM\Streaming\Sound\Wwise\OT_Dia_Type02_m.spck.1.X64.En
but editing them requires editing some metadata, like file sizes and loop points, which I am not entirely sure how to do because I couldn't find any concrete tutorials on that. So instead I am re-packing all the voice lines into the sound banks (extension is .sbnk here)which somehow sidesteps the issue and lets me just substitute the files without fiddling with metadata.
  • STM\Sound\Wwise\OT_Dia_Type01_m.sbnk.1.X64.En
  • STM\Sound\Wwise\OT_Dia_Type02_m.sbnk.1.X64.En
Hope that makes sense.


That's about the high level overview of it. If you have any questions you can ping me on the Modding Haven discord in the #mhwilds-modding channel.
The links for tools and discord can be found here: https://github.com/Modding-Haven/REEngine-Modding-Documentation

Article information

Added on

Edited on

Written by

SMasimar

0 comments