convert themes cia to use with home menu?

Discussion in '3DS - Homebrew Development and Emulators' started by kamesenin888, Feb 6, 2015.

  1. kamesenin888
    OP

    kamesenin888 GBAtemp Advanced Fan

    Member
    574
    148
    Oct 20, 2007
    im trying to convert a packed themes cia to be able to use with the home menu, specifically the jap ones because most are awesome as base or use them normally, the problem is that i tried this

    You can extract all the NCCH files for each theme using ctrtool:
    Code:
    ctrtool --contents=out file.cia

    This will give you A LOT of files, to make it easier to find the theme you want, work on the file starting with 0000 first, this has all the icons in it. the filenames should start with the IDs of the icons, keeping in mind that they are in hex.

    the process is the same for all the files:

    1. Create ncchinfo.bin using ctrKeyGen from 3DS_Multi_Decryptor (needs modified)
    ( i mod it like this in line 228 i changed this way outName = b'sdmc:/%s.%s.%s.xorpad' % (fh.name, partitionName, sectionName) )
    2. Copy to your 3DS and generate NCCH pad using the Launcher.dat from 3DS_Multi_Decryptor
    3. Extract the RomFS.bin (as encrypted) from the theme file (i used 3DSExplorer)
    4. Copy the resulting xorpad from your 3DS and decrypt the theme using padxorer
    5. Extract the RomFS using ctrtool


    but the ncchinfo.bin doesnt generate xorpads, am i doing something wrong?
     
  2. Shadowtrance

    Shadowtrance GBAtemp Addict

    Member
    2,488
    1,517
    May 9, 2014
    Hervey Bay, Queensland
    Not sure, but your L228 is the same as mine and it works. Only thing for me that's slightly different than the non modified ctrkeygen.py is that it doesn't seem to work if i drag n drop files on it like the original.

    So i have to do it via cmd, for eg: ctrKeyGen2.py out.* and it spits out the ncchinfo.bin.

    Doing it that way i managed to extract all 177 theme files (176 themes + the first one - icons) but my upload speed is terrible so there's no upload happening to go on the other place.

    Check your ncchinfo.bin in a hex editor to see if it's actually got anything in it... eg: this is just 2 of the extracted out.xxxx.xxxx files.

    I extracted everything with ctrtool as well, no 3dsexplorer used anywhere (didn't work).

    ctrtool --contents=out THEME.cia

    ctrtool -p --romfs=romfs.bin

    ctrtool -t romfs --romfsdir=romfsout

    [​IMG]
     
  3. kamesenin888
    OP

    kamesenin888 GBAtemp Advanced Fan

    Member
    574
    148
    Oct 20, 2007
    But when extracting the files with out. * will do all of them at once?