ROM Hack How to build a CIA from (.ncch, .tmd and .tik) ?

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,661
Trophies
3
Age
29
XP
3,525
Country
France
Thanks for help :D
I have 1 .ncch file, 1 .tik, and 1 .tmd, but I don't know how to build a CIA from them.
 

RainThunder

Well-Known Member
Member
Joined
Jun 22, 2012
Messages
212
Trophies
0
Location
Hanoi
XP
351
Country
Normally, just a NCCH file is enough.
Code:
makerom -f cia -target t -o rom.cia -i rom.ncch:0:0

If a NCCH file is encrypted, you might have to add -DSaveSize= option for the CIA to work correctly. Save size can be obtained by taken four bytes at offset 0x19A in tmd (little endian), then divide by 1024.
Code:
makerom -f cia -target t -rsf rom.rsf -o rom.cia -DSaveSize=... -i rom.ncch:0:0
rom.rsf:
Code:
Option:
  MediaFootPadding: true
  EnableCrypt: false
SystemControlInfo:
  SaveDataSize: $(SaveSize)K
 
  • Like
Reactions: cearp

Asia81

Yuri Lover ~
OP
Member
Joined
Nov 15, 2014
Messages
6,661
Trophies
3
Age
29
XP
3,525
Country
France
Normally, just a NCCH file is enough.
Code:
makerom -f cia -target t -o rom.cia -i rom.ncch:0:0

If a NCCH file is encrypted, you might have to add -DSaveSize= option for the CIA to work correctly. Save size can be obtained by taken four bytes at offset 0x19A in tmd (little endian), then divide by 1024.
Code:
makerom -f cia -target t -rsf rom.rsf -o rom.cia -DSaveSize=... -i rom.ncch:0:0
rom.rsf:
Code:
Option:
  MediaFootPadding: true
  EnableCrypt: false
SystemControlInfo:
  SaveDataSize: $(SaveSize)K

I have nothing at 0x19A :/
http://image.noelshack.com/fichiers/2016/02/1452684850-ncch.png
I can build the CIA (It's a SDK title, like devmenu) and install it using your first command, but the CIA doesn't appear on my homemeny (if TitleManager is right, the CIA need to be installed in NAND).
 
Last edited by Asia81,

RainThunder

Well-Known Member
Member
Joined
Jun 22, 2012
Messages
212
Trophies
0
Location
Hanoi
XP
351
Country
I have nothing at 0x19A :/
http://image.noelshack.com/fichiers/2016/02/1452684850-ncch.png
I can build the CIA (It's a SDK title, like devmenu) and install it using your first command, but the CIA doesn't appear on my homemeny (if TitleManager is right, the CIA need to be installed in NAND).
I think the SDK titles are different then regular ones, so my instructions doesn't work.

P/s: When building regular title (not a dev title), you don't need to edit $(SaveSize)K in rom.rsf. -DSaveSize=... (replace ... with the actual save size) is just enough.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Materia_tofu @ Materia_tofu: hey sylv? do you know why gameyob crashes on the EZP?