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

  • Thread starter Asia81
  • Start date
  • Views 1,436,519
  • 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.0%
  • Perfect?

    Votes: 160 17.5%

  • Total voters
    916

Leftshark

Member
Newcomer
Joined
Feb 25, 2015
Messages
11
Trophies
0
Age
34
XP
52
Country
United States
If I edit just the randomizer stuff on it, it works fine. But if I change around some of the sprites it goes past the 3ds screen then goes to a black screen till I turn it off. (Also does anyone know who I could contact with help for ohana3ds. Every time I export a pic it seems to change resolution)
 

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
Proof that it works:


I'm pretty sure it's against the rules to link the (copyrighted) 3DS keys.
What's the point of saying that a few bytes are copyright by Nintendo?
Obviously that's not possible to copyright. Anyone can use these bytes in the same order like they did without it being an infringement. Stupid hypocrites these days.

Wouldn't it be more of a copyright issue to hack one of their sacred games, huh? I just did that.

This is a hacking scene. Why hacking in the first place if you respect a company's short sequence of bytes already. :rolleyes:

Seriously, people need to man up and make decent programs and guides and quit the bullshit to save everyone's time. It took me almost 2 days (from nearly no knowledge about it) to do a full ROM hack because of the all the stupid and complicated steps. Without Asia81's great guide probably much longer. :glare:
 

JVG

Well-Known Member
Member
Joined
Nov 18, 2014
Messages
172
Trophies
0
Age
25
XP
185
Country
United States
I am trying to inject some models for May, and the instructions are: OW models go in a/0/2/1, Battle models go in a/1/3/3

However, when I navigate to those folders, all I see are files with no extensions. How can I inject my bins into them?

j4fnrt7.png
 

JVG

Well-Known Member
Member
Joined
Nov 18, 2014
Messages
172
Trophies
0
Age
25
XP
185
Country
United States
You need to use GARC Tool for unpack, Ohana3DS for edit and GARC Tool again for repack

Thanks! When I rebuild a folder, it gives it a .garc extension. Do I delete that or leave it?

edit: And do I change the .bin files to .154?
 

OmegaPikachu

Well-Known Member
Member
Joined
Mar 9, 2015
Messages
353
Trophies
0
Age
33
XP
604
Country
United States
I get an Error when trying to use the "Decrypter le ExHeader" for AS.

It says "Error Opening Input File 2" for less than a second before it closes the CMD

Can someone also explain this to me

"In the tool pack you will find a slot0x25KeyX.bin file. Open it with a hex editor and replace 00 with the key. Copy and paste the key. The outcome will look like this "

What 00 is she talking about? Where do i find it?
What Key do i replace it with?

Sorry I'm such a noob, But I'd really like some help! thanks lol
 

GamingAori

Well-Known Member
Member
Joined
Mar 16, 2014
Messages
676
Trophies
1
Age
24
XP
975
Country
Germany
hey how i can decrypt and repack my rom with out updates? (xy) because when i use a update wild randomizer doesn't work :/
 

laramie

Well-Known Member
Member
Joined
Dec 15, 2014
Messages
911
Trophies
0
XP
1,387
Country
United States
hey how i can decrypt and repack my rom with out updates? (xy) because when i use a update wild randomizer doesn't work :/

