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

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

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,050
Country
Greece
Trying to extract UM from 3 different CIAs here (leaked one, FreeShop dump and Villain3DS one), but always getting the same result. It extracts alright, but instead of folders, all I'm getting is a list of ".bin" files (eg: DecryptedRomFS.bin), which normally wouldn't be a problem, but ctrtool is being annoying and it keeps giving me "Unkown file" errors while the RomFSExtractor.exe just outright crashes the moment I hit "go"! I want to make a romhack but I can't because of all this, any way I can fix it? It does this every now and then with other games too (eg: with MHXX it will either work half the time or it will give me just the .bin files the other half):/ I just tried extracting the three UM cias I got over 10 times each just in case but no luck!
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
Guys you HAVE to know if the file you downloaded was encrypted or not. If you're dumping a .CIA with freeshop it's decrypted, if you download one from a warez site, it's decrypted. You either have to encrypt it again with Godmode9 BEFORE extracting it with v11 of HackingToolKit. Otherwise, you need to use V9 that extracts decrypted .CIAs. V11 ONLY works on encrypted .CIAs that you'd get directly from the CDN.

That's why you guys are all getting .bin files and not the extracted folders.
 
  • Like
Reactions: KunoichiZ

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,050
Country
Greece
Guys you HAVE to know if the file you downloaded was encrypted or not. If you're dumping a .CIA with freeshop it's decrypted, if you download one from a warez site, it's decrypted. You either have to encrypt it again with Godmode9 BEFORE extracting it with v11 of HackingToolKit. Otherwise, you need to use V9 that extracts decrypted .CIAs. V11 ONLY works on encrypted .CIAs that you'd get directly from the CDN.

That's why you guys are all getting .bin files and not the extracted folders.
I'm using V10 first of all. Second, as I said, I used three different CIAs with the same result (FreeShop, Villain3DS and one cartridge dump). Anyway, redownloaded from Villain3DS just in case and it worked somehow... It gave me both .bins and folders, so now I'm editing it with Pk3DS!

If the way the program handles encrypted and unencrypted CIAs changed between versions, why is there no mention of that in the change logs though? Would make sense to include it...:/
 

susanoomon

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
498
Trophies
0
Age
34
XP
1,818
Country
United States
I'm having an issue with rebuilding the cia... it goes through the process alright but when it finishes it doesn't create a modded cia file.... Am I doing something wrong somewhere or is it the version I'm using? I'm using v5.3 btw
 

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
I'm using V10 first of all. Second, as I said, I used three different CIAs with the same result (FreeShop, Villain3DS and one cartridge dump). Anyway, redownloaded from Villain3DS just in case and it worked somehow... It gave me both .bins and folders, so now I'm editing it with Pk3DS!

If the way the program handles encrypted and unencrypted CIAs changed between versions, why is there no mention of that in the change logs though? Would make sense to include it...:/
Meh I'm not the dev but the differences are between HacktinToolKit3DS (all versions only work with decrypted titles) and HackingToolKit9DS (All versions only work with encrypted titles). Your case must have just been a bad download. Either way, Asia81 mentioned it more than once in the thread and updated the OP and the change logs. He's French, but he did say there is no need to decrypt the files anymore, just neglected to mention you HAVE to leave them that way to extract them using version 10<.

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

I'm having an issue with rebuilding the cia... it goes through the process alright but when it finishes it doesn't create a modded cia file.... Am I doing something wrong somewhere or is it the version I'm using? I'm using v5.3 btw
You need at least version 9. Older versions never had working .CIA builders.
 
  • Like
Reactions: Asia81 and ThoD

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,050
Country
Greece
Meh I'm not the dev but the differences are between HacktinToolKit3DS (all versions only work with decrypted titles) and HackingToolKit9DS (All versions only work with encrypted titles). Your case must have just been a bad download. Either way, Asia81 mentioned it more than once in the thread and updated the OP and the change logs. He's French, but he did say there is no need to decrypt the files anymore, just neglected to mention you HAVE to leave them that way to extract them using version 10<.

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


You need at least version 9. Older versions never had working .CIA builders.
Thanks for the explanation. Btw, about the CIA builders, pretty much no version does, even at v11 CIA building isn't working right (says so even in the logs). I may get a working CIA like 1% of the time, but that's at best... Not that I care, layeredFS is enough for romhack patches.
 

susanoomon

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
498
Trophies
0
Age
34
XP
1,818
Country
United States
if the cia i used to extract the romfs files from doesn't get modded can i just replace the cia file to a different one or do i have to re-extract the files on the one i replace it with?
 

noX1609

B9S freak ;)
Member
Joined
Aug 30, 2016
Messages
477
Trophies
0
Age
33
XP
501
Country
Germany
Can i extract the code.bin with that tool?

Because i search a tool which can be used to extract the file so i can apply modifications to it.
Want to apply the patch to it so i can scan qr codes to import pokemon created with pkhex.
Or does this work with a different method already?
 
Last edited by noX1609,

Majickhat55

The Red Woman
Member
Joined
Mar 28, 2016
Messages
4,936
Trophies
1
Age
36
Location
Asshai
XP
2,958
Country
United States
Thanks for the explanation. Btw, about the CIA builders, pretty much no version does, even at v11 CIA building isn't working right (says so even in the logs). I may get a working CIA like 1% of the time, but that's at best... Not that I care, layeredFS is enough for romhack patches.
It works for me, but I've noticed it only works on .CIAs that are like less than 2GB otherwise it says it's done and doesn't give me the file; but it worked great on Pokemon Crystal.
 

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,662
Trophies
3
Age
29
XP
3,532
Country
France
It works for me, but I've noticed it only works on .CIAs that are like less than 2GB otherwise it says it's done and doesn't give me the file; but it worked great on Pokemon Crystal.
It work on any CIA (including 2GB+, make sure you have enough RAM to rebuild them) except in V10+ because the CIA rebuild script is broken and I need an update or ctrtool/3dstool.

