How to extract a .cxi file?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by MarineSong, May 22, 2017.

  1. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    It's me again! :) Could somebody please tell me how to extract a .cxi file so that I can get a rom? You'll probably tell me to download ctrtool, but when I downloaded the .exe and clicked on it, the window opened for a split-second and closed again. I heard about an issue that some people were having with ctrtool; there isn't a 32-bit version apparently, and I think that's why I'm having problems too. (But I could be wrong.) Is there not some alternative software that could work and do what I need it to do?
     
    Last edited by MarineSong, May 22, 2017
  2. Asia81

    Asia81 In my Ecchi World <3

    Member
    5,067
    2,504
    Nov 15, 2014
    France
    Albi
    You dont open ctrtool.
    it's a command line based application, you need to use arguments.
     
    Dionicio3 and VinsCool like this.
  3. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    Oh. So I'm guessing all I need to do is just have the .exe on my computer and then I use the argument? I think I press SHIFT to do that, don't I? But there's also a code I need to input after I do that, in order to extract the .cxi file, I think. If that's true, which one do I use?
     
  4. PabloMK7

    PabloMK7 Red Yoshi! ^ω^

    Member
    1,788
    1,092
    Feb 21, 2014
    Spain
    Yoshi's Island
    1st: What do you mean you want a rom? .cia or .3ds?
    2nd: Where did you get the cxi from?
     
  5. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,467
    5,961
    Apr 20, 2015
    United States
    Tigard, OR
  6. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    1. When I said I wanted a rom, I meant a ROMFS file. Sorry, I should have been clearer. :(
    2. I used braindump on one of my games, and it put the resulting .cxi file onto my SD card. I was a bit confused at that, since I'd seen videos of people doing the same thing that I'd done, and they got ROMFS files dumped onto their SD cards instead of .cxi ones.

    — Posts automatically merged - Please don't double post! —

    Thanks for the link. :)
    Edit: Is there anywhere else that I can decrypt the .cxi file?
     
    Last edited by MarineSong, May 23, 2017
  7. PabloMK7

    PabloMK7 Red Yoshi! ^ω^

    Member
    1,788
    1,092
    Feb 21, 2014
    Spain
    Yoshi's Island
    Braindump cxi files are already decrypted ;)
     
  8. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    Oh. ;)
     
  9. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    Okay, I think I've figured out what I need to do. (I was helped by a reddit post.) I've put ctrtool.exe and the .cxi file into the same folder, then pressed SHIFT over it and right-clicked it, clicked on 'Open command window here'. I'm in the command window, and apparently I should put "ctrtool -p --exefs=exefs.bin --romfs=romfs.bin abcd.cxi" into it. I did that, pressed ENTER, and this came up:
    error: could not open input file!

    I'm pretty sure I followed everything on the reddit post. What am I doing wrong?
     
  10. KunoichiZ

    KunoichiZ GBAtemp Guru

    Member
    8,123
    3,292
    Mar 16, 2012
    United States
    The name of the .cxi you have and the name of the .cxi you mentioned in the command line do not match. Rename "abcd.cxi" in the command line to whatever your .cxi is named.
     
  11. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    Oh! Thanks. :)

    — Posts automatically merged - Please don't double post! —

    @KunoichiZ YAAY! :D It worked! :D

    Edit:
    Well, very nearly. This came up:
    Error, exheader hash mismatch. Wrong key?
     
    Last edited by MarineSong, May 23, 2017
  12. ihaveamac

    ihaveamac GBAtemp Guru

    Member
    5,467
    5,961
    Apr 20, 2015
    United States
    Tigard, OR
    you used braindump so ignore this error
     
  13. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    So it still worked? The ROMFS file(s) will be somewhere on my computer?
    Edit: I checked, yes they are. :D
     
  14. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    At the moment, I'm currently trying to put my repacked ROMFS file into Hans so that I can play it. Everything has worked up to the point where I have put 'yes' to 'Romfs - SD'. When I did that, an 'INVALID' message came up. The guide that I was using told me the possible reasons for this:
    As for the last one, I have put my file in the "hans" folder, but it's in the "titles" folder. The other two reasons are probably more likely. Here is a screenshot of my file so that you guys (who know what you are doing more than me) can see what the problem is.
    [​IMG]
     
  15. KunoichiZ

    KunoichiZ GBAtemp Guru

    Member
    8,123
    3,292
    Mar 16, 2012
    United States
    Did you manage to install CFW successfully? If yes, then you should be using Luma's layeredFS features. What game are you trying to hack?
     
  16. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    I'm not using Luma, I'm using Homebrew. I'm trying to play the ROM in HANS. And I'm trying to hack Animal Crossing: Welcome Amiibo.
     
  17. KunoichiZ

    KunoichiZ GBAtemp Guru

    Member
    8,123
    3,292
    Mar 16, 2012
    United States
    HANS will not read game updates such as Welcome amiibo, unless you have the version that has the update bundled in. That is also not the right title ID for Welcome amiibo (0004000000198F00 is the correct ID for EU copies of the game), which is why the invalid message is appearing. If you haven't already updated to 11.4, you should really consider getting custom firmware via http://3ds.guide, as I'm sure people have already told you.
     
  18. MarineSong
    OP

    MarineSong Member

    Newcomer
    29
    4
    May 19, 2017
    Oh, OK. :)