Converting eshop dump to CIA possible ?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by sion_zaphod, May 31, 2016.

  1. sion_zaphod
    OP

    sion_zaphod Ex-Galactic President; confidence trickster; etc

    Member
    321
    118
    Sep 4, 2011
    Wales
    Is it possible to convert an already installed eshop title to CIA? I have a title installed on my 3ds and I would like to convert it to CIA to install on my Daughters 3ds. You might ask why don't I just use eshop on my Daughters console to download the title; well the answer is because the title is no longer available on eshop. It was a free download back in the early days of the console and it's called Kingdom of Plants 3D. I have tried many different methods to get a CIA version but no luck. I've tried using CiAngel and freeshop to search for it but I guess it's been removed from the Nintendo servers. Seems a bit excessive for a simple free video app. Anyway my daughter really likes watching it but I would prefer being able to put it on her 3ds so she doesn't keep using mine:wink:.

    I've read tutorials for dumping titles and repacking them and tried to do this with braindump then extracting the romfs/exefs from the cxi file but I've read that the exheader created from braindump files cannot be used to repack to CIA.

    Can someone give me a detailed explanation of how to do this correctly or would anyone be up to the challenge of converting it for me if I provide the files. After all this was a free download and it's no longer available it must be considered quite rare.
     
  2. TheKawaiiDesu

    TheKawaiiDesu Ball of Kawaiiness

    Member
    1,431
    1,505
    Aug 23, 2015
    Korea, North
    Lowee
    I think you can use Decrypt9 to dump your encTitleKeys.bin file from your 3DS, copy it to your daughter 3DS' SD card, convert the encTitleKeys.bin file to .tik files with CIAngel, install them with FBI, and then download the game you're looking for from FBI. You just need to find the Title ID for your game.
     
  3. sion_zaphod
    OP

    sion_zaphod Ex-Galactic President; confidence trickster; etc

    Member
    321
    118
    Sep 4, 2011
    Wales
    I have the title ID for the app but it is not hosted any more. I've tried funkycia, plaicdn and dtk to download it but cannot download it the title is 000400000009A400.
     
  4. TheKawaiiDesu

    TheKawaiiDesu Ball of Kawaiiness

    Member
    1,431
    1,505
    Aug 23, 2015
    Korea, North
    Lowee
    Then, as I said, you can dump your encTitleKeys.bin file with Decrypt9 (on the 3DS where the game is installed), transfer that file to the other 3DS' SD card, convert the file to .tik files using CIAngel, install the 000400000009A400.tik file with FBI, then go to tickets > 000400000009A400 > install from CDN (still in FBI).
     
  5. sion_zaphod
    OP

    sion_zaphod Ex-Galactic President; confidence trickster; etc

    Member
    321
    118
    Sep 4, 2011
    Wales
    Do you mean dump my decTitleKeys.bin? How do i convert that to ticket with ciangel? where do I copy the file? And what do I do in the ciangel app?
     
  6. sion_zaphod
    OP

    sion_zaphod Ex-Galactic President; confidence trickster; etc

    Member
    321
    118
    Sep 4, 2011
    Wales
    Guess what! 404 error when trying to redownload via ticket file (I think that shows its no longer on the nintendo servers). Does anyone else have a solution. This must be one of the rarest eshop files since its not even on that iso site. Can someone please tell me how to convert it to an installable cia? I have dumped the title. Extracted the romfs and exefs now how can I rebuild a cia from that?
     
  7. Ryccardo

    Ryccardo WiiUaboo

    Member
    3,325
    1,597
    Feb 13, 2015
    Italy
    Imola
    You can decryot the installed copy of the game by using Decrypt9's SD decryptor option (the easiest way is D9/Game decryptor/SD decryptor sysnand or emunand, but it will process every installed title taking a lot of time), so that you'll end up with decrypted .app files = NCCHs;

    after figuring out the ones belonging to that app (easy, the folders are numbered according to title id),
    and which one is the main cxi, which one is the manual (file size would probably be enough),
    and their content-id (it's in their filename)
    ...you can assemble them into a cia with makerom!

    makerom -f cia -o KingdomOfPlants3D.cia -content 457362fa.app:0:457362fa -content 00000a02.app:1:00000a02 -major 1 -minor 1
    (in this example, the "game" is 457362fa and the manual 00000a02

    Good luck!!

    -------------

    Update 2016-10-16

    Decrypt9 now has an automatic macro to do this!
     
    Last edited by Ryccardo, Oct 16, 2016
  8. gamesquest1

    gamesquest1 Nabnut

    Member
    GBAtemp Patron
    gamesquest1 is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    14,149
    9,502
    Sep 23, 2013
    I have a cia of it, took ages to find a system that still had it still actually installed and on the SD as it was removed from the servers

    But yeah i just did basically what the guide above said, decrypt the SD files and rebuilt the cia
     
    Last edited by gamesquest1, Jun 4, 2016
    sion_zaphod likes this.