3DBrew / ctrtool / 3DSExplorer discussion

Discussion in '3DS - Flashcards & Custom Firmwares' started by 3DSGuy, Aug 26, 2012.

  1. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    I thought it would be a good idea to make a thread for anyone to ask questions about, What a specific update to 3DBrew/ctrtool/3DSExplorer means/does? And what does it mean in the grand scheme of things? Or just explaining a file format. It's mainly for those without the knowledge/resources to figure it out themselves. Hopefully any false hopes leading to homebrew can be squashed before harm or can be done or more 50 page threads made. :)

    So if you have any questions, ask away. Hopefully myself or someone else will have the answer or at least an educated guess.
     
    Margen67, lokomelo and yuyuyup like this.


  2. yuyuyup

    yuyuyup GBAtemp Psycho!

    Member
    3,335
    765
    Apr 30, 2006
    United States
    USA MTN timezone
    Thanks for your help and also that great dev unit post from a while ago, the latest github from neimod updated with the following: Added preliminary support for RomFS. Does this mean anything? https://github.com/3dshax/ctr
     
  3. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    This update allows ctrtool to list and extract the resources from a RomFS file(the 'preliminary' part of the update comment, probably means that it's not perfect, or neimod intends to expand on the extracting capabilities). This is good, as at the moment no other tool can read/extract data from RomFS files.

    Some background info on the RomFS file format:

    RomFS files are part of the NCCH file format which are found in game ROMs(officially known as CCI files), eShop downloads and System titles
    RomFS is a file format which contains resources which is used by the executable code like textures, graphics and sounds, even level layouts perhaps. It can also hold the download play app which is sent over between 3DS' and it can also hold the electronic manual used by the home menu.
     
    1 person likes this.
  4. FAST6191

    FAST6191 Techromancer

    pip Reporter
    22,918
    8,598
    Nov 21, 2005
    Perhaps unrelated and I meant to ask in the dev thread but with the dev stuff and these tools is there a way to get either some dev binaries and/or assets in plaintext (well plain as far as the basic inbuilt ROM encryption). I ask as I would not mind a crack at reverse engineering some of the file formats in 3ds games like we did for the wii once decryption tools were released there ( http://gbatemp.net/topic/72013-wii-decryption-tool-released/page__st__15 ).
     
    1 person likes this.
  5. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    17,304
    7,882
    Oct 27, 2002
    France
    Engine room, learning
    Is there a visual schematics of a CCI, with each part nested?

    like:
    CCI (the rom dump)


    Something like that. Is that correct? It's not full, I put very few info inside, but it display visually the content of a CCI.

    I guess on the RomFS and ExeFS, there are different partitions (defined in the NCCH Header)
     
    Margen67, narutopet112 and 3DSGuy like this.
  6. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    Hmm there are some mistakes, I'll re-do your spoiler tree.
     
  7. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    NCSD i.e. CCI (the rom dump)

    That's more accurate. But looking at a rom in 3DSExplorer will give you a file tree, if you want something accurate.
     
    1 person likes this.
  8. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    Yes you can, if you have a developer NCCH(CXI/CFA) encrypted with the 'zeros' key ctrtool can decrypt the RomFS and dump the assets from the RomFS. (it can be encrypted with another key, but you have know the encryption key, and you have to specify the key when attempting to decrypt the NCCH with ctrtool)
     
  9. yuyuyup

    yuyuyup GBAtemp Psycho!

    Member
    3,335
    765
    Apr 30, 2006
    United States
    USA MTN timezone
    Sorry for the bump, but I noticed the http://3dbrew.org/wiki/Title_list was updated on the 7th. Would you mind explaining any updates (if any are even worth caring about,) you know me just trying to keep abreast
     
  10. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    This list got reduced to a manageable size by deleting the demo list and cartridge list and shrinking the size of the regular eShop list. I've moved the full lists to my github wiki page and keep them updated there.
     
  11. elisherer

    elisherer I ♥ 3DS

    Member
    778
    153
    Dec 16, 2009
    Iceland
    3dbrew.org
    There's a more robust list handled by mtheall on the irc channel..
     
  12. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    I didn't know mtheall upkept a list of eShop apps? is the irc channel you refer to "#3dsdev"?

    EDIT: isn't yellows8 mtheall?
     
  13. Pippin666

    Pippin666 SSF43DE Master

    Member
    1,778
    228
    Mar 30, 2009
    Canada
    Montreal, Qc
    Can we extract icon from the rom with this tool ?? I wish I could extract SMB3DLand and HoR's icon.

    Pip'
     
  14. SifJar

    SifJar Not a pirate

    Member
    6,022
    891
    Apr 4, 2009
    Only if you happen to have the key for the NCCH. Or else a developer NCCH (for which the key is all zeros, if I am understanding 3DSGuy correctly).

    So no, basically.

    EDIT: Actually, the icon is in the ExeFS, not the RomFS. So this may be wrong. I have no idea if anything can actually view/extract ROM icons, but I don't think so. I haven't seen any extracted icons before, so I am assuming it can't be done.
     
  15. elisherer

    elisherer I ♥ 3DS

    Member
    778
    153
    Dec 16, 2009
    Iceland
    3dbrew.org
     
  16. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    Thanks for clarifying :)
     
  17. RodrigoDavy

    RodrigoDavy GBAtemp Maniac

    Member
    1,453
    572
    Feb 9, 2011
    Brazil
    Just to confirm, the SD filesystem is encrypted with console unique keys under the Nintendo 3DS directory, does that means even the .sav files uses this kind of encryption? And if I want to backup a savefile, can I keep the encrypted copy in my computer and then transfer it to the sd card whenever I want?
     
    1 person likes this.
  18. heartgold

    heartgold GBAtemp Psycho!

    Member
    4,335
    1,031
    Sep 11, 2009
    London
    Yeah sure, I've done that plenty of times. Heck I had a Metriod fusion backup save on my PC along with other 3DS data, my current SD became faulty so I used the backup data and everything worked. Although I was a few levels behind in Metriod cos you know that was the backup when it was taken.
     
    3 people like this.
  19. 3DSGuy
    OP

    3DSGuy No longer in scene

    Member
    345
    303
    May 22, 2012
    United States
    Yep. Like heartgold said, you can keep backups of SD card game saves on your PC and restore them whenever you want.
     
    1 person likes this.
  20. sightlight

    sightlight GBAtemp Fan

    Member
    423
    42
    Aug 5, 2009
    United States
    Hey guys, are we close to hack the System?