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.
(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 :
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.
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:
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".
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.
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 :
And click on
YES if you want edit
ORAS, or
NO for
XY :
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 :
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