I'm not sure on how to undo the updates for games, I grabbed a fresh rip of OR and decrypted that and when I recompiled, It gets stuck on the black screen that says 3ds. PM me for the link to the tutorials I made.
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,662
Trophies
3
Age
29
XP
3,532
Country
France
1426999152-rosa.jpg
With this tutorial, you will can launch OmegaRuby or/and AlphaSapphir (but not XY) without his update .​
Tell me if something is wrong, or if you can't understand a part of this tutorial.​
Thanks a lot to BullyWiiPlaza for the english translation help :)
(Because i'm French, make a full tutorial in a good english is not easy for me...)​
This tutorial will try to help you decrypt a 3DS ROM to change its content and will also explain how to recompile a modified version.
Although this tutorial is mainly based on Pokémon ROM Hacking, the decryption method is the same for all 3DS games developed with SDK 7.X or less.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Summary :
- What you need
- Prerequisites
- With Internet (More faster)
- Without Internet

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What you Need

  • A 2DS/3DS/3DSXL with SysNand Firmware between 4.1 and 9.2 for getting Xorpads. (No New3DS at the moment)
  • A 3DS Linker compatible with this console version that will play the final game once modified.
    (Only Gateway 3DS is able to run edited game (Tell me if it's wrong))
  • 3DS ROM (PokemonY.3ds, PokemonAlphaSapphir.3ds, etc...)
  • An archive extractor like WinRAR that I recommend or 7-Zip which is completely free.
  • An SD card (for the console) with a minimum capacity of 4 GB.
  • Download this pack : LINK
  • Download Python 2.7.7 (and not another): Click Here
  • Download Notepad++ : ClickHere
  • Download RxTool : Click here
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Prerequisites
Obtaining slot0x25KeyX.bin :
In the tool pack, you will find a slot0x25KeyX.bin file.
Open it with a HexEditor (HxD, PsPad, etc...) and replace 00 with the key.
Copy and paste the key (Search this on Govanify's Website).
The outcome will look like this :
1425596389-slot0x25keyx.png
Python Installation :
Now, we will install Python 2.7.7.
To do this, download Python in What you Need, run the Python 2.7.7.msi file, choose the default installation directory, "C:\Python27" and allow the installation to complete.
1425481308-python.png
Once all these tasks are completed, you will have to add links in the "Path" environment variable. For this you need to go to "Start," right-click on "My Computer", choose "Properties" in the context menu, click on "Advanced System Settings" and finally "Environment Variables...".
Then in the lower column "System Variables" find the line "Path", double-click it.
A window appears. At the end of the line "Variable Value", append this:
Code:
;C:\Python27
1425485736-menudemarrerproprietes.png
1425485787-variablesysteme.png

Done, the prerequisites of the installation are complete.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​
With Internet
More Faster, because xorpads are useless.
Part 1 : Decrypt your rom with rxtool
First, you will need to download RxTools. Once it's done, do this :​
Put in the root of your SD Card :
- rxTool.dat
- slot0x25KeyX.bin (If your SysNand is 7.X or higher, your slot0x25KeyX.bin is useless)
- YourRom.3ds (or named as you want)
Launch the WebBrowser, erase cookies and data, and go to this URL :​
Code:
http://dukesrg.no-ip.org/3ds/go/?rxTool.dat
You can also use the QR code in roxas75's thread.​
Now, go in "Decryption Options" and launch "Decrypt CTR Titles".​
1427465719-rxtool1.jpg
1427465716-rxtool2.jpg
Once it's finished, remove your SD card and put it in your computer.
Now, your 3ds rom is decrypted. It means that your xorpads are become useless.

Part 2 : Extract Game partitions with 3DS Explorer

Go in English Folder (Or French, just the files names are different).
Open 3DS Explorer, and with it open your 3ds rom.
1427464688-3dsexplorer.jpg

For the folder named (NCCH (CTR-X-XXXX) 0) (X represents the Game ID, and varies from game to game), which is framed on the screen above, do these 2 easy steps :

1) Right-Click ExHeader.bin > Save> Save it to the root of the folder "PackHack" named "DecryptedExHeader.bin" > A message appears, but just click OK.
A "DecryptedExHeader.bin" file is generated.

2) Right-Click ExeFS.bin > Save> Save it to the root of the folder "PackHack" named "DecryptedExeFs.bin" > A message appears, but just click OK.
A "DecryptedExeFs.bin" file is generated.

Now, Drag&Drop your Rom.3ds on getromfs.exe.
This may take 5 to 10 minutes, be patient.
A "EncryptedRomFS.bin" file is generated.
Rename it "DecryptedRomFS.bin"

Now, you can extract your game datas.

Part 3 : Extract Game datas

You should have those files :
- DecryptedExHeader.bin
- DecryptedExeFS.bin
- DecryptedRomFS.bin

1) Double-click on :
"Extract ExeFS.bat"
Your ExeFS content is extracted in a "exe" folder.

2) Once it's finished, use :
"Extract RomFS.bat"
Your RomFS content is extracted in a "romfs" folder.

Part 4 : Edit your game

