ROM Hack 3DS romfs.bin extraction

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States
Can someone post a proper 3DS romfs.bin extraction tutorial? I get to the point with every single decrypting tool to where it dumps the contents of the exefs.bin and romfs.bin files. Yet only the exefs files are extracted from exefs.bin, romfs.bin does not get its files extracted at all. Yes everything has been decrypted before attempting. I am using Pokemon Omega Ruby because I want to use pk3ds to edit a few things, but i have no way of doing that since my romfs.bin won't extract its files. Can someone please help me?
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
ctrtool -x --romfsdir=romfs romfs.bin

The command above will extract your ROMFS.BIN is the file is decrypted.

Code:
@echo off

ctrtool -x --romfsdir=romfs_ext romfs.bin

pause
exit

Copy-paste this into notepad, save it has a BAT file, and run it in the same directory where ROMFS.BIN is, along with ctrtool.exe.
 

Asia81

Yuri Lover ~
Member
Joined
Nov 15, 2014
Messages
6,656
Trophies
3
Age
29
XP
3,494
Country
France
ctrtool -p --exheader=DecryptedExHeader.bin %Name%.3ds
ctrtool -p --exefs=DecryptedExeFS.bin %Name%.3ds
ctrtool -p --romfs=DecryptedRomFS.bin %Name%.3ds

ctrtool.exe -t romfs --romfsdir=./romfs DecryptedRomFS.bin
ctrtool.exe -t exefs --exefsdir=./exe DecryptedExeFS.bin --decompresscode
 
  • Like
Reactions: DesuIsSparta

Roxerism

Well-Known Member
Member
Joined
May 10, 2015
Messages
101
Trophies
0
Age
25
XP
200
Country
There's this batch file in Asia81's kit that takes the romfs from the .3ds file. I recommend it :)


(The name is "hackingtoolkit" I think...)
 

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States
I have tried everything all of you have suggested. The Romfs.bin is indeed decrypted. Yet the problem is still happening :/ Wherever I use the command lines that you have all posted, The window auto closes after a second and then will not let me do it again unless I restart my laptop.. Even with all of the "Hack Packs" and decryption tools, the romfs never extracts its files :( Should I try this on a different computer?
 

daxtsu

Well-Known Member
Member
Joined
Jun 9, 2007
Messages
5,627
Trophies
2
XP
5,194
Country
Antarctica
Wherever I use the command lines that you have all posted, The window auto closes after a second and then will not let me do it again unless I restart my laptop..

How are you trying to run the commands? Command-line programs aren't meant to be double-clicked. They're meant to be run from an actual terminal window (aka a command prompt/"dos" box). If you're double clicking them, consider instead opening cmd from the start menu and navigating to the folder with those exe files in it, then running the commands that way (or, alternatively, make sure you have no files selected in the folder you're in, hold Shift, and then right click, and an option that says "Open Command Prompt Here" should show up).
 
  • Like
Reactions: Glorbznar

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
I have tried everything all of you have suggested. The Romfs.bin is indeed decrypted. Yet the problem is still happening :/ Wherever I use the command lines that you have all posted, The window auto closes after a second and then will not let me do it again unless I restart my laptop.. Even with all of the "Hack Packs" and decryption tools, the romfs never extracts its files :( Should I try this on a different computer?

The command BATCH I gave you above has a PAUSE there for a reason...
It shouldn't be closing by itself. It needs a key press to close...
If it's indeed closing automatically, something else must be wrong...

You sure you are putting both files (ROMFS.BIN AND ctrtool.exe) in the same directory, along with the BAT file? (not .BAT.TXT, remember this)

I'm not sure if CTRTOOL needs anything else extra installed, like VC Redist or something...

UPDATE: Here: http://www23.zippyshare.com/v/MqChs2df/file.html

Extract this, put the ROMFS.BIN inside the folder along with the already present EXE, BAT and DLL, and double-click the BAT to extract the ROMFS.
It should work flawlessly.

That RAR file contains: ctrtool, DLL required and the BAT file I pasted in post above.
 
Last edited by MDashK,

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States
The command BATCH I gave you above has a PAUSE there for a reason...
It shouldn't be closing by itself. It needs a key press to close...
If it's indeed closing automatically, something else must be wrong...

You sure you are putting both files (ROMFS.BIN AND ctrtool.exe) in the same directory, along with the BAT file? (not .BAT.TXT, remember this)

I'm not sure if CTRTOOL needs anything else extra installed, like VC Redist or something...

UPDATE: Here: http://www23.zippyshare.com/v/MqChs2df/file.html

Extract this, put the ROMFS.BIN inside the folder along with the already present EXE, BAT and DLL, and double-click the BAT to extract the ROMFS.
It should work flawlessly.

That RAR file contains: ctrtool, DLL required and the BAT file I pasted in post above.
I have done what you said and it tells me two things. "Unknown file. Press any key to continue..." & "ctrtool' is not recognized as an internal or external command,operable program or batch file. Press any key to continue . . ." Im going to try this on my desktop to see if that will help with this issue
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
I have done what you said and it tells me two things. "Unknown file. Press any key to continue..." & "ctrtool' is not recognized as an internal or external command,operable program or batch file. Press any key to continue . . ." Im going to try this on my desktop to see if that will help with this issue

Hmmm.... The "unknown file" error message is from ctrtool... But that usually happens when the ROMFS.BIN file is encrypted... OR, it's damaged somehow...

The not recognized error is weird, because, if he ran ctrtool to be able to spit out the unknown file error, and the BAT command only requests ctrtool once... Why is he giving you that error as a follow up? (Running BAT as admin???)

Anyways, try these things:

1) Run this inside a folder, but in a drive or USB pen, OR somewhere that does not need Administrator privileges. Example: D: instead of C:
2) DO NOT RUN THIS AS ADMINISTRATOR MODE. It may give unwanted results... It happened to me at least a couple of times.

