Hacking (4.x only) CIA CFW Complete Guide

ilollo360

Well-Known Member
Newcomer
Joined
Nov 5, 2014
Messages
56
Trophies
0
Age
57
XP
57
Country
Italy
I converted Animal Crossing New Leaf works but when i re open it says that my data is corrupted every time. Why?

This is my RSF
BasicInfo:
Title : "Animal Crossing" #edit
CompanyCode : "01"
ProductCode : "CTR-P-EGDP" #edit
ContentType : Application
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem

Rom:
# Specifies the root path of the file system to include in the ROM.
HostRoot : "decrypted/romfs"


TitleInfo:
UniqueId : 0x0864 #edit
Category : Application

CardInfo:
MediaSize : 1GB # 128MB / 256MB / 512MB / 1GB / 2GB / 4GB #edit
MediaType : Card2 # Card1 / Card2
CardDevice : None # NorFlash(Pick this if you use savedata) / None #Choose None if it's a card2 game

Option:
UseOnSD : true # true if App is to be installed to SD
FreeProductCode : true # Removes limitations on ProductCode
MediaFootPadding : true # If true CCI files are created with padding
EnableCrypt : false # Enables encryption for NCCH and CIA
EnableCompress : true # Compresses exefs code

ExeFs: # these are the program segments from the ELF, check your elf for the appropriate segment names
ReadOnly:
- .rodata
- RO
ReadWrite:
- .data
- RO
Text:
- .init
- .text
- STUP_ENTRY

PlainRegion: # only used with SDK ELFs
- .module_id

AccessControlInfo:
UseExtSaveData : true
ExtSaveDataId: 0x0864 #edit, same as UniqueId
SystemSaveDataId1: 0x00000000 # plaintext exheader
SystemSaveDataId2: 0x00000000 # plaintext exheader
OtherUserSaveDataId1: 0x00000 # plaintext exheader
OtherUserSaveDataId2: 0x00000 # plaintext exheader
OtherUserSaveDataId3: 0x00000 # plaintext exheader
UseOtherVariationSaveData : false

SystemControlInfo:
SaveDataSize: 1MB
RemasterVersion: 0
StackSize: 0x40000

# DO NOT EDIT BELOW HERE OR PROGRAMS WILL NOT LAUNCH (most likely)

AccessControlInfo:
FileSystemAccess:
- Debug
- DirectSdmc
- DirectSdmcWrite

IdealProcessor : 0
AffinityMask : 1

Priority : 16

MaxCpu : 0x9E # Default

CoreVersion : 2
DescVersion : 2

ReleaseKernelMajor : "02"
ReleaseKernelMinor : "33"
MemoryType : Application
HandleTableSize: 512
IORegisterMapping:
- 1ff50000-1ff57fff
- 1ff70000-1ff77fff
MemoryMapping:
- 1f000000-1f5fffff:r
SystemCallAccess:
ArbitrateAddress: 34
Break: 60
CancelTimer: 28
ClearEvent: 25
ClearTimer: 29
CloseHandle: 35
ConnectToPort: 45
ControlMemory: 1
CreateAddressArbiter: 33
CreateEvent: 23
CreateMemoryBlock: 30
CreateMutex: 19
CreateSemaphore: 21
CreateThread: 8
CreateTimer: 26
DuplicateHandle: 39
ExitProcess: 3
ExitThread: 9
GetCurrentProcessorNumber: 17
GetHandleInfo: 41
GetProcessId: 53
GetProcessIdOfThread: 54
GetProcessIdealProcessor: 6
GetProcessInfo: 43
GetResourceLimit: 56
GetResourceLimitCurrentValues: 58
GetResourceLimitLimitValues: 57
GetSystemInfo: 42
GetSystemTick: 40
GetThreadContext: 59
GetThreadId: 55
GetThreadIdealProcessor: 15
GetThreadInfo: 44
GetThreadPriority: 11
MapMemoryBlock: 31
OutputDebugString: 61
QueryMemory: 2
ReleaseMutex: 20
ReleaseSemaphore: 22
SendSyncRequest1: 46
SendSyncRequest2: 47
SendSyncRequest3: 48
SendSyncRequest4: 49
SendSyncRequest: 50
SetThreadPriority: 12
SetTimer: 27
SignalEvent: 24
SleepThread: 10
UnmapMemoryBlock: 32
WaitSynchronization1: 36
WaitSynchronizationN: 37
InterruptNumbers:
ServiceAccessControl:
- APT:U
- $hioFIO
- $hostio0
- $hostio1
- ac:u
- boss:U
- cam:u
- cecd:u
- cfg:u
- dlp:FKCL
- dlp:SRVR
- dsp::DSP
- frd:u
- fs:USER
- gsp::Gpu
- hid:USER
- http:C
- mic:u
- ndm:u
- news:u
- nwm::UDS
- ptm:u
- pxi:dev
- soc:U
- ssl:C
- y2r:u
- ldr:ro
- ir:USER


