[Tutorial] How to Decrypt, Extract & Rebuild 3DS|CIA|CXI Files

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Asia81, Mar 4, 2015.

?

How is my english?

  1. So bad...

    37 vote(s)
    7.0%
  2. Good, sometimes it's not understandable

    82 vote(s)
    15.6%
  3. Very understandable

    324 vote(s)
    61.5%
  4. Perfect?

    84 vote(s)
    15.9%
  1. pixelmasher

    pixelmasher Gaming Gamer

    Member
    1,633
    671
    Dec 12, 2016
    United States
    Near N3DS
    Make sure you have Asia81's tool installed. You have to run the setup.exe. It'll make a folder in your default Program Files (x86) Folder called HackingToolkit3DS. It should make 20+ files in that folder. You can run the program after that from wherever you were running it and it should work.
     
  2. KariRaquan

    KariRaquan GBAtemp Fan

    Member
    390
    86
    Feb 13, 2016
    United States
    I retried the process and it just worked. Thanks for the help I appreciate it.
     
    pixelmasher likes this.
  3. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,137
    2,562
    Nov 15, 2014
    France
    Albi
    Is your OS a 32b or 64b ?

    + https://github.com/Asia81/HackingToolkit3DS
    EDIT : Oops, too late.
    Anyways, this is what happen when peoples don't read what is needed...
     
    Last edited by Asia81, Apr 1, 2017
  4. KariRaquan

    KariRaquan GBAtemp Fan

    Member
    390
    86
    Feb 13, 2016
    United States
    Yea it finally worked after awhile. I honestly have no clue what I was doing wrong.
     
  5. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,137
    2,562
    Nov 15, 2014
    France
    Albi
    A little update.

    [​IMG]

    Version 9
    Fixed CIA rebuild script.

    Version 8
    Fixed MassExtraction and MassRebuild scripts.

    Version 7
    32bits support should be fixed (I forgot to include a 32bits build of MakeRom).

    Version 6
    Added support for 32 bits Windows.
    Deleted website in the header.

    Nothing fancy new for now.
     
    Last edited by Asia81, Apr 3, 2017
  6. chaos blast

    chaos blast Member

    Newcomer
    21
    0
    Feb 25, 2013
    Egypt
    I have the same problem! any fix for the 0kb file thing
     
  7. CasioTheCalculator

    CasioTheCalculator Newbie

    Newcomer
    2
    0
    Apr 11, 2017
    Canada
    Hey, sorry for being a complete and utter noob at this, but how would you go about doing this for Citra? I want to play Pokemon Moon Randomized on my PC, but I can't seem to be able to rebuild my .3ds file. Anyone know why?
     
  8. Gow supremo

    Gow supremo I am playing my 2ds

    Member
    240
    12
    Jan 24, 2016
    Spain
    In the earth
    @Asia81 How extract and rebuild DecryptedRomFS.bin from .3ds?
     
  9. rocknard

    rocknard Member

    Newcomer
    13
    3
    Mar 10, 2017
    erased
     
    Last edited by rocknard, Apr 16, 2017
  10. rocknard

    rocknard Member

    Newcomer
    13
    3
    Mar 10, 2017
    The extracted .3ds don't create folders... Only get two folders with .CXI extracted, not with .3ds? The file size is 245MB -after repacked with R- from 2GB of original game.

    To test:

    1º Extract .3ds with D (2GB of content)
    2º Rebuild .3ds with R (256MB 3ds file?)
    3º No clue

    Win xp 3b bits and 4GB (3.5gb ram)

    EDIT: nevermind. With x64 and 8GB ram works fine.
     
    Last edited by rocknard, Apr 13, 2017
  11. Sabreholo

    Sabreholo Newbie

    Newcomer
    2
    0
    Apr 16, 2017
    Canada
    Is it possible to build a .cia file from files extracted from a .cxi? If not, is there a way to get a .cia from a 3ds cartridge? I've tried rebuilding the romfs and using hans but i get an error code that says invalid icache. thanks
     
  12. pixelmasher

    pixelmasher Gaming Gamer

    Member
    1,633
    671
    Dec 12, 2016
    United States
    Near N3DS
    Not sure about CXI. You can convert cart to CIA using Decrypt9 or GodMode9. I heard braindump can do that too, but I never used it.
     
    Asia81 likes this.
  13. rocknard

    rocknard Member

    Newcomer
    13
    3
    Mar 10, 2017
    How can i extract a .romfs created for HANS? I would like extract to add the files and create a cia.
     
  14. Sabreholo

    Sabreholo Newbie

    Newcomer
    2
    0
    Apr 16, 2017
    Canada
    So I used the CIA extractor and Rebuilder to create a CIA file which I successful installed using FBI, the file also showed the modified banner (Pokémon Sinking Sapphire from a CIA extracted from my AS cartridge). However, it won't load past the 3DS splash screen. Any ideas on what I've done wrong? Thanks
     
  15. Mimeon

    Mimeon Newbie

    Newcomer
    4
    0
    Apr 16, 2017
    Hey Asia81, mind if I could have a CIA file of your GBAplha Sapphire? I know it's discontinued, but I want to check it out.
     
  16. OfficialBrony

    OfficialBrony

    Banned
    789
    168
    Jan 6, 2016
    Canada
    boop
     
    Last edited by OfficialBrony, Apr 24, 2017
  17. OfficialBrony

    OfficialBrony

    Banned
    789
    168
    Jan 6, 2016
    Canada
    @Asia81
    Everything I try and rebuild a cia, I always get a CustomManual.bin file and a CustomRomFS.bin file and no .CIA file
    I have done this three times
     
  18. OfficialBrony

    OfficialBrony

    Banned
    789
    168
    Jan 6, 2016
    Canada
    Now I did it to rebuild a .3ds file.
    I still got these two files
    CustomManual.bin
    CustomRomFS.bin
    I also got a file called PokemonSunday_edited.3ds (PokemonSunday was the name of my choice and your software added "_edited" after my chosen name) but it is 0kbs????
     
  19. CrimzonEyed

    CrimzonEyed GBAtemp Addict

    Member
    2,494
    313
    Sep 3, 2007
    Having the same issue as you.
    I extracted a decrypted CIA without issue.
    Extracted a romfs(undub/cencor/orchestra DQ8 patch).
    Copy pasted the files from the ROMFS to extractedromfs.
    Tries to re-build as cia again. Program says it's been successful, however there is only a bunch of "custom###.bin" files and no cia file.
     
    Last edited by CrimzonEyed, Apr 25, 2017
    OfficialBrony likes this.
  20. OfficialBrony

    OfficialBrony

    Banned
    789
    168
    Jan 6, 2016
    Canada
    I noticed that she's online when I made my reply, but @Asia81 probably doesn't care enough to help people when they have problems with THEIR TOOL!!!
    Selfish people these days.


    Sent from my SM-G903W using Tapatalk