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

  • Thread starter Asia81
  • Start date
  • Views 1,428,770
  • Replies 1,736
  • Likes 96

How is my english?

  • So bad...

    Votes: 67 7.3%
  • Good, sometimes it's not understandable

    Votes: 139 15.2%
  • Very understandable

    Votes: 550 60.1%
  • Perfect?

    Votes: 159 17.4%

  • Total voters
    915

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,049
Country
Greece
So does this not support NDS files dumped using GM9? I'd like to edit my Pokemon Diamond, and the only way I know to extract it is with this..
For NDS roms you need a file explorer, not extractor. You can go with NitroExplorer2 or 3 for any NDS rom, while you can go with NPRE for gen 4 Pokemon game editing/extracting, but you always have to extract files individually for NDS ones. You only need 6-7 files total anyway though, so it's no biggie.
 

FIuveeX

out of service!
Member
Joined
Mar 18, 2017
Messages
171
Trophies
0
Location
land down under
XP
427
Country
Australia
For NDS roms you need a file explorer, not extractor. You can go with NitroExplorer2 or 3 for any NDS rom, while you can go with NPRE for gen 4 Pokemon game editing/extracting, but you always have to extract files individually for NDS ones. You only need 6-7 files total anyway though, so it's no biggie.
Thank you, I'll try that. What I'm trying to do is ROM hack, with pk3DS. I want to do some custom evolution lines.
 

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,049
Country
Greece
Thank you, I'll try that. What I'm trying to do is ROM hack, with pk3DS. I want to do some custom evolution lines.
For that you need to extract the necessary data files using the programs I suggested and use DSPokemonEditor to edit them and their evolutionary lines (stats, abilities, etc. can be edited). Here's a good site with everything you will need and it even lists what files you need to extract from the NDS ROM for each program to work: https://hackromtools.altervista.org/hack-tools-nds/
 
  • Like
Reactions: FIuveeX

RitchieLuis