SystemControlInfo:
Dependency:
ac: 0x0004013000002402L
am: 0x0004013000001502L
boss: 0x0004013000003402L
camera: 0x0004013000001602L
cecd: 0x0004013000002602L
cfg: 0x0004013000001702L
codec: 0x0004013000001802L
csnd: 0x0004013000002702L
dlp: 0x0004013000002802L
dsp: 0x0004013000001a02L
friends: 0x0004013000003202L
gpio: 0x0004013000001b02L
gsp: 0x0004013000001c02L
hid: 0x0004013000001d02L
http: 0x0004013000002902L
i2c: 0x0004013000001e02L
ir: 0x0004013000003302L
mcu: 0x0004013000001f02L
mic: 0x0004013000002002L
ndm: 0x0004013000002b02L
news: 0x0004013000003502L
nim: 0x0004013000002c02L
nwm: 0x0004013000002d02L
pdn: 0x0004013000002102L
ps: 0x0004013000003102L
ptm: 0x0004013000002202L
ro: 0x0004013000003702L
socket: 0x0004013000002e02L
spi: 0x0004013000002302L
ssl: 0x0004013000002f02L
CommonHeaderKey:
D: |
jL2yO86eUQnYbXIrzgFVMm7FVze0LglZ2f5g+c42hWoEdnb5BOotaMQPBfqt
aUyAEmzQPaoi/4l4V+hTJRXQfthVRqIEx27B84l8LA6Tl5Fy9PaQaQ+4yRfP
g6ylH2l0EikrIVjy2uMlFgl0QJCrG+QGKHftxhaGCifdAwFNmiZuyJ/TmktZ
0RCb66lYcr2h/p2G7SnpKUliS9h9KnpmG+UEgVYQUK+4SCfByUa9PxYGpT0E
nw1UcRz0gsBmdOqcgzwnAd9vVqgb42hVn6uQZyAl+j1RKiMWywZarazIR/k5
Lmr4+groimSEa+3ajyoIho9WaWTDmFU3mkhA2tUDIQ==
Exponent: |
AQAB
Modulus: |
zwCcsyCgMkdlieCgQMVXA6X2jmb1ICjup0Q+jk/AydPkOgsx7I/MjUymFEkU
vgXBtCKtzh3NKXtFFuW51tJ60GPOabLKuG0Qm5li+UXALrWhzWuvd5vv2FZI
dTQCbrq/MFS/M02xNtwqzWiBjE/LwqIdbrDAAvX4HGy0ydaQJ1DKYeQeph5D
lAGBw2nQ4izXhhuLaU3w8VQkIJHdhxIKI5gJY/20AGkG0vHD553Mh5kBINrWp
CRYmmJS8DCYbAiQtKbkeUfzHViGTZuj6PwaY8Mv39PGO47a++pt45IUyCEs4/
LjMS72cyfo8tU4twRGp76SFGYejYj3wGC1f/POQw==
Signature: |
BOPR0jL0BOV5Zx502BuPbOvi/hvOq5ID8Dz1MQfOjkey6FKP/6cb4f9YXpm6c
ZCHAZLo0GduKdMepiKPUq1rsbbAxkRdQdjOOusEWoxNA58x3E4373tCAhlqM2
DvuQERrIIQ/XnYLV9C3uw4efZwhFqog1jvVyoEHpuvs8xnYtGbsKQ8FrgLwXv
pOZYy9cSgq+jqLy2D9IxiowPcbq2cRlbW9d2xlUfpq0AohyuXQhpxn7d9RUor
9veoARRAdxRJK12EpcSoEM1LhTRYdJnSRCY3x3p6YIV3c+l1sWvaQwKt0sZ/U
8TTDx2gb9g7r/+U9icneu/zlqUpSkexCS009Q==
Descriptor: |
AP///wAABAACAAAAAAAFGJ4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiIAAAAAAAABBUFQ6VQAAACRo
aW9GSU8AJGhvc3RpbzAkaG9zdGlvMWFjOnUAAAAAYm9zczpVAABjYW06dQAA
AGNlY2Q6dQAAY2ZnOnUAAABkbHA6RktDTGRscDpTUlZSZHNwOjpEU1BmcmQ6
dQAAAGZzOlVTRVIAZ3NwOjpHcHVoaWQ6VVNFUmh0dHA6QwAAbWljOnUAAABu
ZG06dQAAAG5ld3M6dQAAbndtOjpVRFNwdG06dQAAAHB4aTpkZXYAc29jOlUA
AABzc2w6QwAAAHkycjp1AAAAbGRyOnJvAABpcjpVU0VSAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAABOn/rw/7//8ec/APIA8JH/APaR/1D/gf9Y/4H/cP+B/3j/gf8B
AQD/AAIA/iECAPz/////////////////////////////////////////////
////////////////////////////////////////AAAAAAAAAAAAAAAAAAAA
AAADAAAAAAAAAAAAAAAAAAI=
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
I have a problem with the ocarina of time, it freezes on me nintendo logo, you can see if there is something wrong?

