Hacking (4.x only) CIA CFW Complete Guide

  • Thread starter Thread starter palantine
  • Start date Start date
  • Views Views 545,993
  • Replies Replies 2,082
  • Likes Likes 29
Using your rsf file and switches I found earlier in this thread for ALBW, I get an error when install the cia.
And all your files were named correctly to match the switches, or you modified the filenames in the switches to match your own?
 
Having issues changing games from cart 1 to cart 2, for save transfer.

In other news,
my rsf that worked for Pokemon X, which can also go online! hehe
(in spoiler)
Code:
BasicInfo:
  Title                  : "Pokemon X"
  CompanyCode            : "01"
  ProductCode            : "CTR-P-EKJA"
  ContentType            : Application
  Logo                    : Nintendo
 
TitleInfo:
  UniqueId                : 0x055D
  Category                : Application
 
Option:
  UseOnSD                : true 
  EnableCompress          : true 
  FreeProductCode        : true 
  EnableCrypt            : true 
  MediaFootPadding        : true 
 
AccessControlInfo:
  UseExtSaveData : true
  ExtSaveDataId: 0x055D
  SystemSaveDataId1: 0x00000000 # plaintext exheader
  SystemSaveDataId2: 0x00000000 # plaintext exheader
  OtherUserSaveDataId1: 0x00000 # plaintext exheader
  OtherUserSaveDataId2: 0x00000 # plaintext exheader
  OtherUserSaveDataId3: 0x00000 # plaintext exheader
  UseOtherVariationSaveData : false
 
SystemControlInfo:
  SaveDataSize: 1M # plaintext exheader
  RemasterVersion: 0 # plaintext exheader
  StackSize: 0x00040000 # plaintext exheader
  JumpId: 0x0004000000055D00L # plaintext exheader (<full UniqueID>L)
 
Sorry, I shouldn't have said that. I've been in your shoes before not knowing if the other person is smart enough to do the most basic steps.
No harm done, everyone snaps sometimes, especially when they're frustrated.
 
Try this instead:

Code:
BasicInfo:
  Title                  : "Cave Story 3D"
  CompanyCode            : "01"
  ProductCode            : "CTR-P-ACVE"
  ContentType            : Application # Application / SystemUpdate / Manual / Child / Trial
  Logo                    : Licensed # Nintendo / Licensed / Distributed / iQue / iQueForSystem
 
TitleInfo:
  UniqueId                : 0x04a1
  Category                : Application
 
Option:
  UseOnSD                : true # true if App is to be #installed to SD
  EnableCompress          : true # Compresses exefs code
  FreeProductCode        : true # Removes limitations on ProductCode
  EnableCrypt            : false # Enables encryption for NCCH and CIA
  MediaFootPadding        : true # If true CCI files are created with padding
 
AccessControlInfo:
  ExtSaveDataId: 0xb04a1 # same as UniqueId
  SystemSaveDataId1: 0x0004a100 # plaintext exheader
  SystemSaveDataId2: 0x0004a100 # plaintext exheader
  OtherUserSaveDataId1: 0x4a100 # plaintext exheader
  OtherUserSaveDataId2: 0x4a100 # plaintext exheader
  OtherUserSaveDataId3: 0x4a100 # plaintext exheader
  UseOtherVariationSaveData : false
 
SystemControlInfo:
  SaveDataSize: 1M # plaintext exheader
  RemasterVersion: 0 # plaintext exheader
  StackSize: 0x00040000 # plaintext exheader
  JumpId: 0x000400000004a100L # plaintext exheader (<full UniqueID>L)

With these switches:

Code:
makerom -f cia -rsf cia.rsf -target t -desc app:1 -icon icon.bin -banner banner.bin -exefslogo -code code.bin -exheader decrypted_exheader.bin -romfs decrypted_romfs.bin -o CaveStory.cia

Of course, edit to fit your filenames.