Member
Newcomer
Joined
Aug 6, 2014
Messages
14
Trophies
0
Age
30
Location
Living in a dream
XP
115
Country
Hello guys,I've read some posts in this thread but I cannot find a solution for the 0KBs file while trying to rebuild the 3DS (Since the CIA cannot be created), I've used versions 11,10,9... Still getting the same 0KBs file.Could anyone give me some assistance please ?
Btw: My computer is X64 & has 8GBs RAM. Could this affect the generation of the .3DS File ?
Thanks a lot !
So guys... Today I upgraded my laptops ram to 16 GB. Hopefully the .3ds will be created. I am afraid. :(

--------------------- MERGED ---------------------------

So guys... Today I upgraded my laptops ram to 16 GB. Hopefully the .3ds will be created. I am afraid. :(
Sadly, it is not an Issue related to the RAM... I think... I still get the 0KBs .3DS file. :(
Any help on this pls ?
 

RitchieLuis

Member
Newcomer
Joined
Aug 6, 2014
Messages
14
Trophies
0
Age
30
Location
Living in a dream
XP
115
Country
So guys... Today I upgraded my laptops ram to 16 GB. Hopefully the .3ds will be created. I am afraid. :(

--------------------- MERGED ---------------------------


Sadly, it is not an Issue related to the RAM... I think... I still get the 0KBs .3DS file. :(
Any help on this pls ?
Nevermind, I just used cmd & PK3DS & finally got this.
qjOi9TT.jpg
 

Keytee-1

Member
Newcomer
Joined
Oct 24, 2016
Messages
21
Trophies
0
Age
28
XP
132
Country
Serbia, Republic of
I don't understand how to do this at all...

I used HackingToolKit3DS on a cia file, used "extract" and... it did nothing.
And i don't know which programm to open Decrypted9...


...Can't you explain how to do this in a way that an IDIOT LIKE ME would understand?
 
  • Like
Reactions: Natural

Jimbo_Slim

Pun Master/Loser
Member
Joined
Feb 11, 2016
Messages
240
Trophies
0
Location
Warp Zone
XP
504
Country
United States
I know this might be a bit outdated and this post seems out of the time but you mind if I can update it? It's missing a good chunk of stuff which if you don't have all the instructions and materials, you'll end up with things like extractedRomFS.bin and find a roadblock in your extraction process.
 
  • Like
Reactions: Natural

Arazanime

New Member
Newbie
Joined
Jan 1, 2018
Messages
1
Trophies
0
Age
26
XP
41
Country
France
That's my first message here, and im really angry now. I spend 10 hours to download things, things, things, things without even knowing if they are safe or not, just trying to fucking play my game. I got a 3ds RO pokemon, i used the hackingtool and i extracted and compiled it, i dont fucking know where to get the decrypt9 tool i though it was on the pack so i downloaded it and i cant open it because there is no exe on the folder and no readme.txt so i looked on youtube to know what to do i downloaded the godmod9 thing and same problem there is no tutorial there is nothing and all your comment seems chinese for me even if i'm studying IT i got a 3ds file i dont know what to do with every tutorials are differents with CIA files i cant get a converter i dont know what do fucking do. No one can do a CLEAR video and do everything u know to not only CONVERT a from 3ds file but everything to PLAY the file on citra ?? Every tutorials are differents with differents versions of software it's just impossible o know what we are fucking supposed to do
 

senkunmusashi

@!#?@!?
Member
Joined
Nov 29, 2017
Messages
108
Trophies
0
XP
108
Country
Netherlands Antilles
Seems that v.11 can't rebuild .cia? Which version of this toolkit works to extract and rebuild of .cia?

Specifically I just want to change banner, icon and sound so that when I install the
cia my custom banner, icon and sound shows on the home menu.

Anyone help?

Edit : whelp after wading through the past 20 pages it seems v.9 should work...
 
Last edited by senkunmusashi,

Jimbo_Slim

Pun Master/Loser
Member
Joined
Feb 11, 2016
Messages
240
Trophies
0
Location
Warp Zone
XP
504
Country
United States
Just for the heck of it, I will post a way to decrypt cias the old way since I'd like to help. Do be aware that there's probably another way but this way worked for me.

1) First download Decrypt9 and place it in your payloads folder.
2) Download the 3DS slotkeys from this site https://github.com/mariogamer2/3ds_key
3) Download aeskeydb.bin (Cannot give link due to copyright. Google it if you need it)
4) Extract the files and place them in a folder called Files9 on your SD card root (make it if you don't have one)
5) Place your cia in the Files9 folder
6) Load up Decrypt9, select Content Decryptor Options -> CIA File Options... -> CIA Decryptor (deep)
7) Now wait until it is done and then you can extract and hack using Asia81's PackHack with HackingToolkit9DS

If there are any errors, just PM me or something
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
Just for the heck of it, I will post a way to decrypt cias the old way since I'd like to help. Do be aware that there's probably another way but this way worked for me.

1) First download Decrypt9 and place it in your payloads folder.
2) Download the 3DS slotkeys from this site https://github.com/mariogamer2/3ds_key
3) Download aeskeydb.bin (Cannot give link due to copyright. Google it if you need it)
4) Extract the files and place them in a folder called Files9 on your SD card root (make it if you don't have one)
5) Place your cia in the Files9 folder
6) Load up Decrypt9, select Content Decryptor Options -> CIA File Options... -> CIA Decryptor (deep)
7) Now wait until it is done and then you can extract and hack using Asia81's PackHack with HackingToolkit9DS

If there are any errors, just PM me or something
Your tutorial is wrong. HackingToolKit9DS ONLY works with encrypted files. You need to edit it to say HackingToolKit3DS as that version ONLY works with decrypted files. All these people having issues have been told this countless times, not to mention Asia81 made the announcement about the change right here in this thread when it happened. You can only do so much to stop user error, people just need to pay attention to what they're doing.