Can i extract the code.bin with that tool?
Yes.
 

susanoomon

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
498
Trophies
0
Age
34
XP
1,818
Country
United States
It work on any CIA (including 2GB+, make sure you have enough RAM to rebuild them) except in V10+ because the CIA rebuild script is broken and I need an update or ctrtool/3dstool.


Yes.
hey Asia81, for trying to randomize ultra sun and moon with a cia which version should i use?
 

pz64

Active Member
Newcomer
Joined
Nov 6, 2017
Messages
32
Trophies
0
Age
27
XP
90
Country
United States
I'm here because I just want to convert a .cxi into a .3ds
I'm not interested in editing the banner or music or any of that. So can this tool be used as simply a converter or not?
 

susanoomon

Well-Known Member
Member
Joined
Jun 23, 2015
Messages
498
Trophies
0
Age
34
XP
1,818
Country
United States
Anyone here know why the 3ds hacking tool isn't creating a moded cia file? It says it did but there is no modes cia in the folder...
 

ThoD

GBATemp Addict (apparently), but more like "bored"
Member
Joined
Sep 8, 2017
Messages
3,631
Trophies
1
Age
27
XP
3,050
Country
Greece
It works for me, but I've noticed it only works on .CIAs that are like less than 2GB otherwise it says it's done and doesn't give me the file; but it worked great on Pokemon Crystal.
It didn't for me some time back when I was trying to make a CIA of the English patch for MHXX that included the 1.2 update. That was about 37MBs... Worked for me after two tries though (using V9).

It work on any CIA (including 2GB+, make sure you have enough RAM to rebuild them) except in V10+ because the CIA rebuild script is broken and I need an update or ctrtool/3dstool.
Is the CIA rebuild gonna be fixed in the next release or it's not a priority? I mainly will be using layeredFS to apply the patch of the romhack I'm making, but at some point, I would like to have the option of being able to simply install it over the game so NTR will work with it too (layeredFS from Luma and NTR with plugin crash on extended memory games on O3DS unless the plugin is tiny and PCalc is slightly too big, enough to crash the game often).

Anyone here know why the 3ds hacking tool isn't creating a moded cia file? It says it did but there is no modes cia in the folder...
Use V9, it should work according to OP.
 

cevaceva

Member
Newcomer
Joined
Aug 17, 2016
Messages
9
Trophies
0
Age
29
XP
87
Country
United States
I'm using V10 first of all. Second, as I said, I used three different CIAs with the same result (FreeShop, Villain3DS and one cartridge dump). Anyway, redownloaded from Villain3DS just in case and it worked somehow... It gave me both .bins and folders, so now I'm editing it with Pk3DS!

If the way the program handles encrypted and unencrypted CIAs changed between versions, why is there no mention of that in the change logs though? Would make sense to include it...:/

Villain3DS only gives you encrypted version of the games? or can you get decrypted versions too from there which works with citra:D? maybe i asked a stupid question but i wanna be sure.
 

cevaceva

Member
Newcomer
Joined
Aug 17, 2016
Messages
9
Trophies
0
Age
29
XP
87
Country
United States
Hey so i got a different ultra moon decrypted file which i was able to extract and edited it useing the latest pk3ds :) but now my question is: how do i rebuild it into a 3ds file? cause pk3ds gives error saying that my romfs file count does not match the orginal file count so is there another program which can rebuild it? (i remember i used something in the past but i forgot its name...)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    More than meets the eye
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Drug Mule Bot roll out!
    +1
  • BigOnYa @ BigOnYa:
    Oh, that's why that transformer statue sold at auction for 1.2 million. It would literally shit bricks.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I always wondered how the autobots could afford to do the stuff they did on the show.... now I know lol
    +1
  • K3Nv2 @ K3Nv2:
    Damn auto bots not pissing oil at o' rileys
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Megatron "Prime why throw away your life!" Prime "How do I think I got these gold rims!!!"
  • Psionic Roshambo @ Psionic Roshambo:
    Autobots roll some blunts and smoke out!
  • Psionic Roshambo @ Psionic Roshambo:
    Channel 69 news "Last night someone stole several cars and a semi truck loaded with drugs from the police impound lot!"
  • BakerMan @ BakerMan:
    i'mma @ juan in the joke thread and say "hey juan i call your mom dwayne the way she rock my johnson"
  • Psionic Roshambo @ Psionic Roshambo:
    Prowl was the autobots inside man... lol
  • Jayro @ Jayro:
    Is GBAtemp being a sluggish turd for anyone else today, or just me..?
  • K3Nv2 @ K3Nv2:
    Goku likes to flip the bean to get others healthy
  • SylverReZ @ SylverReZ:
    @Jayro, No, works fine.
  • SylverReZ @ SylverReZ:
    Hope your weekend's great. :)
  • SylverReZ @ SylverReZ:
    My friend found this the other day. Courtesy of @Kaoid
  • SylverReZ @ SylverReZ:
    Sylveon popping out of a DS lite.
  • DinohScene @ DinohScene:
    pretty decent considering
    +1
  • DinohScene @ DinohScene:
    just under 2 weeks orso before the new harddrive arrives
    +1
  • SylverReZ @ SylverReZ:
    @DinohScene, How's that hard drive recovery project going?
  • DinohScene @ DinohScene:
    which one
  • SylverReZ @ SylverReZ:
    @DinohScene, You mentioned that you have a new hard drive coming.
  • DinohScene @ DinohScene:
    yeh in 2 weeks orso
    DinohScene @ DinohScene: yeh in 2 weeks orso