And use the latest MakeROM, found here: http://www.mediafire.com/download/868d8yykqjsequ1/CTR.rar

Still nothing, I always get an "SD card removed" error when trying to launch my CIAs, it's kind of frustrating. It may be my version of makerom, the one you linked is 64bit though, I have a 32bit Computer.
 
Still nothing, I always get an "SD card removed" error when trying to launch my CIAs, it's kind of frustrating. It may be my version of makerom, the one you linked is 64bit though, I have a 32bit Computer.
I'll recompile a 32bit version, give me a few minutes.
 

Thanks, I'll try it and report back. Crossing my fingers.

EDIT: It failed...
Here's exactly what I'm doing:
1. VOiD Decryptor
2. ctrtool --decompresscode -t exefs --exefsdir=out exefs.bin
3. makerom -f cia -target t -desc app:4 -rsf CIA.rsf -romfs romfs.bin -exheader exh.bin -code code.bin -logo logo.bin -banner banner.bin -icon icon.bin -o DoukutsuMonogatari.cia
Code:
BasicInfo:
  Title                  : "Cave Story 3D"
  CompanyCode            : "01"
  ProductCode            : "CTR-P-ACVE"
  ContentType            : Application # Application / SystemUpdate / Manual / Child / Trial
  Logo                    : Licensed # Nintendo / Licensed / Distributed / iQue / iQueForSystem
 
TitleInfo:
  UniqueId                : 0x04a1
  Category                : Application
 
Option:
  UseOnSD                : true # true if App is to be #installed to SD
  EnableCompress          : true # Compresses exefs code
  FreeProductCode        : true # Removes limitations on ProductCode
  EnableCrypt            : false # Enables encryption for NCCH and CIA
  MediaFootPadding        : true # If true CCI files are created with padding
 
AccessControlInfo:
  ExtSaveDataId: 0xb04a1 # same as UniqueId
  SystemSaveDataId1: 0x0004a100 # plaintext exheader
  SystemSaveDataId2: 0x0004a100 # plaintext exheader
  OtherUserSaveDataId1: 0x4a100 # plaintext exheader
  OtherUserSaveDataId2: 0x4a100 # plaintext exheader
  OtherUserSaveDataId3: 0x4a100 # plaintext exheader
  UseOtherVariationSaveData : false
 
SystemControlInfo:
  SaveDataSize: 1M # plaintext exheader
  RemasterVersion: 0 # plaintext exheader
  StackSize: 0x00040000 # plaintext exheader
  JumpId: 0x000400000004a100L # plaintext exheader (<full UniqueID>L)
4. transfer to SD
5. Install with DevMenu2x
6. Get SD Card error upon boot of game
 
Thanks, I'll try it and report back. Crossing my fingers.

EDIT: It failed...
Here's exactly what I'm doing:
1. VOiD Decryptor
2. ctrtool --decompresscode -t exefs --exefsdir=out exefs.bin
3. makerom -f cia -target t -desc app:4 -rsf CIA.rsf -romfs romfs.bin -exheader exh.bin -code code.bin -logo logo.bin -banner banner.bin -icon icon.bin -o DoukutsuMonogatari.cia
Code:
BasicInfo:
  Title                  : "Cave Story 3D"
  CompanyCode            : "01"
  ProductCode            : "CTR-P-ACVE"
  ContentType            : Application # Application / SystemUpdate / Manual / Child / Trial
  Logo                    : Licensed # Nintendo / Licensed / Distributed / iQue / iQueForSystem
 
TitleInfo:
  UniqueId                : 0x04a1
  Category                : Application
 
Option:
  UseOnSD                : true # true if App is to be #installed to SD
  EnableCompress          : true # Compresses exefs code
  FreeProductCode        : true # Removes limitations on ProductCode
  EnableCrypt            : false # Enables encryption for NCCH and CIA
  MediaFootPadding        : true # If true CCI files are created with padding
 
