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

  • Thread starter Asia81
  • Start date
  • Views 1,432,910
  • 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

medoli900

Open the Benzenes;Gate
Member
Joined
Jan 7, 2013
Messages
1,116
Trophies
0
Location
Lavender Town
XP
1,316
Country
Antarctica
Wait- how do I update Decrypt9?
Download it here: https://github.com/d0k3/Decrypt9WIP/releases
Then depending of your setup, the installation will change.

"Decrypt9 can be built to run from a number of entry points, descriptions are below. Note that you need to be on or below 3DS firmware version v9.2 for any of these to work.

  • A9LH & Brahma: Copy Decrypt9.bin to somewhere on your SD card and run it via either Brahma or arm9loaderhax. Brahma derivatives / loaders (such as BrahmaLoader, BootCTR and CTR Boot Manager) and A9LH chainloaders (such as Luma3DS and BootCTR9) will work with this as well. Build this with make a9lh.
  • Homebrew Launcher: Copy Decrypt9.3dsx & Decrypt9.smdh into /3DS/Decrypt9 on your SD card. Run this via Smealums Homebrew Launcher, Mashers Grid Launcher or any other compatible software. Build this with make brahma.
  • CakeHax Browser: Copy Decrypt9.dat to the root of your SD card. For MSET also copy Decrypt9.nds to your SD card. You can then run it via http://dukesrg.github.io/?Decrypt9.dat from your 3DS browser. Build this via make cakehax.
  • CakeHax MSET: Copy Decrypt9.dat to the root of your SD card and Decrypt9.nds to anywhere on the SD card. You can then run it either via MSET and Decrypt9.nds. Build this via make cakerop.
  • Gateway Browser Exploit: Copy Launcher.dat to your SD card root and run this via http://go.gateway-3ds.com/ from your 3DS browser. Build this with make gateway. Please note: this entrypoint is deprecated. While it may still work at the present time with little to no problems, bugs will no more be fixed and it may be completely removed at a later time. Use CakeHax instead."
- https://github.com/d0k3/Decrypt9WIP

It is a little outdated, in the sense that it will works on latest Sysnand firmware if you already have A9LH.
 
Last edited by medoli900,

HeirofBlood124

Well-Known Member
Newcomer
Joined
Sep 21, 2016
Messages
86
Trophies
0
Age
27
XP
80
Country
United States
ok so i cant seem to get any files from the 1.1.4 Update at all
all i get are a crapton of .cia files that i cant do anything with
i got the data from the Original game tho and all files seem to be in order
i just cant get the Update data...
what should i do???
 

Fer123

Member
Newcomer
Joined
Apr 10, 2015
Messages
12
Trophies
0
Age
44
XP
99
Country
United States
I have a decrypted fire emblem:awakening (.3ds), and I have a "all-dlc.cia". I don't think the .cia is decrypted or anything, it was just a dump from someone else's 3DS. I'm trying to combine the .3ds with the dlc .cia so that I can play on Citra with full dlc. Is this currently possible with this method? (Not sure if .cia needs to be decrypted or something)

Sadly, I don't have access to a 3DS anymore, it was stolen.
 

Rioluwott

Well-Known Member
Member
Joined
Feb 23, 2014
Messages
854
Trophies
1
Age
28
XP
2,581
Country
Mexico
When i try to extract my rf4 undub cia i get no files at all, can anyone help me?
is that because the game is already a hack or something like that?

EDIT:i could fix it,it was because im using a 32bit windows
EDIT2: now when i try to rebuild my cia file i dont get my file any help?
EDIT3: i tried rebuilding it as a 3ds file but i get a 0kb file
 
Last edited by Rioluwott,

Queen of SoS

Story of Seasons Queen
Member
Joined
Feb 13, 2016
Messages
865
Trophies
0
Age
26
XP
2,115
Country
United States
Can someone tell me why I keep getting this error:
Opening /files9/D9Game ...

