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

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

EternalSeekerX

Well-Known Member
Newcomer
Joined
Sep 28, 2015
Messages
55
Trophies
0
XP
171
Country
Canada
I tried the same process with two of my decrypted .3ds roms, with two different versions of HackingToolkit (4.3 and 5.2) but it doesn't extract anything!
It "extracts" too much fast (I can't even read the extracting process).

I can attempt to help you. So did you after dumping your roms onto your 3DS SD card, move it into the D9Game folder and use Decrypt9 to fully decrypt it? I am assuming you did. Make sure you use the latest version (so 5.2). In the pack hack folder make sure to use SetupUS to install just in case (might help you out). After that open HackingToolkit3DS. Press D and type the rom name without the .3ds extension (I advise that after you decrypt the rom to rename it something simple since special characters and the cmd don't go well) it should decrypt your rom. Also run it as an administrator!
 

EternalSeekerX

Well-Known Member
Newcomer
Joined
Sep 28, 2015
Messages
55
Trophies
0
XP
171
Country
Canada
i just get 'probably not a cia' when i want to decrypt one lol, rip

Did you dump the rom using brain dump? I suggest using Uncart if you have a cfw, they actually dump the .3ds file itself and decrypt 9 can easily decrypt that! If you used braindump (correct me if I am wrong) but Braindump actually decrypts the rom as a .cxi file which means you just need to extract it using the 3ds tool in step 3?
 
  • Like
Reactions: CaptainZef

maxiking913

Member
Newcomer
Joined
Mar 4, 2015
Messages
12
Trophies
0
Age
34
XP
180
Country
Gambia, The
When i installed the Cia and select the Langugage ingame it crashes? Help pls

BTW:

Used Star Saphire 2.0 and Busty May Mod

EDIT Update:

Works now. removed busty may mod. can someone help me out?
 
Last edited by maxiking913,

MarioBlaster13

New Member
Newbie
Joined
Jun 25, 2016
Messages
1
Trophies
0
XP
42
Country
United States
Hi, I'm new to 3DS hacking and I want to know how to edit the actual game. I have already extracted all of the stuff but I haven't been able to edit any of the files. I just want to edit the textures and dialogue in Pokemon ORAS.
 
Last edited by MarioBlaster13,

jonnytron

Well-Known Member
Newcomer
Joined
Dec 4, 2015
Messages
86
Trophies
0
Age
30
XP
151
Country
Hi, I decrypted my installed cia of bravely second using braindump to CXI. I then edited it with Asia81's uncensoring MINI pack and changed the icon.bin using EFE. I repacked the game afterwards following the tutorial but after installing the cia the icon is a black square and it causes an error on launch.

Anyone know where I may have gone wrong or able to help???

EDIT: I realise it may not have helped that there is another guide for .cia's (rather than .3ds). The only real difference however seems to be the decryption method... suggestions?
 
Last edited by jonnytron,

jonnytron

Well-Known Member
Newcomer
Joined
Dec 4, 2015
Messages
86
Trophies
0
Age
30
XP
151
Country
You can't repack CXI in CIA

Thanks for the speedy reply. In a way I'm glad it was something so simple.

So I guess I'll unpack it with D9 then (I assume it'll work fine on A9LH updated sysNAND?) or will the hacking tool kits mass extract command do as good of a job?
 

Gow supremo

I am playing my 2ds
Member
Joined
Jan 24, 2016
Messages
240
Trophies
0
Location
In the earth
XP
284
Country
Spain
1433597859-rh-gt.png

With this tutorial, you will be able to decrypt, extract, and rebuild a 3DS ROM / File.
You will also be able to launch X/Y, OmegaRuby/AlphaSapphire without having to update.

Thanks a lot to Ericzander & BullyWiiPlaza for their help to translate this tutorial in english :)
(Because I'm French, it’s difficult to make a full tutorial in a good English...)
If anyone see any typo or something wrong with my english (in the setup, the script, the tutorial...) let me know!

This tutorial will try to help you decrypt a 3DS ROM to change its content and will also explain how to rebuild an edited game.

Ce tutoriel est également disponible pour les français ici (Pas à Jours) :
This tutorial is also available for french users here (Outdated):
http://www.pokemontrash.com/jeux-pokemon/decrypter-compiler-rom-3ds.php

For this tutorial, homebrew(s) will be shortened by HB(or HBs) and The HomeBrew Launcher by HBL.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Summary

- What you need
- Prerequisites
- Decrypting
- Extracting
- Editing
- Rebuilding

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

What you Need

  • A 2DS/O3DS/N3DS with SysNand Firmware between 4.1 and 10.7
  • A 3DS Game/Title
  • WinRAR, or another archive extractor
  • A way to launch HomeBrews, see here: http://smealum.github.io/3ds/
  • A SD card with a minimum free capacity of 2GB (4 is recommended)
  • This PackHack: Click Here
  • Notepad++: Click Here
  • Optional: 3DS Simple CIA Converter: Click Here

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

Prerequisites

Install the new SetupUS.exe of HackingToolkit3DS as a common tool:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​


Decrypting

First Way: Dump your file contents on 10.7
First of all, you'll need to have a way to launch HBs on your 3DS.
For this, I recommend Ninjhax, OoTHax or IronHax if you have an updated payload.
There is some other ways, you can choose one of them here: http://smealum.github.io/3ds/


Once you have access to the HBL, copy the BrainDump folder in your 3ds folder (like another HB).
Start HBL, start BrainDump, and use the Title Selector for choose your game (can also be a system title, but some are not dumpables, same with SDK9+ games).
Press A, and wait while it's dumping.

Once done, you have on your 3DS' SD Card, 1 new cxi file called with a TitleID.
Copy the cxi file in PackHack folder.

Now it's done, go to Extracting.

Second Way: Decrypt your rom on 9.2
First of all, you'll need to have a way to launch HBs on your 3DS.
For this, I recommend BrowserHax or MenuHax.
There is some other ways, you can choose one of them here: http://smealum.github.io/3ds/


Once you have access to the HBL, copy the Decrypt9WIP folder to your 3ds folder (like another HB).

Put in the root of your SD Card:
- seeddb.bin
- slot0x1BKeyX.bin
- slot0x11key96.bin
- slot0x25KeyX.bin

In the root of your 3DS' SD Card, create a new folder, and call it D9Game, then put inside YourRom.3ds. Make sure Windows is not hidding extensions.

Start HBL, start Decrypt9WIP, choose Game Decryptor Options, then NCCH/NCSD Decryptor.
1459099620-gamedecryptor.png
1459099621-gamedecryptorncch.png


Wait while it's decrypting.

Once done, copy and past your decrypted game in your PackHack folder.
Now it's done, go to Extracting.

Note: If you don't see any decrypted files, it's normal. Decrypt9WIP decrypt the game itself. Check the date, it can also be something like 01/01/2000.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Extracting

Open HackingToolkit3DS:
1460285212-hackingtoolkitus.png


If you used the First Way:
Write CXI.
Enter the name of your cxi file (without extension).
Your file should not have any spaces in its name, nor special characters.
Wait while it's extracting.
You are asked if you want decompress your code.bin file, choose (y/n).

3 files and the banner folder will be created:
- DecryptedExHeader.bin (Can't be used for 3DS Builder...)
- DecryptedExeFS.bin
- DecryptedRomFS.bin

The ExeFS content will be extracted in an ExtractedExeFS folder.
The RomFS content will be extracted in a ExtractedRomFS folder.

Now you’re able to edit the game, go to Editing.

If you used the Second Way:
Write D, and enter the name of your decrypted file.
Your file should not have any spaces in its name, nor special characters.
Wait while it's extracting.
You are asked if you want decompress your code.bin file, choose (y/n).

3 (up to 7) files and the banner folder will be created:
- DecryptedExHeader.bin
- DecryptedExeFS.bin
- DecryptedRomFS.bin
- DecryptedDownloadPlay.bin
- DecryptedO3DSUpdate.bin
- DecryptedN3DSUpdate.bin
- DecryptedManual.bin

The ExeFS content will be extracted in an ExtractedExeFS folder.
The RomFS content will be extracted in a ExtractedRomFS folder.
The DownloadPlay content will be extracted in a ExtractedDownloadPlay folder.
The Old3DS update will be extracted in a ExtractedO3DSUpdate folder.
The New3DS update will be extracted in a ExtractedN3DSUpdate folder.
The Manual will be extracted in a ExtractedManual folder, called DecryptedManual.bcma.
The Banner (shown on the Home Menu) will be extracted in a ExtractedBanner folder.

Now you’re able to edit the game, go to Editing.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Editing

Do what you want.
Edit music, textures..
If you follow this tutorial, you know what you want to do.
Once it's finished, rebuild your game.

Optional: If you want, you can also edit the TitleID of your game.
Open your DecryptedExHeader.bin in HxD, and check the Offsets on the Left, you have the TitleID on the right (Be careful, it's reversed):
1454389039-titleid.png

In this picture, it's the TitleID for Pokémon Alpha Sapphire.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Rebuilding for HANS

Part 1: Rebuild your 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 RomFS.bin.
Done !

Part 2: Set the files on your SD Card
First of all, you'll need to have HBL and HANS ready on your 3DS.

In the root of your 3DS' SD Card, create a new folder, and name it HANS.
Inside, put your new RomFS file, and name it with the TitleID of your game + romfs as the extension.
Do the same for the code.bin file (Only if you edited it). The code.bin is in your ExtractedExeFS folder.
00XXXX00.romfs & 00XXXX00.code

For example, for Pokémon Alpha Sapphire, it's:


It's ready. Start your HBL, then start HANS.
Use the Title Selector, select your game, and confirm.

In HANS, you will have to edit:


And OK, now start your game and check if it's working.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Rebuilding for CFW / FlashCards

Part 1: Rebuild your 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 RomFS.bin.
Done !

Part 2: Rebuild your Rom

Open HackingToolkit3DS, write 3DSB.
3DS Builder is now open.
1454389368-3dsbuilder.png


Open an ExtractedRomFS folder, or check the Use a RomFS binary box and select a RomFS binary (Decrypted or Rebuild).
Open an ExtractedExeFS folder, or check the Use a ExeFS binary box and select a ExeFS binary (Decrypted or Rebuild).
Open the DecryptedExHeader.bin for the game you're rebuilding.
Check Media CARD2. If not working in CARD2, try CARD1 (so uncheck the button).

If the game in question was released before the tool, 3DS Builder should recognize the game's name and provide the correct serial.
You can also enter a custom serial, if you want, of the form (CTR|KTR)-(P|U|N)-([A-Z0-9]){4}.

Choose a location to save the resulting file.

Hit Go, and the program will generate a playable .3ds.

Optional: Turn this .3ds in .cia for CFW

Downoad 3DS Simple CIA Converter:
1436717655-simpleciaconverter.png


Put the .3ds in the rom folder.
Open the tool.
Check FW Spoof and hit Convert 3DS ROM to CIA.
Target the rom folder.
Wait, and the tool will generate a cia file in the cia folder.
Install it.

1460285212-hackingtoolkitus.png

- Tutorial updated and HackingToolkit3DS updated to V5
-
New Build added. You'll have to uninstall the previous Setup and install the new one. For uninstall, it's as all your other tools, use the uninstall.exe in the ProgramFiles folder.
- Added a Full VirusTotal Scan : http://pastebin.com/AzCq4QGD
- FIXED the Pokemon Patch Injection. The Updated Tutorial will follow.
- Fixed a typo in the cxi script extraction.
- HackingToolkit3DS is always more faster to load (The main file is just 100kb).
- New Links
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​

Asia81 In this word:
In the root of your 3DS' SD Card, create a new folder, and call it D9Game, then put inside YourRom.3ds. Make sure Windows is not hidding extensions.
The game is need name YourRom.3ds or it can rename the game?
 

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
Asia81 In this word:
In the root of your 3DS' SD Card, create a new folder, and call it D9Game, then put inside YourRom.3ds. Make sure Windows is not hidding extensions.
The game is need name YourRom.3ds or it can rename the game?

I think you are referring to a CIA which you are trying to decrypt? In that case, you shouldn't follow the steps for a .3ds file. Instead follow these:

  1. You need Decrypt9, either through Arm9loaderhax or the HB menu. Note that Decrypt9 has been removed from the official Arm9loaderhax install guide, so you will need to install it yourself. It's easy though. Just place the payload in the luma/payloads folder on your sd card and name it like so: X_Dec9.bin . Replace X with the key you want to hold during boot. For details on how to install a payload, see the Luma3DS wiki.
  2. Aside from that you also need the latest version of the starter pack
  3. Create a folder on the root of your SD card and call it D9Game.
  4. Move the CIA you're trying to decrypt in said folder.
  5. Unplug the SD card from your PC and put it in the 3DS.
  6. Run Decrypt9, and select 'Game Decryptor Options'.
  7. Then select 'CIA Decryptor (deep)'
  8. Wait until it finishes.
  9. Shutdown your 3DS.
  10. Take out the SD card from your 3DS and put it in your PC.
  11. Move the CIA you copied in step 4 to the PackHack folder.
  12. Run PackHack, and enter 'cia', and enter the name of your CIA (without the extension).
  13. Wait until it finishes.
  14. Profit.
The files where save?
All files are saved in either the root or the D9Game folder, depending on the location of the original file.
 

Gow supremo

I am playing my 2ds
Member
Joined
Jan 24, 2016
Messages
240
Trophies
0
Location
In the earth
XP
284
Country
Spain
i desencript .3ds file
I think you are referring to a CIA which you are trying to decrypt? In that case, you shouldn't follow the steps for a .3ds file. Instead follow these:

  1. You need Decrypt9, either through Arm9loaderhax or the HB menu. Note that Decrypt9 has been removed from the official Arm9loaderhax install guide, so you will need to install it yourself. It's easy though. Just place the payload in the luma/payloads folder on your sd card and name it like so: X_Dec9.bin . Replace X with the key you want to hold during boot. For details on how to install a payload, see the Luma3DS wiki.
  2. Aside from that you also need the latest version of the starter pack
  3. Create a folder on the root of your SD card and call it D9Game.
  4. Move the CIA you're trying to decrypt in said folder.
  5. Unplug the SD card from your PC and put it in the 3DS.
  6. Run Decrypt9, and select 'Game Decryptor Options'.
  7. Then select 'CIA Decryptor (deep)'
  8. Wait until it finishes.
  9. Shutdown your 3DS.
  10. Take out the SD card from your 3DS and put it in your PC.
  11. Move the CIA you copied in step 4 to the PackHack folder.
  12. Run PackHack, and enter 'cia', and enter the name of your CIA (without the extension).
  13. Wait until it finishes.
  14. Profit.

All files are saved in either the root or the D9Game folder, depending on the location of the original file.
 

Gow supremo

I am playing my 2ds
Member
Joined
Jan 24, 2016
Messages
240
Trophies
0
Location
In the earth
XP
284
Country
Spain
In that case, you should just be fine. You can name the file anything you want, Decrypt9 is smart enough to pick it up automatically.
But the files extracted is in the game .3ds?

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

But the files extracted is in the game .3ds?
Intro the game?
 

Gow supremo

I am playing my 2ds
Member
Joined
Jan 24, 2016
Messages
240
Trophies
0
Location
In the earth
XP
284
Country
Spain
1433597859-rh-gt.png

With this tutorial, you will be able to decrypt, extract, and rebuild a 3DS ROM / File.
You will also be able to launch X/Y, OmegaRuby/AlphaSapphire without having to update.

Thanks a lot to Ericzander & BullyWiiPlaza for their help to translate this tutorial in english :)
(Because I'm French, it’s difficult to make a full tutorial in a good English...)
If anyone see any typo or something wrong with my english (in the setup, the script, the tutorial...) let me know!

This tutorial will try to help you decrypt a 3DS ROM to change its content and will also explain how to rebuild an edited game.

Ce tutoriel est également disponible pour les français ici (Pas à Jours) :
This tutorial is also available for french users here (Outdated):
http://www.pokemontrash.com/jeux-pokemon/decrypter-compiler-rom-3ds.php

For this tutorial, homebrew(s) will be shortened by HB(or HBs) and The HomeBrew Launcher by HBL.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Summary

- What you need
- Prerequisites
- Decrypting
- Extracting
- Editing
- Rebuilding

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

What you Need

  • A 2DS/O3DS/N3DS with SysNand Firmware between 4.1 and 10.7
  • A 3DS Game/Title
  • WinRAR, or another archive extractor
  • A way to launch HomeBrews, see here: http://smealum.github.io/3ds/
  • A SD card with a minimum free capacity of 2GB (4 is recommended)
  • This PackHack: Click Here
  • Notepad++: Click Here
  • Optional: 3DS Simple CIA Converter: Click Here

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

Prerequisites

Install the new SetupUS.exe of HackingToolkit3DS as a common tool:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​


Decrypting

First Way: Dump your file contents on 10.7
First of all, you'll need to have a way to launch HBs on your 3DS.
For this, I recommend Ninjhax, OoTHax or IronHax if you have an updated payload.
There is some other ways, you can choose one of them here: http://smealum.github.io/3ds/


Once you have access to the HBL, copy the BrainDump folder in your 3ds folder (like another HB).
Start HBL, start BrainDump, and use the Title Selector for choose your game (can also be a system title, but some are not dumpables, same with SDK9+ games).
Press A, and wait while it's dumping.

Once done, you have on your 3DS' SD Card, 1 new cxi file called with a TitleID.
Copy the cxi file in PackHack folder.

Now it's done, go to Extracting.

Second Way: Decrypt your rom on 9.2
First of all, you'll need to have a way to launch HBs on your 3DS.
For this, I recommend BrowserHax or MenuHax.
There is some other ways, you can choose one of them here: http://smealum.github.io/3ds/


Once you have access to the HBL, copy the Decrypt9WIP folder to your 3ds folder (like another HB).

Put in the root of your SD Card:
- seeddb.bin
- slot0x1BKeyX.bin
- slot0x11key96.bin
- slot0x25KeyX.bin

In the root of your 3DS' SD Card, create a new folder, and call it D9Game, then put inside YourRom.3ds. Make sure Windows is not hidding extensions.

Start HBL, start Decrypt9WIP, choose Game Decryptor Options, then NCCH/NCSD Decryptor.
1459099620-gamedecryptor.png
1459099621-gamedecryptorncch.png


Wait while it's decrypting.

Once done, copy and past your decrypted game in your PackHack folder.
Now it's done, go to Extracting.

Note: If you don't see any decrypted files, it's normal. Decrypt9WIP decrypt the game itself. Check the date, it can also be something like 01/01/2000.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Extracting

Open HackingToolkit3DS:
1460285212-hackingtoolkitus.png


If you used the First Way:
Write CXI.
Enter the name of your cxi file (without extension).
Your file should not have any spaces in its name, nor special characters.
Wait while it's extracting.
You are asked if you want decompress your code.bin file, choose (y/n).

3 files and the banner folder will be created:
- DecryptedExHeader.bin (Can't be used for 3DS Builder...)
- DecryptedExeFS.bin
- DecryptedRomFS.bin

The ExeFS content will be extracted in an ExtractedExeFS folder.
The RomFS content will be extracted in a ExtractedRomFS folder.

Now you’re able to edit the game, go to Editing.

If you used the Second Way:
Write D, and enter the name of your decrypted file.
Your file should not have any spaces in its name, nor special characters.
Wait while it's extracting.
You are asked if you want decompress your code.bin file, choose (y/n).

3 (up to 7) files and the banner folder will be created:
- DecryptedExHeader.bin
- DecryptedExeFS.bin
- DecryptedRomFS.bin
- DecryptedDownloadPlay.bin
- DecryptedO3DSUpdate.bin
- DecryptedN3DSUpdate.bin
- DecryptedManual.bin

The ExeFS content will be extracted in an ExtractedExeFS folder.
The RomFS content will be extracted in a ExtractedRomFS folder.
The DownloadPlay content will be extracted in a ExtractedDownloadPlay folder.
The Old3DS update will be extracted in a ExtractedO3DSUpdate folder.
The New3DS update will be extracted in a ExtractedN3DSUpdate folder.
The Manual will be extracted in a ExtractedManual folder, called DecryptedManual.bcma.
The Banner (shown on the Home Menu) will be extracted in a ExtractedBanner folder.

Now you’re able to edit the game, go to Editing.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Editing

Do what you want.
Edit music, textures..
If you follow this tutorial, you know what you want to do.
Once it's finished, rebuild your game.

Optional: If you want, you can also edit the TitleID of your game.
Open your DecryptedExHeader.bin in HxD, and check the Offsets on the Left, you have the TitleID on the right (Be careful, it's reversed):
1454389039-titleid.png

In this picture, it's the TitleID for Pokémon Alpha Sapphire.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Rebuilding for HANS

Part 1: Rebuild your 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 RomFS.bin.
Done !

Part 2: Set the files on your SD Card
First of all, you'll need to have HBL and HANS ready on your 3DS.

In the root of your 3DS' SD Card, create a new folder, and name it HANS.
Inside, put your new RomFS file, and name it with the TitleID of your game + romfs as the extension.
Do the same for the code.bin file (Only if you edited it). The code.bin is in your ExtractedExeFS folder.
00XXXX00.romfs & 00XXXX00.code

For example, for Pokémon Alpha Sapphire, it's:


It's ready. Start your HBL, then start HANS.
Use the Title Selector, select your game, and confirm.

In HANS, you will have to edit:


And OK, now start your game and check if it's working.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~​

Rebuilding for CFW / FlashCards

Part 1: Rebuild your 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 RomFS.bin.
Done !

Part 2: Rebuild your Rom

Open HackingToolkit3DS, write 3DSB.
3DS Builder is now open.
1454389368-3dsbuilder.png


Open an ExtractedRomFS folder, or check the Use a RomFS binary box and select a RomFS binary (Decrypted or Rebuild).
Open an ExtractedExeFS folder, or check the Use a ExeFS binary box and select a ExeFS binary (Decrypted or Rebuild).
Open the DecryptedExHeader.bin for the game you're rebuilding.
Check Media CARD2. If not working in CARD2, try CARD1 (so uncheck the button).

If the game in question was released before the tool, 3DS Builder should recognize the game's name and provide the correct serial.
You can also enter a custom serial, if you want, of the form (CTR|KTR)-(P|U|N)-([A-Z0-9]){4}.

Choose a location to save the resulting file.

Hit Go, and the program will generate a playable .3ds.

Optional: Turn this .3ds in .cia for CFW

Downoad 3DS Simple CIA Converter:
1436717655-simpleciaconverter.png


Put the .3ds in the rom folder.
Open the tool.
Check FW Spoof and hit Convert 3DS ROM to CIA.
Target the rom folder.
Wait, and the tool will generate a cia file in the cia folder.
Install it.

1460285212-hackingtoolkitus.png

- Tutorial updated and HackingToolkit3DS updated to V5
-
New Build added. You'll have to uninstall the previous Setup and install the new one. For uninstall, it's as all your other tools, use the uninstall.exe in the ProgramFiles folder.
- Added a Full VirusTotal Scan : http://pastebin.com/AzCq4QGD
- FIXED the Pokemon Patch Injection. The Updated Tutorial will follow.
- Fixed a typo in the cxi script extraction.
- HackingToolkit3DS is always more faster to load (The main file is just 100kb).
- New Links
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​

In time to execute HackingToolkit3DS in all options appears:
In fr tool:

Veuillez patienter...
Extraction terminée !
Presione una tecla para continuar . . .
In eng tool:

Please wait...
Extraction done!
Presione una tecla para continuar . . .

And i have installed SetupUS and SetupFR, and desactivated antivirus.
Whats is the error?
Thanks.
 

OldGlass

Well-Known Member
Member
Joined
Feb 9, 2016
Messages
247
Trophies
0
Age
30
XP
150
Country
United States
Hmmm... I've decrypted my CIA of Smash 3DS, but I cannot find it anywhere on my SD card... Can someone help?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Maximumbeans @ Maximumbeans: butte