Skip to content

GodMode9 CIA Dumping and Building

Chromaryu edited this page Dec 16, 2018 · 10 revisions

ABOUT PIRACY

It is ILLEGAL to share/link any files produced in following steps.

if you intended to use this guide to share/link, Stop.

Terms used in this Guide

  • TitleID
    • TitleID consists of 16 numeric character. Like 0004000000030000. You can find them in hax0kartik 3dsdb
  • CIA
    • CTR Importable Archive. Technical details here

Dumping and Converting A Cartridge Game To CIA

Warning: This'll take 2x SD size of actual cart size

  1. Select [C:]GAMECART.
  2. Select The [TitleID]_v00.trim.3ds file.
  3. Select NCSD image options... > Build CIA from file.
  4. Wait until operation finishes.
  5. The CIA will be in /gm9/out/[TitleID].cia (there may be more information than this in the name, that is perfectly fine and does not mean anything bad).

Dumping A Nintendo DS Cartridge As A NDS

  1. Select [C:]GAMECART.
  2. Select The *.trim.nds file. (* means there is any name on there. like POKEDUN SORA_C2SJ01_00)
  3. Select Copy to/gm9/out.
  4. Wait until the operation finishes.
  5. The *.trim.nds file will be in /gm9/out/.

Dumping An Installed SD Title As A CIA

  1. Select [A:] SYSNAND SD.
  2. Select title, highlight 00040000 if you are dumping a full title or 0004000e for an update, press R+A and select "Search for titles".
  3. Find the title which you want to dump with A button. The names are usually accurate enough.
  4. Select TMD file options....
  5. Select Build CIA (legit) if you intend to install into same console, otherwise select Build CIA (standard).
  6. The CIA will be in /gm9/out/[titleID].cia.

Dumping A System Title As A CIA

(Note: You may need the TitleID of the System App, a list of these can be found here)

  1. Select [1:] SYSNAND CTRNAND.
  2. Highlight the title folder, press R+A and select "Search for titles"
  3. Find the title which you want to dump. The names are usually accurate enough.
    • note: Special character like Japanese won't show in GodMode9.
  4. Select TMD file options... > Build CIA (legit).
  5. The CIA will be in /gm9/out/[titleID] (+ the name and some other information).cia.
    • note: there may be something before .cia, it is perfectly fine.

Dumping other files from CIAs (for ROM Hacking purposes)

  1. Navigate to the .CIA you wish to extract files from.
  2. Select it and select CIA image options... > Mount image to drive.
  3. Select the first folder, it should be called something like 0000.00000002 (names vary depending on the title).
    1. Make sure that the ROMFS is about the size of the installed title. If it is not, then the actual game content may be in another folder.
  4. Select the files that you wish to extract.
    1. I.e. if you need a full romfs.bin, select that. .code (code.bin) is stored in the exefs folder.
    2. If you need specific game files, you can navigate through the romfs folder to find specific files.
  5. Once you have either marked the files you want with L, and/or copied them with Y, hold R and press right on the d-pad to go to a new pane.
  6. Navigate to a folder in which you wish to extract files to, and press Y to paste the files.

Dumping other files from SD titles

  1. Select [A:] SYSNAND SD.
  2. Select title, highlight 00040000 if you are dumping a full title, 0004000e for an update press R+A and select "Search for titles"
  3. Select the .tmd, and then "Open containing folder"
  4. Select the largest .app > NCCH Options... > mount image to drive.
  5. Select the files that you wish to extract.
    1. I.e. if you need a full romfs.bin, select that. .code (code.bin) is stored in the "exefs" folder.
    2. If you need specific game files, you can navigate through the "romfs" folder to find specific files.
  6. Once you have either marked the files you want with L, and/or copied them with Y, hold R and press right on the d-pad to go to a new pane.
  7. Navigate to a folder in which you wish to extract files to, and press Y to paste the files.

Dumping other files from system titles

  1. Select [1:] SYSNAND CTRNAND.
  2. Highlight the "titles" folder, press R+A and select "Search for titles"
  3. Select the .tmd, and then "Open containing folder"
  4. Select the largest .app > NCCH Options... > mount image to drive.
  5. Select the files that you wish to extract.
    1. I.e. if you need a full romfs.bin, select that. .code (code.bin) is stored in the "exefs" folder.
    2. If you need specific game files, you can navigate through the "romfs" folder to find specific files.
  6. Once you have either marked the files you want with L, and/or copied them with Y, hold R and press right on the d-pad to go to a new pane.
  7. Navigate to a folder in which you wish to extract files to, and press Y to paste the files.

Dumping other files from a gamecart

  1. Go to [C:]GAMECART > Titleid.3ds > NCSD image options... > mount image to drive.
  2. Select content0.game (0 may be a different number, tend to be the largest).
  3. Select the files that you wish to extract.
    1. I.e. if you need a full romfs.bin, select that. .code (code.bin) is stored in the "exefs" folder.
    2. If you need specific game files, you can navigate through the "romfs" folder to find specific files.
  4. Once you have either marked the files you want with L, and/or copied them with Y, hold R and press right on the d-pad to go to a new pane.
  5. Navigate to a folder in which you wish to extract files to, and press Y to paste the files.

Dumping NCCH Images from a CIA for use with Citra (DLC titles will not work. As of like November builds, you can use updates with work)

  1. Go to where the CIA is located, open it > CIA image options... > Decrypt file (...) > Decrypt inplace.
    1. You can choose to decrypt to /gm9/out but you will need to navigate to the decrypted title.
    2. If it does fail, then the title is already decrypted and you can move on.
  2. Open it again > CIA image options... > Mount image to drive.
  3. You should see a folder (or two if the title has a manual) and .apps with the same names. Select the .app > NCCH image options... > decrypt file (/gm9/out).
    1. If you have multiple, go through each .app and make sure there is not a Manual.bcma inside of the romfs (the manual NCCH image is typically around 3mb, so if you have another .app which is obviously larger, go with that one).
    2. If it does fail, then the title is already decrypted and you can move on. If it didn't fail, then you are done.
  4. Select the same .app again and select Copy to /gm9/out.
  5. Rename the .app to have the file extension of .cxi.
  6. Open in Citra and hope it doesn't crash (I don't know what to do if it does crash).
You can’t perform that action at this time.