Processing CIA "sostot.cia"
Pass #1: CIA decryption...
Pass #2: NCCH decryption...
Processing Content 1 of 2 (677MB)...
NCCH is not encrypted
Processing Content 2 of 2 (1MB)...
NCCH is not encrypted
CIA is not encrypted
Success!

1x processed / 0x failed
CIA Decryptor (deep): succeeded!

I'm not getting any files after this either.
 

pixelmasher

Gaming Gamer
Member
Joined
Dec 12, 2016
Messages
1,668
Trophies
0
Location
Near N2DS XL
XP
971
Country
United States
Can someone tell me why I keep getting this error:
Opening /files9/D9Game ...

Processing CIA "sostot.cia"
Pass #1: CIA decryption...
Pass #2: NCCH decryption...
Processing Content 1 of 2 (677MB)...
NCCH is not encrypted
Processing Content 2 of 2 (1MB)...
NCCH is not encrypted
CIA is not encrypted
Success!

1x processed / 0x failed
CIA Decryptor (deep): succeeded!

I'm not getting any files after this either.
It means your CIA is already decrypted.
It doesn't write a new file. It just works on the file you give it.
 

pixelmasher

Gaming Gamer
Member
Joined
Dec 12, 2016
Messages
1,668
Trophies
0
Location
Near N2DS XL
XP
971
Country
United States
Oh okay but when I tried to extract it's romfs with this program by asia81 it didn't give me any files either.
It does that when the CIA isn't decrypted. That's weird.
What version of Decrypt9 are you using? The latest version is 20170225.
I think GodMode9 is replacing it. Try that instead and see if that works. https://github.com/d0k3/GodMode9/releases
Have you tried other files and do they work with Asia81's tools? You have to install it first.
 
Last edited by pixelmasher,

Queen of SoS

Story of Seasons Queen
Member
Joined
Feb 13, 2016
Messages
865
Trophies
0
Age
26
XP
2,115
Country
United States
It does that when the CIA isn't decrypted. That's weird.
What version of Decrypt9 are you using? The latest version is 20170225.
I think GodMode9 is replacing it. Try that instead and see if that works. https://github.com/d0k3/GodMode9/releases
Have you tried other files and do they work with Asia81's tools? You have to install it first.
Latest version and okay I'll try GodMode9 and see what it does.
 
Last edited by Queen of SoS,

Queen of SoS

Story of Seasons Queen
Member
Joined
Feb 13, 2016
Messages
865
Trophies
0
Age
26
XP
2,115
Country
United States
It does that when the CIA isn't decrypted. That's weird.
What version of Decrypt9 are you using? The latest version is 20170225.
I think GodMode9 is replacing it. Try that instead and see if that works. https://github.com/d0k3/GodMode9/releases
Have you tried other files and do they work with Asia81's tools? You have to install it first.
Godmode9 says the exact same. That it is not encrypted.
 

pixelmasher

Gaming Gamer
Member
Joined
Dec 12, 2016
Messages
1,668
Trophies
0
Location
Near N2DS XL
XP
971
Country
United States
Godmode9 says the exact same. That it is not encrypted.
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.
 

Queen of SoS

Story of Seasons Queen
Member
Joined
Feb 13, 2016
Messages
865
Trophies
0
Age
26
XP
2,115
Country
United States
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.
I retried the process and it just worked. Thanks for the help I appreciate it.
 
  • Like
Reactions: pixelmasher

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,658
Trophies
3
Age
29
XP
3,504
Country
France
Is your OS a 32b or 64b ?

+ https://github.com/Asia81/HackingToolkit3DS
Before report an issue, be sure:
  • Your .3DS/CIA/CXI files are fully decrypted
  • Your .3DS/CIA/CXI files doesn't have any space or special caracter in their names (such as é or à)
  • To don't write the extension when asking for extract your game. Want extract "Game.cia"? Just write "Game".
  • To have installed the Setup package for your langage.

EDIT : Oops, too late.
Anyways, this is what happen when peoples don't read what is needed...
 
Last edited by Asia81,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub: