Skip to content

Extracting Game Files

Vuze edited this page Apr 25, 2021 · 12 revisions

Introduction

Monster Hunter Rise uses the proprietary RE Engine developed by Capcom. Much like in other games based on RE Engine (like Resident Evil 7 and Devil May Cry 5), Monster Hunter Rise game data is stored in .pak container files. Resident Evil modder FluffyQuack has created REtool, which among other things can be used to unpack and repack Monster Hunter Rise .pak container files. More information on the structure of said .pak files can be found in the source code of REtool linked above.

In order to access the game data itself, the Nintendo Switch container files need to be decrypted and unpacked first, however. There are various ways to do this. This guide will cover a more advanced tool that should allow you to easily tackle game updates and potential DLC as well.

Requirements

The above tools and files may be updated periodically.

Unpacking the Nintendo Switch container files

  1. Put the prod.keys file you dumped from your Switch console in the same directory as hactool.exe
  2. Put your dumped game/update in the same directory as hactool.exe
  3. Open a command line in the same directory as hactool.exe as follows: hold down the Shift key and right click on empty space in the Explorer window, then select Open PowerShell window here
  4. Depending on the format of your game/update dump, copy and paste the matching commands found below in the command line while adjusting the file names (and title key, if required) accordingly. Then press the Enter key to execute each command
  5. Done. You should find the romfs directory with the .pak files inside the same directory as hactool.exe

hactool commands (Base game)

NSP:

  1. ./hactool.exe -k prod.keys -tpfs0 -x --outdir="unpacked" base_game.nsp
  2. Drag and drop the .tik file in the folder unpacked onto GetTitlekey.exe to retrieve the title key for the next step.
  3. ./hactool.exe -k prod.keys -tnca --titlekey=pastekeyhere --romfsdir=romfs unpacked/name_of_biggest_nca.nca

XCI:

  1. ./hactool.exe -k prod.keys -txci --securedir="unpacked" base_game.xci
  2. ./hactool.exe -k prod.keys -tnca --romfsdir=romfs unpacked/name_of_biggest_nca.nca

hactool commands (Base game and update)

Base game as NSP:

  1. ./hactool.exe -k prod.keys -tpfs0 -x --outdir="unpacked_base" base_game.nsp
  2. Drag and drop the .tik file in the folder unpacked_base onto GetTitlekey.exe to retrieve the title key for the next step.
  3. ./hactool -k prod.keys --titlekey=pastekeyhere --plaintext="unpacked_base/decryptedBase.nca" unpacked_base/name_of_biggest_nca.nca
  4. ./hactool.exe -k prod.keys -tpfs0 -x --outdir="unpacked_patch" patch.nsp
  5. Drag and drop the .tik file in the folder unpacked_patch onto GetTitlekey.exe to retrieve the title key for the next step.
  6. ./hactool.exe -k prod.keys --basenca=unpacked_base/decryptedBase.nca --titlekey=pastekeyhere --romfsdir=romfs unpacked_patch/name_of_biggest_nca.nca

Base game as XCI:

  1. ./hactool.exe -k prod.keys -txci --securedir="unpacked_base" base_game.xci
  2. ./hactool.exe -k prod.keys -tpfs0 -x --outdir="unpacked_patch" patch.nsp
  3. Drag and drop the .tik file in the folder unpacked_patch onto GetTitlekey.exe to retrieve the title key for the next step.
  4. ./hactool.exe -k prod.keys --basenca=unpacked_base/name_of_biggest_nca.nca --titlekey=pastekeyhere --romfsdir=romfs unpacked_patch/name_of_biggest_nca.nca

Unpacking the .pak files

  1. Find the .pak file in the romfs folder you extracted in the previous section and move it to the same directory as REtool.exe
  2. Move the mhrise.list file you downloaded in the same directory as REtool.exe
  3. Open a command line in the same directory as REtool.exe as follows: hold down the Shift key and right click on empty space in the Explorer window, then select Open PowerShell window here
  4. Copy and paste the following command in the command line while adjusting the file name accordingly: .\REtool.exe -h mhrise.list -x -skipUnknowns pak_name.pak. Then press the Enter key to execute the command
  5. Done. You should find the pak_name directory with all known game data files inside the same directory as REtool.exe

Merging patch data

In order to easily merge the base game data with updates, just use .\REtool.exe -h mhrise.list -x -skipUnknowns -noExtractDir pak_name.pak consecutively, starting with the base game .pak, then following the patches in their respective order. REtool will not use an individual directory for each pak and overwrite files, so that you end up with a single directory containing the most recent version of each file.

Clone this wiki locally
  翻译: