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

  • Thread starter Asia81
  • Start date
  • Views 1,421,620
  • Replies 1,729
  • 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.2%
  • Perfect?

    Votes: 158 17.3%

  • Total voters
    914

Theone5000

Well-Known Member
Member
Joined
Feb 22, 2009
Messages
167
Trophies
1
Location
Earth
XP
1,379
Country
Netherlands
I'd never got HackingToolkit9DS when i used the Setup.exe that came with it. should i copy the folder over from my Desktop to the Program Files directory?
I don't understand your question. But if you have HackingToolkit9DS installed and have a folder in Program Files (x86) those 2 .dll files should be placed into that folder.
 

Impossible_Igntiz

Well-Known Member
Member
Joined
Nov 16, 2018
Messages
419
Trophies
0
Location
Bonerville
XP
1,169
Country
United States
I don't understand your question. But if you have HackingToolkit9DS installed and have a folder in Program Files (x86) those 2 .dll files should be placed into that folder.
Yeah i finally figured that out already, i can extract files easily now, but now my new problem is rebuilding .cia files as the banner.bin and logo.bin files are always missing everytime i rebuild my Sega CD VC inject.

Sent from my SM-J700T1 using Tapatalk
 

giblet_enjoyer

New Member
Newbie
Joined
Jul 27, 2020
Messages
2
Trophies
0
Age
33
XP
43
Country
United States
Tool always produces useless .3ds files with a size of 0kb when you attempt to do so using the HackingToolkit9DS.exe. It does still work well enough but you sadly have to use the much more tedious 3DSBuilderMod.exe found in the ExtraTools folder in order to actually make a real and functioning .3ds. It's strange because the program pretends to make a .3ds for a few minutes, but it always fails to actually do so.

And since I know someone will ask, yes I performed the setup, yes I did the right commands when prompted, etc. etc.
 

havocdrake

Well-Known Member
Newcomer
Joined
May 19, 2020
Messages
72
Trophies
0
Age
34
XP
1,168
Country
Philippines
Why is the tool not Extracting `DecryptedExeFS.bin` into a folder?

PackEnglishV12-not-extracting.jpg
 
  • Like
Reactions: DuoForce

Kiken

Active Member
Newcomer
Joined
Jan 7, 2020
Messages
30
Trophies
0
Age
26
XP
110
Country
Germany
I managed to extract a CIA without issues through this guide. However, when I try to rebuild the CIA (no matter whether I make any changes to the extracted files or leave them untouched) I get an error from the makerom.exe: "Application couldn't be started (0xc000007b). Klick OK to close the application."

Any clues on how to fix that? I only wanted to change the Title ID on a CIA and this is proving to me a much bigger hassle than I expected...
 

Rigadoog

Member
Newcomer
Joined
Aug 20, 2019
Messages
8
Trophies
0
Age
29
XP
76
Country
United States
For anyone having issues, I just switched to the V9 release, and it has no problems with missing .dlls or empty .3ds files.
 

Rocky5

