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

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Asia81, Jan 12, 2016.

  1. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,134
    2,561
    Nov 15, 2014
    France
    Albi
    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.
     
  2. RainThunder

    RainThunder GBAtemp Regular

    Member
    212
    134
    Jun 22, 2012
    Hanoi
    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
     
    cearp likes this.
  3. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,134
    2,561
    Nov 15, 2014
    France
    Albi
    Thanks, i will try :D
     
  4. Asia81
    OP

    Asia81 In my Ecchi World <3

    Member
    5,134
    2,561
    Nov 15, 2014
    France
    Albi
    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, Jan 13, 2016
  5. RainThunder

    RainThunder GBAtemp Regular

    Member
    212
    134
    Jun 22, 2012
    Hanoi
    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.
     
  6. LITTOMA

    LITTOMA Advanced Member

    Newcomer
    67
    42
    Nov 14, 2014
    Switzerland
    Try make_cia