BasicInfo:
Title : "CtrApp"
CompanyCode : "01"
ProductCode : "CTR-P-AQEP"
ContentType : Application # Application / SystemUpdate / Manual / Child / Trial
Logo : Nintendo # Nintendo / Licensed / Distributed / iQue / iQueForSystem

TitleInfo:
UniqueId : 0x0336
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: 0x0336 # same as UniqueId
SystemSaveDataId1: 0x00033600 # plaintext exheader
SystemSaveDataId2: 0x00033600 # plaintext exheader
OtherUserSaveDataId1: 0x33600 # plaintext exheader
OtherUserSaveDataId2: 0x33600 # plaintext exheader
OtherUserSaveDataId3: 0x33600 # plaintext exheader
UseOtherVariationSaveData : false

SystemControlInfo:
SaveDataSize: 1M # plaintext exheader dejar en 1M
RemasterVersion: 0 # plaintext exheader version dejarla como quieras
StackSize: 0x00004000 # plaintext exheader
JumpId: 0x0004000000033600L # plaintext exheader (<full UniqueID>L) ID del juego



AccescontrolInfo is always the game id?


thanks
RSF looks good, minus your lack of a game title, try these 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 Install.cia
 

kamo

Well-Known Member
Member
Joined
Aug 7, 2006
Messages
180
Trophies
0
Age
46
Website
Visit site
XP
413
Country
Italy
In your rsf file what did you change to get it to work? cause that can be my only issue as far as I can tell.

Well, I just followed his instructions to get ALBW to run. But now I want to try SMTIV which and I need a way to make it region free.
 

Vappy

Well-Known Member
Member
Joined
May 23, 2012
Messages
1,508
Trophies
2
XP
2,613
Country
Edit: It should be something like this for enabling region free:

It's read in littleendian, so you'd put it in FFFFFF7F.

Also hey, I'm slowly patching together working .rsfs for the Dev apps. Sharing .rsf files doesn't seem to be illegal in the eyes of the mods, so I could post them here?

7376f62b40.jpg
 
  • Like
Reactions: Margen67

Reecey

Mario 64 (favorite game of all time)
Member
Joined
Mar 7, 2010
Messages
5,870
Trophies
2
Location
At Home :)
XP
4,475
Country
I haven't looked at how VerseHell has his scripts setup, so I can't help much there. If you retry using the process and files from my signature, I can help you a lot more.

it wont work everything I do it just ends up saying this, I've tried everything all is correct just wont have it:
Untitled_4.jpg
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
Now I'm confused, what exactly do I have to change for regionfree SMTIV?
I'll let you know when I finish converting Hatsune Miku Project Mirai 2, unless someone beats me to the punch.
It's read in littleendian, so you'd put it in FFFFFF7F.

Also hey, I'm slowly patching together working .rsfs for the Dev apps. Sharing .rsf files doesn't seem to be illegal in the eyes of the mods, so I could post them here?

I'm editing in bigendian, so it's right for me. Also, I can't see it being an issue. .rsf files are just configuration files, they don't have anything illegal in them, unless you're counting game IDs as illegal.
 
  • Like
Reactions: kamo

GibWaffles

Active Member
Newcomer
Joined
Nov 6, 2014
Messages
42
Trophies
0
XP
116
Country
Slovenia
I finished step 5 of the guide (Formatning the Emunand), but when I take the SD out of the 3DS there are no folders like step 6 specifies (aside form the 3DS folder in the root directory). I might be doing something wrong. Am I supposed to take the SD card out before exiting the GW menu or do I have to launch classic mode and go to system settings etc. or something completely different?
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
I finished step 5 of the guide (Formatning the Emunand), but when I take the SD out of the 3DS there are no folders like step 6 specifies (aside form the 3DS folder in the root directory). I might be doing something wrong. Am I supposed to take the SD card out before exiting the GW menu or do I have to launch classic mode and go to system settings etc. or something completely different?
Delete the "Nintendo 3DS" folder. Turn on your 3DS. Insert the SD Card into your 3DS, wait for it to generate the SD Card files, continue with the guide.
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
I'd appreciate if someone could help me find updated 32 bits builds of ctrtool and makerom.
Ctrtool doesn't have different versions, you can't even build it with -m32 or -m64, it just breaks. makerom32, however, is included in the package supplied in my guide, found in my signature.
 

Gadorach

Electronics Engineering Technologist
Member
Joined
Jan 22, 2014
Messages
970
Trophies
0
Location
Canada
XP
956
Country
Canada
It hang when "Nintendo 3DS" animation start :/
Well, I'm not sure what save size that game uses, but it might be an issue with save size all the same. Change it to 1M and try again. Make sure your -desc app:X is set to the right SDK version in your switches as well.
 
  • Like
Reactions: pLaYeR^^

GibWaffles

Active Member
Newcomer
Joined
Nov 6, 2014
Messages
42
Trophies
0
XP
116
Country
Slovenia
Gadorach,
I let it generate the files, but I still don't have those folders. Should I create them myself?

Also how do I reply to posts.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: I need shrooms to read his comments