Help:Dumping games: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Link to a more up-to-date repository)
No edit summary
 
Line 37: Line 37:


== Switch ==
== Switch ==
Dump the game files directly to your PC using nxdumptool. Update data can only be processed if the base game is available, because they share the same filesystem. DLCs don't, so they have to be dumped separately.


'''Warning''': If you misbehave (piracy, online cheating or anything equally stupid), you might get banned from Nintendo online services. If you do not want to leave any traces, turn on airplane mode, back up your eMMC '''before running any homebrew''' and do not ever go online before you have restored the backup.
'''Warning''': If you misbehave (piracy, online cheating or anything equally stupid), you might get banned from Nintendo online services. If you do not want to leave any traces, turn on airplane mode, back up your eMMC '''before running any homebrew''' and do not ever go online before you have restored the backup.
=== Dumping from emulators ===


If you already have the game setup on a Switch emulator, you do not need to follow any of the steps with nxdumptool on your Switch. Right click the game in your emulator and:
If you already have the game setup on a Switch emulator, you do not need to follow any of the steps with nxdumptool on your Switch. Right click the game in your emulator and:
Line 47: Line 48:
'''Note: If you have the DLCs, dumping from Ryujinx will not be sufficient as it is only capable of dumping the base application and update.'''
'''Note: If you have the DLCs, dumping from Ryujinx will not be sufficient as it is only capable of dumping the base application and update.'''


=== Prerequisites ===
=== Dumping from a Switch ===
 
Dump the game files directly to your PC using nxdumptool. Update data can only be processed if the base game is available, because they share the same filesystem. DLCs don't, so they have to be dumped separately.
 
====Prerequisites====
* Keys file generated using [https://github.com/saneki/Lockpick_RCM/releases/ Lockpick_RCM], located at <code>sdmc:/switch/prod.keys</code>. Run the payload on your console through RCM in order to dump the keys needed by nxdumptool to decrypt contents.
* Keys file generated using [https://github.com/saneki/Lockpick_RCM/releases/ Lockpick_RCM], located at <code>sdmc:/switch/prod.keys</code>. Run the payload on your console through RCM in order to dump the keys needed by nxdumptool to decrypt contents.
* [https://github.com/DarkMatterCore/nxdumptool/releases/tag/rewrite-prerelease nxdumptool rewrite] (get both <code>nxdt_host.7z</code> and <code>nxdt_rw_poc.nro</code>).
* [https://github.com/DarkMatterCore/nxdumptool/releases/tag/rewrite-prerelease nxdumptool rewrite] (get both <code>nxdt_host.7z</code> and <code>nxdt_rw_poc.nro</code>).
* [https://zadig.akeo.ie/ Zadig] to setup the driver (used for dumping through USB)
* [https://zadig.akeo.ie/ Zadig] to setup the driver (used for dumping through USB)


=== Dumping game files ===
====Setting up the driver====
 
# First, make sure to dump your keys by injecting the '''Lockpick_RCM''' payload and selecting "Dump title keys", then reboot to Atmosphère.
# Place nxdumptool rewrite (<code>nxdt_rw_poc.nro</code>) into the switch folder of your SD card, open it through the Homebrew Launcher, and plug the Switch to your computer with a USB cable.
# With nxdumptool open, launch Zadig on your computer
# Go to <code>Options</code> and make sure <code>List all devices</code> is checked -- if not, click that option.
# Using the dropdown list with USB devices, select the name of the NRO you launched on your Switch (e.g. <code>nxdt_rw_poc</code>).
# Change the <code>Driver</code> dropdown on the right to <code>libusbK</code> (the actual version number doesn't matter).
# Wait until the installation process finishes. If you did it correctly, Zadig should look like this:
[[File:Zadig.png|border|500x500px]]
 
 
====Dumping game files (romfs)====


* First, make sure to dump your keys by injecting the '''Lockpick_RCM''' payload and selecting "Dump title keys", then reboot to Atmosphère.
# Open the host app (.exe file extracted from <code>nxdt_host.7z</code>), and click <code>Start Server</code>
# If the UI says that the Switch is not detected, make sure that nxdt is running on your Switch, that you have setup the driver properly, and that you don't have a bad USB cable.
# On nxdumptool, navigate through the menu by selecting the following options:
## Go to <code>user titles menu</code>, then select <code>The Legend of Zelda: Breath of the Wild</code>
## Select the following options: <code>nca / nca fs dump options</code>  -> <code>dump base application</code> -> <code>Program #0</code> -> <code>FS section #2: RomFS</code>
## On the line with <code>use base/patch title</code>: select the installed update
## On the line with <code>output storage</code>: select <code>usb host (pc)</code>
## Select <code>start nca fs section dump</code>


* Place nxdumptool rewrite (<code>nxdt_rw_poc.nro</code>) into the switch folder of your SD card, open it through the Homebrew Launcher, and plug the Switch to your computer with a USB cable.
*With nxdumptool open, launch Zadig on your computer, and follow the driver installation instructions below
*# Go to <code>Options</code> and make sure <code>List all devices</code> is checked -- if not, click that option.
*# Using the dropdown list with USB devices, select the name of the NRO you launched on your Switch (e.g. <code>nxdt_rw_poc</code>).
*# Change the <code>Driver</code> dropdown on the right to <code>libusbK</code> (the actual version number doesn't matter).
*# Wait until the installation process finishes. If you did it correctly, Zadig should look like this:
[[File:Zadig.png|border|500x500px]]
* Open the host app (.exe file extracted from <code>nxdt_host.7z</code>), and click <code>Start Server</code>
* If the UI says that the Switch is not detected, make sure that nxdt is running on your Switch, that you have setup the driver properly, and that you don't have a bad USB cable.
* On nxdumptool, navigate through the menu by selecting the following options:
*# Go to <code>user titles menu</code>, then select <code>The Legend of Zelda: Breath of the Wild</code>
*# Select the following options: <code>nca / nca fs dump options</code>  -> <code>dump base application</code> -> <code>Program #0</code> -> <code>FS section #2: RomFS</code>
*# On the line with <code>use base/patch title</code>: select the installed update
*# On the line with <code>output storage</code>: select <code>usb host (pc)</code>
*# Select <code>start nca fs section dump</code>
  Depending on your USB speed (2.0 or 3.0) and the quality of your cable, it may vary from 10 minutes up to an hour.
  Depending on your USB speed (2.0 or 3.0) and the quality of your cable, it may vary from 10 minutes up to an hour.
   
   
  '''It may fail if your USB cable is faulty, if the USB port on your PC is faulty, or if you run out of space on your computer (dumping BotW requires at least 14GB of available storage).'''
  '''It may fail if your USB cable is faulty, if the USB port on your PC is faulty, or if you run out of space on your computer (dumping BotW requires at least 14GB of available storage).'''
'''Dumping DLCs'''
Just like mentioned previously, updates share their filesystem data with the base game, so dumping the RomFS with an update is equivalent to dumping the whole filesystem from the updated game data. In other words, it isn't necessary to dump the base game filesystem and update separately.
Just like mentioned previously, updates share their filesystem data with the base game, so dumping the RomFS with an update is equivalent to dumping the whole filesystem from the updated game data. In other words, it isn't necessary to dump the base game filesystem and update separately.


Navigation menu