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 hm?~

    Member
    3,838
    5,435
    May 4, 2014
    United States
    somewhere
    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 hm?~

    Member
    3,838
    5,435
    May 4, 2014
    United States
    somewhere
    ...and of course, no one bothers to help. Classic GBATemp :glare:
     
  3. MrCheeze

    MrCheeze GBAtemp Regular

    Member
    200
    210
    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
    5,149
    2,565
    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,552
    4,815
    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 u wot

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

    Our Patreon
    5,218
    5,965
    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,552
    4,815
    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 Advanced Maniac

    Member
    1,547
    935
    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 u wot

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

    Our Patreon
    5,218
    5,965
    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 GBAtemp's official rock

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

    Our Patreon
    4,231
    1,305
    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
  19. cl_yde_

    cl_yde_ Member

    Newcomer
    25
    3
    Sep 1, 2017
    United Kingdom
    when I do that, i can't find the bunch of zeros on Hxd and i didn't know what to highlight. (from the extracted romfs.bin file)
     
  20. Zidapi

    Zidapi GBAtemp Psycho!

    Member
    3,045
    1,826
    Dec 1, 2002
    Congratulations.

    It's one thing to necrobump bump a thread that hasn't been active for more than 18 months, but it takes a truly special kind of moron to do so when the post directly preceding yours was removed for doing just that.

    But I didn't come here just to insult you, I'm also here to give assistance! As you might expect from a thread that hasn't been active for 18 months, the methods and applications are very out of date.

    There is now a much easier way of extracting files from games using godmode9. This guide by @ih8ih8sn0w will walk you through the process.
     
    ih8ih8sn0w and Voxel like this.
  21. GlitchytheHackermain

    GlitchytheHackermain Member

    Newcomer
    27
    0
    Oct 5, 2017
    Canada