Hacking (4.x only) CIA CFW Complete Guide

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
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?
 

Queno138

Ravens
Member
Joined
Sep 18, 2010
Messages
2,425
Trophies
0
Location
Luigi's Dark Mansion
XP
1,070
Country
Senegal
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)
 

AHP_person

Well-Known Member
Member
Joined
Nov 2, 2014
Messages
364
Trophies
0
XP
518
Country
United States
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.
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
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.
 

AHP_person

Well-Known Member
Member
Joined
Nov 2, 2014
Messages
364
Trophies
0
XP
518
Country
United States

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
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
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.
 

AHP_person

Well-Known Member
Member
Joined
Nov 2, 2014
Messages
364
Trophies
0
XP
518
Country
United States
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.
 

VerseHell

Well-Known Member
Member
Joined
Jun 29, 2014
Messages
3,076
Trophies
1
Age
30
XP
1,703
Country
France
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.
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
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.
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
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

General chit-chat
Help Users
    BakerMan @ BakerMan: or am i?