Dump & Extract Game - three-houses-research-team/Throne-of-Knowledge GitHub Wiki

Dump Game

Requirements

Guide

  1. To dump the base game, DLC, or the update refer to https://suchmememanyskill.github.io/guides/switchdumpguide/
  2. Copy the NSP from your microSD card to the hactool folder. In the hactool folder, click the address bar and type cmd and press enter. In the command prompt window, type hactool -t pfs0 [NSP filepath] --outdir [output folder] with [NSP filepath] being the filepath of the NSP and [output folder] the folder that will contain the NCA files.

Extract RomFS & ExeFS of Base Game

Requirements


Guide

Note: If there is a tik file in the [output folder], open up the file in a hex editor and go to offset 0x180 and copy 16 bytes from that position. That hex string is the titlekey and is needed for step 1. If no tik file was in the [output folder], ignore.

  1. If there wasn't a tik file in the [output folder]

In the command prompt window, type hactool --k [keys] --romfsdir=[romfs] --exefsdir=[exefs] [main NCA filepath] with [keys] being the encryption keys file, [romfs] being the folder that will contain the romfs, [exefs] being the folder that will contain the exefs, and [main NCA filepath] being the filepath of the NCA file with the biggest filesize.

  1. If there was a tik file in the [output folder]

In the command prompt window, type hactool --k [keys] -titlekey=[titlekey] --romfsdir=[romfs] --exefsdir=[exefs] [main NCA filepath] with [keys] being the encryption keys file, [titlekey] being the titlekey hex string, [romfs] being the folder that will contain the romfs, [exefs] being the folder that will contain the exefs, and [main NCA filepath] being the filepath of the NCA file with the biggest filesize.

  1. In the [romfs] folder, copy only data0.bin and data1.bin to a new folder with any desired name. Extract Extract.7z, and move all its files to the folder with only data0.bin and data1.bin. Make sure there are no folders and no other files in that directory other than: data0.bin, data1.bin, extractIndexNum.py, and filelist.csv

  2. Run the extractIndexNum.py script. In the out folder is the extracted game files. There are no filenames or filesystem, but if you would like to have a filesystem with names created by the community, run filelist.py.

Note: If you are facing issues, follow these steps instead.

Refer to here for info on the files.

Extract RomFS & ExeFS of DLC

Guide

  1. In the command prompt window, type hactool --k [keys] --romfsdir=[romfs] --exefsdir=[exefs] [main NCA filepath] with [keys] being the encryption keys file, [romfs] being the folder that will contain the romfs, [exefs] being the folder that will contain the exefs, and [main NCA filepath] being the filepath of the NCA file with the biggest filesize.

  2. Open up the tik file in the [romfs] folder in a hex editor and go to offset 0x180 and copy 16 bytes from that position. That hex string is the titlekey and is needed for step 3.

  3. In the command prompt window, type hactool --k [keys] -titlekey=[titlekey] --romfsdir=[romfs] --exefsdir=[exefs] [main NCA filepath] with [keys] being the encryption keys file, [titlekey] being the titlekey hex string, [romfs] being the folder that will contain the romfs, [exefs] being the folder that will contain the exefs, and [main NCA filepath] being the filepath of the NCA file with the biggest filesize.

  4. In the [romfs] folder, copy only data0.bin and data1.bin to a new folder with any desired name. Place the extractIndexNum.py script in the directory with just data0.bin and data1.bin.

  5. Create a new folder with any desired name in the directory.

  6. Run the extractIndexNum.py script, and wait until the console has terminated. If you have different versions of python installed. Make sure you have your python configured in your system variables. Refer to this, if you don't know how to configure. Run a command window in the same directory as extractIndexNum.py and type py -2 extractIndexNum.py and press enter.


Patching