Tutorial  Updated

Decrypt XCI to RomFS and ExeFS for Atmosphere/FSRedirect/Backup Loading/Ryujinx/Yuzu in 1 click


IMPORTANT:
  • THIS TUTORIAL ASSUMES YOU HAVE THE DECRYPTION KEYS!
  • THIS TUTORIAL WILL NEVER PROVIDE KEYS
  • YOU ARE NOT ALLOWED TO POST ANY KEYS HERE!


Get Switch Keys (NEEDED):
My tutorial is here


Tutorial — RISEofProBB

Step 1 - PreparationStep 2 - DecryptionStep 3 - FinalizingExtras


    1. Download hactool: https://github.com/SciresM/hactool/releases/
    2. Extract the following next to hactool.exe: https://gbatemp.net/attachments/decrypt-xci-v2-1-zip.131659
    3. Make sure your keys are in keys.ini filename and format and is next to hactool.exe aswell

    1. Put the .XCI you want to decrypt next to hactool.exe (Important)
    2. Drag the .XCI onto the Decrypt-XCI.bat
    3. Let it do its thing, it could take a while
    4. Once you see "DONE!" your done!

  1. The new folder xciDecrypted next to hactool.exe is now the romfs and exefs of the xci decrypted.
    romfs in xciDecrypted/romfs.bin and exefs in xciDecrypted/exefs
    The structure is 100% ready to copy and paste into sd:/atmosphere/titles/{titleid}/ for Backup Loading/LayeredFS Mods.
    (but you still need to rename the folder to the titleid and edit the main.npdm)
    To use this with Ryujinx, drag the xciDecrypted/exefs folder onto Ryujinx.exe (No idea about Yuzu).

    • If you want the Batch file to close once its done, remove the last line (pause >nul) and save.


Thanks to gdkchan for the original script, since the original script, I have HEAVILY modified it.
 

Attachments

  • Decrypt-XCI-v2.1.zip
    772 bytes · Views: 11,371
Last edited by PRAGMA,

TunaKetchup

The Goose is Loose
Member
Joined
Mar 20, 2018
Messages
580
Trophies
0
XP
1,615
Country
Vietnam
I DID! I found this screenshot online since I closed the application and cant be asked to make a screenshot at 1am in the morning

I tried it myself just as a test to see

and yeah it worked

t7KZdQS.png
 
Last edited by TunaKetchup,

Ryab

Well-Known Member
Member
Joined
Aug 9, 2017
Messages
3,234
Trophies
1
XP
4,465
Country
United States
Someone can PM me the link of the keys? I can't find them :/
you cant find them online you have to get them off your own switch https://gbatemp.net/threads/how-to-get-switch-keys-for-hactool-xci-decrypting.506978/

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

Can you give me a tip on how to google them? I tried it with Switch Master Keys Hactool, but i‘m not finding anything.
https://gbatemp.net/threads/how-to-get-switch-keys-for-hactool-xci-decrypting.506978/ just decrypt your own keys
 

dapharsyde

Member
Newcomer
Joined
May 20, 2018
Messages
5
Trophies
0
Age
47
XP
642
Country
United States
Tried to decrypt Sushi Striker and it says file not found, any idea why?
Other titles works fine except this game.

edit: nvm, fixed

how did you fix it? i think i'm having the same issue - other games work ok, but not this one. i got an "invalid XCI partition" error when I ran hactool.exe by itself.
 

Awstoned

Well-Known Member
Newcomer
Joined
May 14, 2018
Messages
97
Trophies
0
Age
34
XP
327
Country
United States
Still getting issues about an invalid NCA header. Also get an error message that it couldn't find a .npdm file.

I'm pretty sure I'm dumping the right keys, I'm getting the "Now you can do hactool" message
did you fix it I had the same problem
you have to make sure you show file extension in your folder options then change your file to keys.ini
 

Awstoned

Well-Known Member
Newcomer
Joined
May 14, 2018
Messages
97
Trophies
0
Age
34
XP
327
Country
United States
Still getting issues about an invalid NCA header. Also get an error message that it couldn't find a .npdm file.