Try these and let me know. The errors you are getting may be related to that, if the case applies.
 

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States
Hmmm.... The "unknown file" error message is from ctrtool... But that usually happens when the ROMFS.BIN file is encrypted... OR, it's damaged somehow...

The not recognized error is weird, because, if he ran ctrtool to be able to spit out the unknown file error, and the BAT command only requests ctrtool once... Why is he giving you that error as a follow up? (Running BAT as admin???)

Anyways, try these things:

1) Run this inside a folder, but in a drive or USB pen, OR somewhere that does not need Administrator privileges. Example: D: instead of C:
2) DO NOT RUN THIS AS ADMINISTRATOR MODE. It may give unwanted results... It happened to me at least a couple of times.

Try these and let me know. The errors you are getting may be related to that, if the case applies.
Thanks for the help. I was finally able to see the issue.. It says my romfs, that is decrypted, is corrupt :(
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
I've had issues with rxTools, that's why I don't use it anymore. I kept getting "S" files and even failing to try to decrypt at all stating the ncchinfo file was to small/big, etc etc... So I gave up on that one...
Did you have enough free space in your SD card to decrypt everything and not fail?
 

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States
I've had issues with rxTools, that's why I don't use it anymore. I kept getting "S" files and even failing to try to decrypt at all stating the ncchinfo file was to small/big, etc etc... So I gave up on that one...
Did you have enough free space in your SD card to decrypt everything and not fail?
I have a 32gb sd card. So yea, way more than enough space :lol:
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
Well... I'm fresh out of ideas...

What I find odd is being able to extract all the content and not getting decryption errors...

Have you tried to extract EXEFS.BIN to see if it extracts OK?

Code:
ctrtool.exe -t exefs --exefsdir=./exe exefs.bin --decompresscode
or
Code:
ctrtool.exe -t exefs --exefsdir=./exe_noD exefs.bin
for no decompression of CODE.BIN

If it extracts OK and you can, for example, open the banner fil in 3dsexplorer, it means everything is decrypted...

I'm suggesting this just to triple check if the issue is in fact the decryption part.
 
Last edited by MDashK,

nero99

Well-Known Member
OP
Member
Joined
Sep 18, 2014
Messages
3,135
Trophies
1
Age
31
XP
3,729
Country
United States
Well... I'm fresh out of ideas...

What I find odd is being able to extract all the content and not getting decryption errors...

Have you tried to extract EXEFS.BIN to see if it extracts OK?

Code:
ctrtool.exe -t exefs --exefsdir=./exe exefs.bin --decompresscode
or
[/code]ctrtool.exe -t exefs --exefsdir=./exe_noD exefs.bin[/code] for no decompression of CODE.BIN

If it extracts OK and you can, for example, open the banner fil in 3dsexplorer, it means everything is decrypted...

I'm suggesting this just to triple check if the issue is in fact the decryption part.
They are decrypted, but corrupt as well (stated by 3dsExplorer).. Guess Ill try all decryption methods again to see if it'll work this time around. Thanks for all the help. At least now I know the problem >.>
 

MDashK

Well-Known Member
Member
Joined
Jul 22, 2011
Messages
281
Trophies
1
Location
Internetus Exploratis
Website
www.mixwaves.net
XP
746
Country
They are decrypted, but corrupt as well (stated by 3dsExplorer).. Guess Ill try all decryption methods again to see if it'll work this time around. Thanks for all the help. At least now I know the problem >.>
Even if the files are decrypted, 3dsexplorer will give that error...

I have had that problem already too, and the EXEFS and ROMFS we're correctly decrypted.

"Error: CRC Error or Corrupt Save File". Right? When trying to open EXEFS or ROMFS?
 
Last edited by MDashK,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.