Help:Dumping games

From ZeldaMods
Jump to: navigation, search

In order to get a copy of the content files and executable, you will need to dump Breath of the Wild from a console. This article provides instructions for Wii U and Switch users.

Wii U

Dump the game files from the console to your computer using this guide. BotW's Title ID is 0005000E101C9400 for the US version, and 0005000E101C9500 for the EU version.

Switch

The general process is:

  1. Dump the base version NCA of the game.
  2. Dump the update NCA.
  3. Extract the romfs to get a copy of the content files.

Warning: Running homebrew on the Switch can get you banned from Nintendo online services if you aren't careful. If you do not want to leave any traces, turn on airplane mode, back up your NAND before running any homebrew and do not ever go online before you have restored the backup.

Prerequisites

  • hactool
  • Keys (see below)
    1. Run kezplez-nx on your console in order to dump keys that are required to decrypt contents (or get a copy of the keys manually).
    2. Copy the keys file from your SD to $HOME/.switch/prod.keys.

Dumping the base NCA

Because of how updates work on Switch, the base NCA must be dumped even if you're only interested in 1.5.0.

  • If your base game is on a cartridge, dump it with gcdumptool. You'll get an XCI. Extract the secure partition — in which the main NCA can be found — with hactool -t xci -i image.xci --securedir=secure/. The main NCA is the largest NCA in the secure partition.
  • If your base game is stored on the NAND, copy it to the SD card and follow this guide. (You could also extract the NCA from the NAND but that is sensibly more complicated.)
  • If your base game is stored on the SD card, follow this guide.

At this point, you now have the base NCA (~10GB). Its SHA256 hash is efecb2d6befccddc928e44416dbdee38.

Dumping the update

  • If your update is stored on the NAND, copy it to the SD card and follow this guide. (Again, you could also extract from the NAND but it's much more complicated.)
  • If your update is stored on the SD card, follow this guide.

You now have the update NCA (SHA256 is dab7abb85deaab23c04f4660d21c4bf8).

Extracting the romfs

Now that you have the base NCA, the update NCA and associated title keys, you can extract the romfs (which contains all content files):

hactool -x -t nca path/to/update.nca  --basenca path/to/base.nca --titlekey TITLE_KEY --romfsdir where/to/extract/the/romfs

where TITLE_KEY is the title key for the update (not the base title!)

To extract the exefs (which contains the executable and SDK libraries):

hactool -x -t nca path/to/update.nca  --basenca path/to/base.nca --titlekey TITLE_KEY --exefsdir where/to/extract/the/exefs

Dumping the DLC

The DLC can be dumped by following the same procedure. Note that the title key is different.