How do I get the romfs and exefs from a CIA file?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by CeeDee, Oct 26, 2015.

  1. CeeDee
    OP

    CeeDee Well?

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

    Our Patreon
    3,786
    5,274
    May 4, 2014
    United States
    I tried opening a CIA through 3DSExplorer and it said that there's an error opening ticket. What do I need to do to open a CIA and get the romfs and exefs from it?
     
    VegaRoXas and Mrrraou like this.
  2. CeeDee
    OP

    CeeDee Well?

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

    Our Patreon
    3,786
    5,274
    May 4, 2014
    United States
    ...and of course, no one bothers to help. Classic GBATemp :glare:
     
  3. MrCheeze

    MrCheeze GBAtemp Regular

    Member
    200
    208
    May 13, 2014
    Canada
    ctrtool --contents=contents whatever.cia
    ctrtool -p --exefs=exefs.bin contents.0000.00000000
    ctrtool -t exefs --exefsdir=exefs --decompresscode exefs.bin
    ctrtool -p --romfs=romfs.bin contents.0000.00000000
     
    _eyCaRambA_ and Olmectron like this.
  4. Iceman1800

    Iceman1800 Member

    Newcomer
    32
    5
    Sep 5, 2015
    Try the 3dshacks subreddit
     
  5. Asia81

    Asia81 In my Ecchi World <3

    Member
    4,881
    2,349
    Nov 15, 2014
    France
    Albi
    17 minutes after your first message, at 5.40am... AM...

    Are you stupid?
     
  6. cearp

    cearp the ticket master

    Member
    7,406
    4,658
    May 26, 2008
    Tuvalu
    lol, THIS is classic gbatemp. moron.
    I was just about to say the same thing!
     
    FrozenDragon150 and MAXLEMPIRA like this.
  7. Lukahn

    Lukahn Newbie

    Newcomer
    4
    5
    Oct 26, 2015
    France
    Truth be told, I'm interested as well.
    For context, been interested on using rom hacks with hax 2.5.

    What i'd like to do is this : dump a .3ds or .cia file and run it with hax2.5 (with hans iirc).

    So well, to begin with I guessed i had to come here to learn how to dump a file first.

    If someone can help me with this, then show me where i can learn how to run it, it would be cool.

    Thanks.
     
    Last edited by Lukahn, Oct 26, 2015
  8. Voxel

    Voxel Clumsy Coder

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

    Our Patreon
    5,160
    5,806
    Jun 27, 2015
    United Kingdom
    England, UK
    I'll answer the question, since no one else did... :glare:

    You need to use the 3DS to CIA converter 4.1 tool, which is hosted on Maxconsole.
    You need to convert your CIA to a 3DS file, but it depends on what CIA it is that you want to convert.

    the 3DS to CIA converter tool will only allow you to convert repacked and decrypted CIAs, so you're quite limited on what you can convert back to 3DS.

    If, however, you are successful, then use the unpack/repack feature to get the RomFS files.

    I hope that helps! :P

    Link to the program:
    http://www.maxconsole.com/maxcon_forums/threads/285574-3DS-To-CIA-Converter-v4-1
     
    Vladimir15 likes this.
  9. LITTOMA

    LITTOMA Advanced Member

    Newcomer
    67
    42
    Nov 14, 2014
    Switzerland
    gbatemp is an international website
     
    Kuriboh123 likes this.
  10. VegaRoXas

    VegaRoXas GBAtemp Regular

    Member
    290
    158
    Mar 29, 2015
    Gambia, The
    The second command just says "Unknown file".
     
  11. cearp

    cearp the ticket master

    Member
    7,406
    4,658
    May 26, 2008
    Tuvalu
    you will only be able to get good stuff out of the cia if it is decrypted, if it is dumped from eshop tickets with something like FunkyCIA then you will need to generate xorpads, get the title key decrypted... etc etc

    ok by same thing i meant the 17 minutes wait. (not the entire same thing, you got me)
     
  12. Sasori

    Sasori GBAtemp Maniac

    Member
    1,341
    778
    Jan 28, 2015
    United States
  13. megamanaxle

    megamanaxle Member

    Newcomer
    31
    3
    Oct 27, 2015
    can i do that with cia dlc?
     
  14. MrNetch

    MrNetch Member

    Newcomer
    34
    4
    Jan 22, 2016
    Gambia, The
    How do you unpack the .3ds file then?
     
  15. Voxel

    Voxel Clumsy Coder

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

    Our Patreon
    5,160
    5,806
    Jun 27, 2015
    United Kingdom
    England, UK
    The .3ds file has to be decrypted through rxtools (or another .3ds decrypting app), then on your PC, run the 3DS to CIA converter batch file -> View Extras Menu -> Start 3DS ROM pack/unpack for editing.
     
    MrNetch likes this.
  16. MrNetch

    MrNetch Member

    Newcomer
    34
    4
    Jan 22, 2016
    Gambia, The
    Ok, thank you! :)
     
    Voxel likes this.
  17. Giodude

    Giodude Ruler of Italy

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

    Our Patreon
    3,625
    1,013
    May 17, 2015
    United States
    New York
    how do i put the romfs and exefs back together again (i used braindump to get them)
     
  18. zigafide
    This message by zigafide has been removed from public view by Issac, Jan 12, 2017, Reason: Don't necrobump!.
    Jan 12, 2017