ANYTHING you dump from your console is DECRYPTED and MUST use V9 or earlier of HackingToolKit3DS for it to extract properly. HackingToolKit9DS is used for people that download ENCRYPTED files directly from the CDN. It's really not that hard to understand...... Use a spoon for soup not a fork.

Again because it obviously cannot be said enough:

HACKINGTOOLKIT9DS - Encrypted files only
HACKINGTOOLKIT3DS - Decrypted files only

Sorry he didn't make a change to the name so dramatic that there was a clear difference but on the other hand if a lot of you actually READ what you were downloading you'd have seen the difference in the program names, not to mention versions. It's ironic to me so many people are having issues with simple instructions concerning specific names when half the stuff you use in CFW HAS to have a specific file names to even work.
 
  • Like
Reactions: KunoichiZ and ThoD

ultramario1998

no woof tipsic
Member
Joined
May 7, 2014
Messages
456
Trophies
0
Age
25
Location
Not Here
XP
695
Country
United States
ok. ok.

i am so frustrated right now, but i will try to keep this post coherent and polite, so apologies if the tone is off.

i'm trying to rebuild a CIA with a custom banner. I have the banner done, and so now I'm trying to repack to cia.

i have tried dozens of times, with v9, v11, encrypted rom, decrypted rom, trimmed, non-trimmed, .cia, .3ds, going from .3ds > .cia using a variety of methods to extract this game, put in my banner, and turn it into a cia. nothing works. NOTHING. it either spits out decrypted .bins but not their folders (fs1/fs2/me don't do anything but give an empty folder) or, the one time I did manage to get a properly rebuilt exefs using my prior files, wouldn't compile to a cia for some reason that it wouldn't tell me. it did compile to .3ds, but then the 'simple cia converter' decided to complain about the header.

before you ask, yes i'm using a clean rom (built it myself from my personal cart) and I ran setup.exe. Many times.

please, someone, tell me what I'm missing. I like to think I know what I'm doing, but clearly not anymore.
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
ok. ok.

i am so frustrated right now, but i will try to keep this post coherent and polite, so apologies if the tone is off.

i'm trying to rebuild a CIA with a custom banner. I have the banner done, and so now I'm trying to repack to cia.

i have tried dozens of times, with v9, v11, encrypted rom, decrypted rom, trimmed, non-trimmed, .cia, .3ds, going from .3ds > .cia using a variety of methods to extract this game, put in my banner, and turn it into a cia. nothing works. NOTHING. it either spits out decrypted .bins but not their folders (fs1/fs2/me don't do anything but give an empty folder) or, the one time I did manage to get a properly rebuilt exefs using my prior files, wouldn't compile to a cia for some reason that it wouldn't tell me. it did compile to .3ds, but then the 'simple cia converter' decided to complain about the header.

before you ask, yes i'm using a clean rom (built it myself from my personal cart) and I ran setup.exe. Many times.

please, someone, tell me what I'm missing. I like to think I know what I'm doing, but clearly not anymore.
I've never been able to use the rebuild CIA feature of HackingToolKit. However, there are plenty other CMD programs you can use to do the same thing. Anyway if you're well versed in these things why not try .Net 3DS Toolkit? Or 3DSconv if you successfully build a .3DS. Also, You should download the most recent version of simple cia converter which doesn't require the xorpads created from the header (ncch.bin) as long as your dumped "boot9" is present in the directory. I'm just going to assume you forgot that you need xorpads to use that program unless you supply your boot rom.
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,656
Trophies
3
Age
29
XP
3,488
Country
France
ok. ok.

i am so frustrated right now, but i will try to keep this post coherent and polite, so apologies if the tone is off.

i'm trying to rebuild a CIA with a custom banner. I have the banner done, and so now I'm trying to repack to cia.

i have tried dozens of times, with v9, v11, encrypted rom, decrypted rom, trimmed, non-trimmed, .cia, .3ds, going from .3ds > .cia using a variety of methods to extract this game, put in my banner, and turn it into a cia. nothing works. NOTHING. it either spits out decrypted .bins but not their folders (fs1/fs2/me don't do anything but give an empty folder) or, the one time I did manage to get a properly rebuilt exefs using my prior files, wouldn't compile to a cia for some reason that it wouldn't tell me. it did compile to .3ds, but then the 'simple cia converter' decided to complain about the header.

before you ask, yes i'm using a clean rom (built it myself from my personal cart) and I ran setup.exe. Many times.

please, someone, tell me what I'm missing. I like to think I know what I'm doing, but clearly not anymore.
The CIA rebuild feature has always been working in V9 or lower, but not in V10+ (It's even written in the changelog).
Code:
Changelog V11 (09/07/2017)
Hotfix for .3DS rebuild.
.CIA rebuild still in progress.

a clean rom (built it myself from my personal cart)
Then the rom may not be clean, it depend on what you used to dump it.
GodMode9 decrypt the file in the same time as dumping, so consider it as a decrypted rom, what should be working with V9 or lower.
And if you are rebuilding a .CIA from the .3DS, this is normal if it's not working.
You can't (using my tool, at least) build .CIA from a extracted .3DS, or build .3DS from an extracted .CIA.
You either need to extract and rebuild a .3DS with your change, then convert it to .CIA, or work first with a .CIA.
I know this is working, because banner editing is what I like do.

Also, is your OS a 32b or 64b ?
Because for now, it only supports 64b versions, I temporarily deleted the 32b support.
And at the end, could you give me a screenshot of your folder, where you game is (the directory you use).
 
Last edited by Asia81,

ultramario1998

no woof tipsic
Member
Joined
May 7, 2014
Messages
456
Trophies
0
Age
25
Location
Not Here
XP
695
Country
United States
Ok, so...

After last night, I was able to get things working, but I had to use 3dsb from the v9 pack. Using rebuild from v9 makes an empty file, and using rebuild from v11 does make a .3ds file... except the simple CIA converter (with boot9.bin) complains about the exheader decryption failing. Keep in mind, this is when I'm building from unmodified binaries--literally rebuilding right after extracting. I was able to get it to convert using 3dsconv.py, though. (although the sound file that I was trying to insert now has its own issues, but w/e)

Then the rom may not be clean, it depend on what you used to dump it.
I'm using latest godmode9, and I tried dumping to cia, encrypted 3ds, and decrypted 3ds.
Also, is your OS a 32b or 64b ?
Running 64bit windows 10.
And at the end, could you give me a screenshot of your folder, where you game is (the directory you use).
Sure.
folder.PNG
 
D

Deleted User

Guest
HUGE Necobump I know but it's an issue. I installed the SetupUS, moved my 3ds file in the directory and started up the Hack tool. But I can't open the hack tool. It flashes a cmd box and doesn't open. I then thought of just typing the exe into a command prompt box. But I can't open CMD anymore. CMD Flashes for a second and doesn't open.

So this leads me to believe this modifies system files, which makes me wonder what the fuck this did to my system to the point my cmd doesn't work. Help would be appreciated.
 

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,049
Country
Greece
HUGE Necobump I know but it's an issue. I installed the SetupUS, moved my 3ds file in the directory and started up the Hack tool. But I can't open the hack tool. It flashes a cmd box and doesn't open. I then thought of just typing the exe into a command prompt box. But I can't open CMD anymore. CMD Flashes for a second and doesn't open.

So this leads me to believe this modifies system files, which makes me wonder what the fuck this did to my system to the point my cmd doesn't work. Help would be appreciated.
The "SetupUS" basically just puts the necessary files like the "makerom" one in the install directory, nothing else. Have you tried running it with admin privileges? Quite often (for me at least), cmd programs that only pop-up for a split second run properly if I run as admin. As for why cmd doesn't work in general for you, it's something you did most likely...
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://youtu.be/381r8gSxP0Y?si=x1xS_cr0puutjn3S