AccessControlInfo:
  ExtSaveDataId: 0xb04a1 # same as UniqueId
  SystemSaveDataId1: 0x0004a100 # plaintext exheader
  SystemSaveDataId2: 0x0004a100 # plaintext exheader
  OtherUserSaveDataId1: 0x4a100 # plaintext exheader
  OtherUserSaveDataId2: 0x4a100 # plaintext exheader
  OtherUserSaveDataId3: 0x4a100 # plaintext exheader
  UseOtherVariationSaveData : false
 
SystemControlInfo:
  SaveDataSize: 1M # plaintext exheader
  RemasterVersion: 0 # plaintext exheader
  StackSize: 0x00040000 # plaintext exheader
  JumpId: 0x000400000004a100L # plaintext exheader (<full UniqueID>L)
4. transfer to SD
5. Install with DevMenu2x
6. Get SD Card error upon boot of game
I don't have the Japanese version myself, but I can try it with my US cart. I'll let you know if I get it working.
 
I don't have the Japanese version myself, but I can try it with my US cart. I'll let you know if I get it working.

Mine's US, I just changed the CIA name. If you get it working please give detailed instructions, because I can't figure this out for the life of me. Thanks for helping me.
 
It works fine with the CFW.




Thanks, I got Pokémon Y to work with your RSF file (edited slightly to reflect Y instead of X). Wish I could grab the new 1.3 patch..Oh well.

Edit: Trying to save forces Pokémon Y to close and reboot the 3DS. Do you have saving working?


Yes save works here. I'll try with pokemon y now.
 
Mine's US, I just changed the CIA name. If you get it working please give detailed instructions, because I can't figure this out for the life of me. Thanks for helping me.
I'm installing it now, I'll let you know if it works for me or not as soon as it's installed. If it works, I'll give you exactly what I used to make it.
 
Thanks, I got Pokémon Y to work with your RSF file (edited slightly to reflect Y instead of X). Wish I could grab the new 1.3 patch..Oh well.
Well, I just decrypted my Pokemon Y update data. I just have to repack it into a CIA and test.
 
Got it, thanks again.
Worked just fine, here's the stuff:

.rsf
Code:
BasicInfo:
  Title                  : "Cave Story - USA"
  CompanyCode            : "01"
  ProductCode            : "CTR-P-ACVE"
  ContentType            : Application # Application / SystemUpdate / Manual / Child / Trial
  Logo                    : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem
 
TitleInfo:
  UniqueId                : 0x04a1
  Category                : Application
 
Option:
  UseOnSD                : true # true if App is to be #installed to SD
  EnableCompress          : true # Compresses exefs code
  FreeProductCode        : true # Removes limitations on ProductCode
  EnableCrypt            : false # Enables encryption for NCCH and CIA
  MediaFootPadding        : true # If true CCI files are created with padding
 
AccessControlInfo:
  ExtSaveDataId: 0xb04a1 # same as UniqueId
  SystemSaveDataId1: 0x0004a100 # plaintext exheader
  SystemSaveDataId2: 0x0004a100 # plaintext exheader
  OtherUserSaveDataId1: 0x4a100 # plaintext exheader
  OtherUserSaveDataId2: 0x4a100 # plaintext exheader
  OtherUserSaveDataId3: 0x4a100 # plaintext exheader
  UseOtherVariationSaveData : false
 
SystemControlInfo:
  SaveDataSize: 1M # plaintext exheader
  RemasterVersion: 0 # plaintext exheader
  StackSize: 0x00040000 # plaintext exheader
  JumpId: 0x000400000004a100L # plaintext exheader (<full UniqueID>L)

switches

Code:
makerom -f cia -rsf cia.rsf -target t -desc app:2 -icon icon.bin -banner banner.bin -exefslogo -code code.bin -exheader decrypted_exheader.bin -romfs decrypted_romfs.bin -o CaveStory.cia
 

Site & Scene News

Popular threads in this forum