Well-Known Member
Member
Joined
Aug 12, 2007
Messages
127
Trophies
1
Website
github.com
XP
983
Country
United Kingdom
(I asked this here:
https://gbatemp.net/threads/hatsune-miku-project-mirai-update-error.531440/#post-9094546 )

Basically, I have a handful of games that I think were built using the wrong minor and micro versions. So those games always nag me to update, but when I try, there is always an error.

So how do I know what minor and micro versions to use when I rebuild these games so they stop nagging me for updates?
Reason is its missing the major entry in the build. The exe is just a bat file.

Change the following lines.

Code:
set /p OutputRomCIA="Write your output .CIA filename (without extension) : "
set /p MinorVer="Original minor version (write 0 if you don't know) : "
set /p MicroVer="Original micro version (write 0 if you don't know) : "

to this

set /p OutputRomCIA="Write your output .CIA filename (without extension) : "
set /p MajorVer="Original major version (write 0 if you don't know) : "
set /p MinorVer="Original minor version (write 0 if you don't know) : "
set /p MicroVer="Original micro version (write 0 if you don't know) : "

Code:
"makerom.exe" -target p -ignoresign -f cia %ARG0% %ARG1% %ARG2% -minor %MinorVer% -micro %MicroVer% -o %OutputRomCIA%_Edited.cia >NUL 2>NUL

to this

"makerom.exe" -target p -ignoresign -f cia %ARG0% %ARG1% %ARG2% -major %MajorVer% -minor %MinorVer% -micro %MicroVer% -o %OutputRomCIA%_Edited.cia >NUL 2>NUL

Now when prompted enter the full version number.
 
Last edited by Rocky5,

albercito

New Member
Newbie
Joined
Sep 21, 2020
Messages
3
Trophies
0
Age
28
XP
36
Country
United States
Hi guys, Good day! I gotta problem to build cia. Look I'm trying to patch my Fire Emblem Fates SE Eur with marriage and swimsuit patch. Hackingtoolkit9 extract RomSf folder perfectly and I replace the OG files for patch Files, but when I'm going to rebuilt the CIA, I hope and over the process, I can't see anywhere the "new" Cia archive, i just see the bin archives, folders, the OG cia and some new Files like "CostumePation0" and 1. I'm using V12 from Hackingtoolkit; please excuse me my english(it isn't my parent language) and (again) I'm sorry for any trouble and have a nice day!
 

wad11656

Well-Known Member
Member
Joined
Jun 18, 2011
Messages
126
Trophies
1
XP
1,002
Country
United States
Reason is its missing the major entry in the build. The exe is just a bat file.

Change the following lines.

Code:
set /p OutputRomCIA="Write your output .CIA filename (without extension) : "
set /p MinorVer="Original minor version (write 0 if you don't know) : "
set /p MicroVer="Original micro version (write 0 if you don't know) : "

to this

set /p OutputRomCIA="Write your output .CIA filename (without extension) : "
set /p MajorVer="Original major version (write 0 if you don't know) : "
set /p MinorVer="Original minor version (write 0 if you don't know) : "
set /p MicroVer="Original micro version (write 0 if you don't know) : "

Code:
"makerom.exe" -target p -ignoresign -f cia %ARG0% %ARG1% %ARG2% -minor %MinorVer% -micro %MicroVer% -o %OutputRomCIA%_Edited.cia >NUL 2>NUL

to this

"makerom.exe" -target p -ignoresign -f cia %ARG0% %ARG1% %ARG2% -major %MajorVer% -minor %MinorVer% -micro %MicroVer% -o %OutputRomCIA%_Edited.cia >NUL 2>NUL

Now when prompted enter the full version number.

omg I didn't know you could change the major version in the bat/exe!! You would be amazed how many hours I spent Googling trying to find how to change the major version. Thank you--I will definitely give this a shot when I get back around to my 3DS hacking projects
 
Last edited by wad11656,

albercito

New Member
Newbie
Joined
Sep 21, 2020
Messages
3
Trophies
0
Age
28
XP
36
Country
United States
Hi Everyone I'm trying to patch Fire Emblem Fates SE Eur with the next patch: Swimsuit and marriage. My problem is that I follow the next steps:

1-With hackingtoolkit9ds I extract my Cia

2-I replace the OG Files With the patch Files at the folder Romfs

3-I rebuild the Cia

But when I tried to rebuild the CIA, it doesn't make the file CIA "Edited" however I get the next files: "custonpartition0", "custompartition1", etc. I konw that I can patch this with luma but the game slows down a lot; for example the animation and texture load during 15 seconds and the menu 30 seconds. If somebody could help me to patch the CIA or tell me about another tool to patc, I'll be really grateful.
 

Rocky5

Well-Known Member
Member
Joined
Aug 12, 2007
Messages
127
Trophies
1
Website
github.com
XP
983
Country
United Kingdom
Hi Everyone I'm trying to patch Fire Emblem Fates SE Eur with the next patch: Swimsuit and marriage. My problem is that I follow the next steps:

1-With hackingtoolkit9ds I extract my Cia

2-I replace the OG Files With the patch Files at the folder Romfs

3-I rebuild the Cia

But when I tried to rebuild the CIA, it doesn't make the file CIA "Edited" however I get the next files: "custonpartition0", "custompartition1", etc. I konw that I can patch this with luma but the game slows down a lot; for example the animation and texture load during 15 seconds and the menu 30 seconds. If somebody could help me to patch the CIA or tell me about another tool to patc, I'll be really grateful.
If the CIA is encrypted you should be fine to rebuild. If it’s decrypted then you will need to edit the source (bat files found on his github) and remove the auto-key stuff from the building of the CIA.

Also make sure the file names have no spaces. I used to just rename them to 1.cia, extract rebuild then rename to the game.
 

namingwaypoint

New Member
Newbie
Joined
Dec 3, 2020
Messages
4
Trophies
0
Age
34
XP
44
Country
Bahamas, The
I'm not sure what I'm doing wrong here, but I tried extracting a CIA but no file is getting extracted in the same folder. It does say the extraction completed though. Using the v12 from Github.

Edit: So it looks like I have to run the setup.exe first before running the toolkit. However, I ran into a ucrtbased.dll/VCRUNTIME140D.dll missing error when I tried to repack the CIA. Anyone know which redistributable I have to install to fix this?
 
Last edited by namingwaypoint,

ITZZOM

Active Member
Newcomer
Joined
Dec 7, 2018
Messages
33
Trophies
0
Age
23
XP
493
Country
Poland
Hey, so I'm trying to extract Mario and Luigi Paper Jam, but the program just doesn't do it, even though it says it's done immediately after pressing enter. And no, I didn't put the extension in the command nor did I put any spaces or special letters in the file's name. What should I do?
 

Manuelelcapooo

New Member
Newbie
Joined
Dec 21, 2020
Messages
1
Trophies
0
Age
23
XP
36
Country
Argentina
Hi, i managed to extract the stuff from the file but i cannot open the files that were extracted with anything.
PowerISO and UltraISO give me this error:

upload_2020-12-21_4-11-21.png


any solutions?
 

Rustol

New Member
Newbie
Joined
Dec 23, 2020
Messages
1
Trophies
0
Age
24
XP
33
Country
Australia
I'm not sure what I'm doing wrong here, but I tried extracting a CIA but no file is getting extracted in the same folder. It does say the extraction completed though. Using the v12 from Github.

Edit: So it looks like I have to run the setup.exe first before running the toolkit. However, I ran into a ucrtbased.dll/VCRUNTIME140D.dll missing error when I tried to repack the CIA. Anyone know which redistributable I have to install to fix this?

I had this problem as well, the tricky thing is as far as I know you cannot just install this file through a redistributable (as it is a debug file "vcruntime140D.dll" instead of "vcruntime140.dll", the latter being what you get in the redistributables). You can download it from a site called dll-files dot com (which I can't link to as I'm not allowed to link things in my first 5 posts apparently), which also provides ucrtbased.dll, another debug file it started asking me for after I provided vcruntime140d.dll, just in case it asks you for that as well. The site also explains where you need to put them for the different versions of Windows.

I managed to extract a CIA without issues through this guide. However, when I try to rebuild the CIA (no matter whether I make any changes to the extracted files or leave them untouched) I get an error from the makerom.exe: "Application couldn't be started (0xc000007b). Klick OK to close the application."

Any clues on how to fix that? I only wanted to change the Title ID on a CIA and this is proving to me a much bigger hassle than I expected...

I am now also having this problem, I've tried everything I could see online to fix it but nothing has worked so far so please let me know if anyone is able to help here.

Edit: Here are the results of extracting and rebuilding on different versions of the program:
Version 11 - After rebuilding, it outputs: "The filename, directory name, or volume label syntax is incorrect.
Creation done!" This is a lie. nothing is created
Version 10 - It...works? At least, it outputs a file the same size as the original with no errors. When testing it on my 3ds however, it does not work. FBI fails to install it, giving the error code 0xD8E08025 which apparently usually indicates an issue with your SD card, but this is not the case here
Version 9 and below - It successfully rebuilds an 83kb file, just a little bit smaller than the ~400mb one I had started with
 
Last edited by Rustol,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • ZeroT21 @ ZeroT21:
    it wasn't a question, it was fact
  • BigOnYa @ BigOnYa:
    He said he had 3 different doctors apt this week, so he prob there. Something about gerbal extraction, I don't know.
    +1
  • ZeroT21 @ ZeroT21:
    bored, guess i'll spread more democracy
  • LeoTCK @ LeoTCK:
    @K3Nv2 one more time you say such bs to @BakerMan and I'll smack you across the whole planet
  • K3Nv2 @ K3Nv2:
    Make sure you smack my booty daddy
    +1
  • LeoTCK @ LeoTCK:
    telling him that my partner is luke...does he look like someone with such big ne
    eds?
  • LeoTCK @ LeoTCK:
    do you really think I could stand living with someone like luke?
  • LeoTCK @ LeoTCK:
    I suppose luke has "special needs" but he's not my partner, did you just say that to piss me off again?
  • LeoTCK @ LeoTCK:
    besides I had bigger worries today
  • LeoTCK @ LeoTCK:
    but what do you know about that, you won't believe me anyways
  • K3Nv2 @ K3Nv2:
    @BigOnYa can answer that
  • BigOnYa @ BigOnYa:
    BigOnYa already left the chat
  • K3Nv2 @ K3Nv2:
    Biginya
  • BigOnYa @ BigOnYa:
    Auto correct got me, I'm on my tablet, i need to turn that shit off
  • K3Nv2 @ K3Nv2:
    With other tabs open you perv
  • BigOnYa @ BigOnYa:
    I'm actually in my shed, bout to cut 2-3 acres of grass, my back yard.
  • K3Nv2 @ K3Nv2:
    I use to have a guy for that thanks richard
  • BigOnYa @ BigOnYa:
    I use my tablet to stream to a bluetooth speaker when in shed. iHeartRadio, FlyNation
  • K3Nv2 @ K3Nv2:
    While the victims are being buried
  • K3Nv2 @ K3Nv2:
    Grave shovel
  • BigOnYa @ BigOnYa:
    Nuh those goto the edge of the property (maybe just on the other side of)
  • K3Nv2 @ K3Nv2:
    On the neighbors side
    +1
  • BigOnYa @ BigOnYa:
    Yup, by the weird smelly green bushy looking plants.
    K3Nv2 @ K3Nv2: https://www.the-sun.com/news/10907833/self-checkout-complaints-new-target-dollar-general-policies...