[Tutorial] Extract Update Data from your 3DS games!

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by PokeAcer, Feb 16, 2016.

  1. PokeAcer
    OP

    PokeAcer Banned

    Banned
    1,431
    1,055
    May 28, 2015
    United Kingdom
    Wales
    Hey all, I've devised a method on extracting update data.
    For BOTH methods, you will need:
    * A 3DS that is <=9.2 (not emuNAND!)
    * Decrypt9, and a method to launch it
    * A 3DS ROM (Dump it from your carts)
    * (optional, if you want to know the FW version) CTR - http://scene.releases.free.fr/tools/download.php?dl=CTR_v1.8.4

    Before decrypting, open the ROM in CTR, and you will be told the Firmware.


    Method 1: Xorpads + 3DS dump
    * xorer - https://builds.archshift.com/xorer/nightly/
    * ctrKeyGen - https://raw.githubusercontent.com/Relys/3DS_Multi_Decryptor/master/ctrKeyGen.py
    * Hex Editor (optional, only if you want to *just* make UpdateData xorpads), on Windows I suggest HxD
    * VGMToolBox - https://sourceforge.net/projects/vgmtoolbox/
    * Decrypt9

    1. Drag-n-drop the 3DS game onto ctrKeyGen (or use python if non-Windows).
    2. (optional!!!!) Open ncchinfo.bin in your hex editor, and do the following:
    2a. Look at the 9th byte, and check how many xorpads are there. In this case, 5
    2b. Change that byte to 01, and remember that you need to delete 4 xorpad data parts. Each xorpad data section is 160-bytes long - HxD maps 16bytes to a line.
    2c. Delete 4*16-bytes until you're left with the first 16 bytes (xorpad header) and the UpdateData xorpad, and save.
    3. Place the ncchinfo.bin onto your SD and open up Decrypt9, press XORpad Generation => NCCH Padgen.
    4. Once the xorpad is made, move it, and the ROM, into the same dir as xorer.exe
    5. Run this command via command-line (In Windows, shift+right-click, Mac, find the Terminal App, and in Linux, open the terminal (in Ubuntu, press Ctrl+Alt+t))
    5a. For O3DS: xorer -p 7 -r TITLEID.UpdateData.romfs.xorpad GAME.3ds -o UpdateData.3ds
    5b. For N3DS: xorer -p 6 -r TITLEID.UpdateData.romfs.xorpad GAME.3ds -o UpdateData.3ds
    6. Once the program has completed, go to VGMToolBox, open Extraction Tools => Generic => ISO/Archive Extractor. Ignore the first 2 errors, and press no for hash checking.
    7. Open the third partition, then /, then right click RomFS and press Extract To, selecting a folder.
    7a. If N3DS, open the 2nd to last, as the last will carry O3DS updates.

    Method 2: Decrypt entire 3DS dump.
    * Decrypt9
    * Big enough SD to hold your entire 3DS ROM

    1. Place the ROM in SD:/D9Game/
    2. Launch Decrypt9, press Game Decryptor Options => NCCH/NCSD Decryptor, and wait for it to complete.
    3. Move the 3DS rom back, and open VGMToolbox Navigate to Extraction Tools => Generic => ISO/Archive Extractor, and drag on your 3DS rom.
    4. Open the third partition, then /, then right click RomFS and press Extract To, selecting a folder.
    4a. If N3DS, open the 2nd to last, as the last will carry O3DS updates.

    Hope this tutorial helped you!
    --PokeAcer