ROM Hack [Release] 3DS_CTR_Decryptor-VOiD

  • Thread starter Thread starter Relys
  • Start date Start date
  • Views Views 649,265
  • Replies Replies 2,226
  • Likes Likes 30
I presume you then proceeded to convert cci to 3ds? Were you able to substantially reduce the file size? Having a 128mb .3ds file for a ~4mb rom is ridiculous


Oh I forgot to mention it. actually cci and 3ds are the same format, but makerom produced compact rom.
somehow gateway cannot run trimmed VC roms, so I had to make the rom 128 MB.
 
  • Like
Reactions: cearp
Doesn't seem to work on little-endian GARC files ("CRAG" files), PM me for some example files if you need any.

It's only set up to read/write Pokemon X/Y GARCs; there's too many ~ARC formats that different games use. When two games use the same extension but different format, it's impossible to differentiate when re-building from a folder.

Feel free to fork/mod the source to instead support another game's type.
 
  • Like
Reactions: sailor_moon
Oh I forgot to mention it. actually cci and 3ds are the same format, but makerom produced compact rom.
somehow gateway cannot run trimmed VC roms, so I had to make the rom 128 MB.
i can explain that:

VC use card 2 saving, so it need the bytes at the end for saving. Makerom CAN make the right filesized, but you need to edit the .rsf file like the following:
1) set card2
2)set mediapadding to true

and use the following command to with makerom - alignwr

if you need any help pm me;)
 
I did some dirty GBC-injection job.
(Pokemon silver, korean version)
1. unpack BBB's pokemon rom with ctrtool (which produces un-encrypted exefs.bin, exheader.bin, romfs.bin)
2. inject whatever gbc rom into romfs.bin with hex editor
3. find and edit correct IVFC hash value with hex editor (romfs.bin)
4. modify rsf file
5. with cell9's tools, i was able to recreate cci file

Quick question if I may, and only one at a time;
I've got a hold of a bbb copy of blue and yellow and grabbed the xorpad's from them but the decrypted romfs.bin gives me a "Unknown File" when trying to do anything with ctrtool (the version from a few pages back, and the one linked on the front).
Trying to do anything with the .3ds file just gives a rundown on the rom.
Suggestions as to what I'm doing wrong?
(I've succesfully unpacked PokeX and ALBW btw, so I know it should work)
 
Quick question if I may, and only one at a time;
I've got a hold of a bbb copy of blue and yellow and grabbed the xorpad's from them but the decrypted romfs.bin gives me a "Unknown File" when trying to do anything with ctrtool (the version from a few pages back, and the one linked on the front).
Trying to do anything with the .3ds file just gives a rundown on the rom.
Suggestions as to what I'm doing wrong?
(I've succesfully unpacked PokeX and ALBW btw, so I know it should work)

The BBB repacks are just zero key crypted. You can extract their contents with ctrtool, no need for pads.
 
Quick question if I may, and only one at a time;
I've got a hold of a bbb copy of blue and yellow and grabbed the xorpad's from them but the decrypted romfs.bin gives me a "Unknown File" when trying to do anything with ctrtool (the version from a few pages back, and the one linked on the front).
Trying to do anything with the .3ds file just gives a rundown on the rom.
Suggestions as to what I'm doing wrong?
(I've succesfully unpacked PokeX and ALBW btw, so I know it should work)


You don't need to work hard to decrypt BBB's pokemon rom because their roms are already decrypted state.
Just unpack the rom and use it as they are decrypted.
 
I've got some questions, since there seems to have been lots of progress made since I last checked this thread!

1. Is there a good way to decrypt and extract exeFS now? Using 3DS Explorer to extract the encrypted partitions didn't work on the games I tried - the only tool that did work was getromfs.exe and obviously that's only for RomFS.
2. Can the manuals be converted to PDF somehow?
3. Perhaps the question I want answered the most - is it possible to replace something like the title screen or a still image of a ROM with another image (JPG, PNG, whatever)? I want to post a custom picture to Miiverse that has my Mii/friendcode/website address but of course any legitimate ways of posting custom pictures are blocked, it has to be something that's on-screen. Modifying a game might work...
 
I've got some questions, since there seems to have been lots of progress made since I last checked this thread!

1. Is there a good way to decrypt and extract exeFS now? Using 3DS Explorer to extract the encrypted partitions didn't work on the games I tried - the only tool that did work was getromfs.exe and obviously that's only for RomFS.
......

You can use a fixed version of 3DS Explorer to extract the partitions. Check the utilities download in the first post. Or you can use ctrtool.
 
I've got some questions, since there seems to have been lots of progress made since I last checked this thread!

1. Is there a good way to decrypt and extract exeFS now? Using 3DS Explorer to extract the encrypted partitions didn't work on the games I tried - the only tool that did work was getromfs.exe and obviously that's only for RomFS.
2. Can the manuals be converted to PDF somehow?
3. Perhaps the question I want answered the most - is it possible to replace something like the title screen or a still image of a ROM with another image (JPG, PNG, whatever)? I want to post a custom picture to Miiverse that has my Mii/friendcode/website address but of course any legitimate ways of posting custom pictures are blocked, it has to be something that's on-screen. Modifying a game might work...

1) yes you can do it completely with ctrtool now. the code for extracting exefs is:
ctrtool -p --exefs=exefs.bin 3dsrom.3ds
after decrypting with ctr-decryptor you can use the following command to extract it further:
ctrtool --exefsdir=exefs --decompresscode -t exefs exefs.bin.out

2) i was looking into it, but i don't know or didn't see a proper way to do it. They are saved as .bcma files, which you can look up at 3dbrew.org

3)it is possible , some people here already done it, but it is hard (and atm i dont know how, i only know how to repack roms with an unmodified romfs)
 