I'm pretty sure I'm dumping the right keys, I'm getting the "Now you can do hactool" message
did you fix it I had the same problem
you have to make sure you show file extension in your folder options then change your file to keys.ini

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

Still getting issues about an invalid NCA header. Also get an error message that it couldn't find a .npdm file.

I'm pretty sure I'm dumping the right keys, I'm getting the "Now you can do hactool" message
did you fix it I had the same problem
you have to make sure you show file extension in your folder options then change your file to keys.in
About 40 keys, they're in a keys.ini file. Basically I used your guide here to the letter: https://gbatemp.net/threads/how-to-get-switch-keys-for-hactool-xci-decrypting.506978/

Tried with the v2.1 Decrypt bat, no error messages but the xciDecrypt folder is still empty
you have to show file extensions in your folder options
then cahnge to keys.ini
 

Ty_

Well-Known Member
Member
Joined
May 22, 2018
Messages
399
Trophies
0
Age
44
XP
1,256
Country
United Kingdom
how did you fix it? i think i'm having the same issue - other games work ok, but not this one. i got an "invalid XCI partition" error when I ran hactool.exe by itself.

My guess is its missing a master key higher than 04

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

did you fix it I had the same problem
you have to make sure you show file extension in your folder options then change your file to keys.ini

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

did you fix it I had the same problem
you have to make sure you show file extension in your folder options then change your file to keys.in

you have to show file extensions in your folder options
then cahnge to keys.ini

Yeah it was a problem with the ini file, fixed it yesterday
 

SexiestManAlive

The key that lights the dark
Member
Joined
Apr 18, 2016
Messages
617
Trophies
0
Age
22
XP
2,457
Country
United States
Open up notepad

Copy your keys into the new notepad we just opened

Click on File, then Save As,

On the bottom in the file name box you want "keys"

Below that you will see a box "Save as type" you want to chose .txt

The final file should just be called "keys"


I hope that helps because if not I'm not sure what the problem is. Maybe somebody else can chime in

I changed it but it still didnt work, funny thing is, its not working on my laptop, but it works on my desktop, so i dont know what i have to change on the laptop to get it to work.
 

dave11674

Active Member
Newcomer
Joined
Apr 10, 2007
Messages
43
Trophies
1
XP
304
Country
hi
is the title.npdm supposed to end up like this mate ??

looks a little bare if you ask me heheh

dave
 

Attachments

  • Image2.jpg
    Image2.jpg
    71.4 KB · Views: 423
D

Deleted User

Guest
nvm, I got it lol

I am getting a dll error.

SuVMLbq.jpg
 
Last edited by ,

Mario497

Member
Newcomer
Joined
Jun 20, 2018
Messages
5
Trophies
0
Age
24
XP
92
Country
Canada
I have my keys and everything (I've set all of it up) but when I tried to full extract my splatoon 2 xci it worked (I got all the games files) but when I did the same thing for Mario Odyssey it said something like Sector 0 error something like that. And just gave me a bunch of folders with no files.
 

VashTS

Beat it, son
Member
Joined
Mar 14, 2009
Messages
4,308
Trophies
1
Age
39
Location
Upstate NY
XP
3,756
Country
United States
anyone have any luck with Mario Tennis Aces? seems to fail every time though other games work just fine. tried just hactool and that seems to be the problem
 

a7mag3ddon

Well-Known Member
Member
Joined
Mar 17, 2013
Messages
194
Trophies
0
Age
53
XP
681
Country
anyone have any luck with Mario Tennis Aces? seems to fail every time though other games work just fine. tried just hactool and that seems to be the problem


Use XCI Explorer to extract the largest .nca file first then extract everything before finally patching titleID

hactool.exe -k keys.ini --romfs="[GAMEFolder]\romfs.bin" --exefsdir="[GAMEfolder]\exefs" "[name of your file].nca"

Obvisouly change [Gamefolder] and [Name of your file] to what you have :-P
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    AncientBoi @ AncientBoi: yes? Interesting way to get Hi