With this tutorial, you will be able to rebuild a custom update for Pokemon X/Y, OmegaRuby/AlphaSapphire.
If you decrypt and use the latest update as a base, you will also can go online, such as GTS
Download and install my PackHack:
http://pastebin.com/A1s8cmsD
First, you need to decrypt your Update.cia with Decrypt9WIP.
For more infos, and the tutorial, go here:
https://gbatemp.net/threads/tutorial-how-to-decrypt-extract-and-rebuild-a-cia.388677/
Once your update is extracted, your folder should be something like this:
Part 1 - Prepare your Custom RomFS:
For now, you can just edit/inject GARC files and the sound folder.
Don't touch other files/folders (GARC are files without extension).
First Way : Edit a GARC already in the update
Extract your GARC with GARC Tool.
Edit what you want.
Rebuild the GARC with GARC Tool.
You can also take a GARC from your full game, and put it in the same path, by deleting the same/old GARC from your update.
Second Way: Inject a GARC which is not in the Update
For this example, I will use the AlphaSapphire's Title Banner (GARC a/1/5/2).
For add a new GARC in your update, you need to know the A path.
And make a new folder in the romfs folder of your update.
Now, you need to rename this new folder by the A letter and the first number of the GARC path.
In my case, I need to name the folder a1. In this a1 folder, I will make another folder, name it 5, and in this 5 folder, I will put my GARC "2".
Look, you will understand:
You can also see it in video, if you always don't understand.
I'm sure you'll can understand with it:
Once your custom A folder and your GARC are ready, you need to edit the .code.bin file to tell him that you want to load the GARC from the update, and not the game.
You need a decompressed code.bin file!
Open HackingToolkit3DS, write pppt.
Pokemon Patch Pointer Tool is now open.
With it, target and open the decompressed code.bin from your update.
In the tool, write the path after the A:
Do the same for all other GARC you injected.
And press the Patch button :
For this, you need first to extract your full game.
Take the following folders from your full game:
And replace sound by sons:
Now put your both folder from your full game and renamed, in the romfs of your update.
Open .code.bin (Decompressed, I recall) in an hexadecimal editor. HxD is highly recommended.
Search and Replace the following string:
By:
Part 2 - Rebuild your Custom RomFS:
Open HackingToolkit3DS, write RFSB.
RomFS Builder is now open.
With it, open your ExtractedRomFS folder (in PackHack).
Click GO. Wait and save it named CustomRomFS.bin.
Done !
Open HackingToolkit3DS, write ppb.
Write if you want rebuild your update for X/Y, OmegaRuby/AlphaSapphire (x/y/or/as)
Wait until the full rebuild, now you should have a new Patch.CIA in this folder.
Try to install it, and run the game.
See if it's working.
Enjoy.
This is a Proof Of Working showing the installation of CIAs created in the Part 1 of my video, you will can see the installation, then the in-game banner as expected:
If you decrypt and use the latest update as a base, you will also can go online, such as GTS
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Summary:
-Prerequisites
- Decrypt your Update
- Edit your Update
- Rebuild your Update
- Decrypt your Update
- Edit your Update
- Rebuild your Update
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Prerequisites
Download and install my PackHack:
http://pastebin.com/A1s8cmsD
Install the new SetupUS.exe of HackingToolkit3DS as a common tool:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Decrypt your Update
First, you need to decrypt your Update.cia with Decrypt9WIP.
For more infos, and the tutorial, go here:
https://gbatemp.net/threads/tutorial-how-to-decrypt-extract-and-rebuild-a-cia.388677/
Once your update is extracted, your folder should be something like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edit your Update
Part 1 - Prepare your Custom RomFS:
For now, you can just edit/inject GARC files and the sound folder.
Don't touch other files/folders (GARC are files without extension).
First Way : Edit a GARC already in the update
Extract your GARC with GARC Tool.
Edit what you want.
Rebuild the GARC with GARC Tool.
You can also take a GARC from your full game, and put it in the same path, by deleting the same/old GARC from your update.
Second Way: Inject a GARC which is not in the Update
For this example, I will use the AlphaSapphire's Title Banner (GARC a/1/5/2).
For add a new GARC in your update, you need to know the A path.
And make a new folder in the romfs folder of your update.
Now, you need to rename this new folder by the A letter and the first number of the GARC path.
In my case, I need to name the folder a1. In this a1 folder, I will make another folder, name it 5, and in this 5 folder, I will put my GARC "2".
Look, you will understand:
You can also see it in video, if you always don't understand.
I'm sure you'll can understand with it:
Once your custom A folder and your GARC are ready, you need to edit the .code.bin file to tell him that you want to load the GARC from the update, and not the game.
You need a decompressed code.bin file!
Open HackingToolkit3DS, write pppt.
Pokemon Patch Pointer Tool is now open.
With it, target and open the decompressed code.bin from your update.
In the tool, write the path after the A:
Do the same for all other GARC you injected.
And press the Patch button :
Third Way: Inject a Sound folderFor this, you need first to extract your full game.
Take the following folders from your full game:
Code:
sound
sounddebug
And replace sound by sons:
Code:
sound become sons
sounddebug become sonsdebug
Now put your both folder from your full game and renamed, in the romfs of your update.
Open .code.bin (Decompressed, I recall) in an hexadecimal editor. HxD is highly recommended.
Search and Replace the following string:
Code:
72 6F 6D 3A 2F 73 6F 75 6E 64 2F 73 61 6E 67 6F 5F 73 6F 75 6E 64 2E 62 63 73 61 72
By:
Code:
72 6F 6D 32 3A 2F 73 6F 6E 73 2F 73 61 6E 67 6F 5F 73 6F 75 6E 64 2E 62 63 73 61 72
Part 2 - Rebuild your Custom RomFS:
Open HackingToolkit3DS, write RFSB.
RomFS Builder is now open.
With it, open your ExtractedRomFS folder (in PackHack).
Click GO. Wait and save it named CustomRomFS.bin.
Done !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rebuild the Update
Open HackingToolkit3DS, write ppb.
Write if you want rebuild your update for X/Y, OmegaRuby/AlphaSapphire (x/y/or/as)
Wait until the full rebuild, now you should have a new Patch.CIA in this folder.
Try to install it, and run the game.
See if it's working.
Enjoy.
This is a Proof Of Working showing the installation of CIAs created in the Part 1 of my video, you will can see the installation, then the in-game banner as expected:
Credits:
CTRTool : Neimod
ctrulib : Smealum
Makerom : 3dsguy
3DS Multi Decryptor (CtrKeyGen) : Relys
Padxorer : xerpi
RomFS Builder : SciresM
RomFS Extractor : SciresM
3DS Builder : SciresM
Decrypt9 : Archshift
Decrypt9 (3DSX and python scripts) : d0k3 & Shadowtrance
3DSFAT16Tool : d0k3
Brahma2 : delebile
3DS Simple CIA Converter : Riku
Patch RomFS Pointer Tool : AHP_Person
HackingToolkit3DS : Asia81 / Mizoré
CleanTool : Asia81 / Mizoré
Thanks to:
Megadrifter
Stratovarius
Reisyukaku
Weby
Guitoh
Apache Thunder
Ericzander
BullyWiiPlaza
CTRTool : Neimod
ctrulib : Smealum
Makerom : 3dsguy
3DS Multi Decryptor (CtrKeyGen) : Relys
Padxorer : xerpi
RomFS Builder : SciresM
RomFS Extractor : SciresM
3DS Builder : SciresM
Decrypt9 : Archshift
Decrypt9 (3DSX and python scripts) : d0k3 & Shadowtrance
3DSFAT16Tool : d0k3
Brahma2 : delebile
3DS Simple CIA Converter : Riku
Patch RomFS Pointer Tool : AHP_Person
HackingToolkit3DS : Asia81 / Mizoré
CleanTool : Asia81 / Mizoré
Thanks to:
Megadrifter
Stratovarius
Reisyukaku
Weby
Guitoh
Apache Thunder
Ericzander
BullyWiiPlaza
Last edited by Asia81,