3)it is possible , some people here already done it, but it is hard (and atm i dont know how, i only know how to repack roms with an unmodified romfs)


How did you do that? It shouldn't be that different if you modify the contents, unless it screws up some CRCs? I assume you can repack them as "zero key crypted" and that way not have to bother with it
 
How did you do that? It shouldn't be that different if you modify the contents, unless it screws up some CRCs? I assume you can repack them as "zero key crypted" and that way not have to bother with it
you need to fix the ivfc hash blocks to use a modified romfs, the way i'm doing it is using someone else's tool so i cant share that, but either he or someone else will have a tool to automate it released soon no doubt now that enough people know how its done
 
How did you do that? It shouldn't be that different if you modify the contents, unless it screws up some CRCs? I assume you can repack them as "zero key crypted" and that way not have to bother with it
with an unmodified romfs use this command with makerom (can be different a little bit for card2 games):
makerom.exe -f cci -target d -rsf gw.rsf -o 3dsrom.3ds -exheader exheader.bin -code code.bin -icon icon.bin -banner banner.bin -romfs romfs.bin
 
with an unmodified romfs use this command with makerom (can be different a little bit for card2 games):


So I tried extracting the exeFS from Pokémon X and got a fatal error...

Code:
Exception: STATUS_ACCESS_VIOLATION at eip=611222CF
eax=00041810 ebx=80041548 ecx=00000004 edx=800414E4 esi=00041810 edi=00288C20
ebp=00283178 esp=0028316C program=F:\Desktop\3DS Stuff\Decrypted ROMs\Pokémon X\ctrtool.exe, pid 5080, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
00283178  611222CF (00288C20, 00041810, 00000004, 610B57B0)
00288C20  6113D8E5 (00000000, 80041548, 80000000, 00000000)
End of stack trace
Tried in the 3DS Explorer that was linked in the first post, extracted the encrypted partition and used padxorer.exe to decrypt - first chunk of the file looks like this:
".code.......Ìœ+.banner...ž+.Èn..icon."
But ctrtool won't extract it, I get:
ctrtool: unknown option -- decompresscode
Usage: ctrtool [options...] <file>
Tried without that part and just get:
"Unknown file"
Even though my file is named ExeFS.bin.out (tried it uppercase too in case it was case sensitive)
Any ideas?
 
You have to use a newer build of ctrtool.

https://github.com/3DSGuy/Project_CTR


Got a link to a compiled Windows binary? The one I have I grabbed from someone's post, which was an .exe and some DLLs

--Edit--

ninja'd
Do I not need the DLLs with this version?

--Edit 2--

No, you still need the DLLs apparently
 
Got a link to a compiled Windows binary? The one I have I grabbed from someone's post, which was an .exe and some DLLs

--Edit--

ninja'd
Do I not need the DLLs with this version?

--Edit 2--

No, you still need the DLLs apparently



What specific DLL is it looking for? The latest version shouldn't depend on any DLLs :lol:
 

Site & Scene News

Popular threads in this forum