[Release] Theme Name Extractor (ContentInfoArchive.bin extractor)

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by cearp, Jan 29, 2015.

  1. cearp
    OP

    cearp the ticket master

    Member
    7,521
    4,778
    May 26, 2008
    Tuvalu
    Ok here is something nice (but not super important for everyone) - it extracts the names and content ids of the themes stored in the 'control content', in theme dlc.
    With the control/header/index theme dlc file, extract the romfs, get the contentinfoarchive file and input it into this tool, and you can get output like:
    Warning: Spoilers inside!
     

    Attached Files:

    I pwned U!, liomajor and descac like this.
  2. cearp
    OP

    cearp the ticket master

    Member
    7,521
    4,778
    May 26, 2008
    Tuvalu
    ok here is a 'fixed' version, updated to support when there are more than 255 themes/when the content number is larger than 255.
     

    Attached Files:

  3. d0k3

    d0k3 3DS Homebrew Legend

    Member
    2,629
    2,651
    Dec 3, 2004
    Gambia, The

    It doesn't work with any of the attached ContentInfoArchive files. Error message is this:
    command.png
     

    Attached Files:

  4. cearp
    OP

    cearp the ticket master

    Member
    7,521
    4,778
    May 26, 2008
    Tuvalu
    Hmm I only tested with Japanese ones, I'll have a look
     
  5. d0k3

    d0k3 3DS Homebrew Legend

    Member
    2,629
    2,651
    Dec 3, 2004
    Gambia, The
    Thank you! Do you think this could also be modified to automatically rename the theme folders as generated by Kamesin888s script (best for the new, automated version, not for the one with the numbered folders)? Just asking, I might try the modification myself later on, but I have never coded anything in Python before.
     
  6. cearp
    OP

    cearp the ticket master

    Member
    7,521
    4,778
    May 26, 2008
    Tuvalu
    all my tool does is extract the names, it does not create/rename anything.
    you only need to decrypt one content to get the names, you don't need any of the actual themes.
     
    d0k3 likes this.
  7. d0k3

    d0k3 3DS Homebrew Legend

    Member
    2,629
    2,651
    Dec 3, 2004
    Gambia, The
    I know :). Still, I wonder about how to use that list to rename the theme folders without any additional user interaction.
     
  8. cearp
    OP

    cearp the ticket master

    Member
    7,521
    4,778
    May 26, 2008
    Tuvalu
    maybe some of the characters are not windows filesystem friendly, i'm not sure.
    you could easily edit it to make a folder for each item though