If your wish to run ORAS (not working with XY) without his update, you need to do :
Go in "exe" folder. Rename code.bin to .code.bin.
Open pk3DS. Set language, and open your "PackHack" folder.

Accept to decompress your .code.bin file :
1427464697-code.jpg
And click on YES if you want edit ORAS, or NO for XY :
1427464697-xyrosayesno.jpg

Make your edits with pk3DS or another tool.

Or for another game, do what you want.


Part 5 : Rebuild your game

You need to rebuild your RomFS.
Open RomFS Builder, with it open your "romfs" folder (in "PackHack" )
Click GO. Wait and save it named romfs.bin :
1427463991-romfs-builder.jpg
Once your RomFS is rebuilded, go in "exe" folder.
Copy ALL files.
Paste all those files in "PackHack" folder.

Now, use the makerom for your Pokemon game, like MakeRom - AlphaSapphir.bat

Wait, and your game will be created named AlphaSapphirEdited.3ds (or other)

Optional :
If you try to rebuild a game other than Pokémon, because I've mentioned at the beginning that the tutorial is compatible for almost any 3DS games, instead of launching a "Makerom - Pokemon.bat", you simply run the file Makerom.bat which will be used for most other 3DS games.

In this case, you will need to open the file with a RSF.rsf advanced text editor like Notepad++ that I made ​​you download at the beginning.

The RSF is a sample provided, it's "pre-built", you will need to fill it with fitting information about the game you want to use it with.

Since helping you build a good RSF file is not the purpose of this tutorial, I will redirect you to a post written on GBA Temp that will teach you how to do so :
https://gbatemp.net/threads/tutorial-converting-3ds-to-cia-for-dummies.373722/page-35#post-5155838
You can also see the "Custom RSF Guide.jpg". Thanks to Queno138 for that.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​
Without Internet





 
  • Like
Reactions: Margen67

OmegaPikachu

Well-Known Member
Member
Joined
Mar 9, 2015
Messages
353
Trophies
0
Age
33
XP
604
Country
United States
Hey when i try to use "XY & ROSA Extraire le RomFS" it says

"Error, IVFC segment corrupted
Error, RomFS corrupted"

what should i do?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    Worst would be getting a DRM rootkit from using audio CDs and then Sony getting sued.
  • K3Nv2 @ K3Nv2:
    Least I can throw the nvme at neighbors now
  • DinohScene @ DinohScene:
    get a 2 TB NVMe from amazon, return the fucked one, get replacement and send that one to me
  • K3Nv2 @ K3Nv2:
    Easier way buy one with a preadded heatsync pop the heat sync open
  • K3Nv2 @ K3Nv2:
    Some nerd at Amazon warehouse may tell the end of the colors off
  • DinohScene @ DinohScene:
    I'd like a 990 pro tyvm <З
  • K3Nv2 @ K3Nv2:
    Gen 5s going to be crazy expensive at like 10k transfer
  • K3Nv2 @ K3Nv2:
    $300for 2tb
  • DinohScene @ DinohScene:
    don't have anything that can take PCIe5
  • K3Nv2 @ K3Nv2:
    It's still m.2 form just the next gen
  • DinohScene @ DinohScene:
    ew crucial
  • K3Nv2 @ K3Nv2:
    13,600 MB/s though
  • DinohScene @ DinohScene:
    I got a 980 pro iirc
  • K3Nv2 @ K3Nv2:
    Soldigms been pretty solid
  • DinohScene @ DinohScene:
    yeh 980 pro
  • DinohScene @ DinohScene:
    good enough tbf
  • K3Nv2 @ K3Nv2:
    https://a.co/d/gMNhZNI never heard about them but reviews are good
  • SylverReZ @ SylverReZ:
    @DinohScene, Crucial SSDs work fine. I have one installed in my Xbox.
  • SylverReZ @ SylverReZ:
    Reviews seem positive.
  • DinohScene @ DinohScene:
    I believe I had some Patriot RAM running in a computer somewhere
  • K3Nv2 @ K3Nv2:
    $250 is pretty solid considering
  • K3Nv2 @ K3Nv2:
    With the refund it'll be about $150
  • K3Nv2 @ K3Nv2:
    6tb nvme pc ftw
    K3Nv2 @ K3Nv2: 6tb nvme pc ftw