H3 Files?

Discussion in 'Wii U - Hacking & Backup Loaders' started by DanTheMan827, Oct 30, 2016.

  1. DanTheMan827
    OP

    DanTheMan827 GBAtemp Advanced Fan

    Member
    630
    394
    May 3, 2015
    United States
    Wisconsin
    Is there any better way to detect if an app file has a corresponding h3 file on NUS rather than checking the server if they exist?

    I saw something about if the content type in the TMD is 0x2003 that it has one but that doesn't appear to always be the case...
     
  2. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    18,559
    8,911
    Oct 27, 2002
    France
    Engine room, learning
    what do you mean not always the case?
    did you find a app with a h3 which doesn't have the type set to 0x2003 ?

    do you have an easy way to check each type? an extractor, or content lister?
    I made a template for HexWorkshop, if you want.
    when you add the template to your tmd, be sure to select the "wiiu" tmd, and lock it to 0x00 (start of the file)

    from the screenshot in the linked thread, you can see the 3 last contents (0x1c, 04 and 05) should have a .h3
     
    Pachee likes this.
  3. cearp

    cearp the ticket master

    Member
    7,550
    4,813
    May 26, 2008
    Tuvalu
    since nintendo could change what content types need h3 files with an update, for example add a new content type with a new game, vc game, etc... (possibly, although i doubt they would do that)
    i think it is safest to just try and download for each content, it's not really ugly, it's so simple so, why not :)

    but i agree it would be nice to be 100% certain, but i don't want to spend the time testing until i am confident, and even so, my above sentence could end up true.
     
    Last edited by cearp, Oct 31, 2016
    PR0r likes this.
  4. DanTheMan827
    OP

    DanTheMan827 GBAtemp Advanced Fan

    Member
    630
    394
    May 3, 2015
    United States
    Wisconsin
    According to crediar it's a bit flag of 0x2 on the content type

    So the code would be something like this

    Code:
    ((cType & 0x2) > 0)
    The Minecraft update is an example that 0x2003 isn't the only type with a h3 file
     
    Last edited by DanTheMan827, Oct 31, 2016
  5. ajd4096

    ajd4096 GBAtemp Regular

    Member
    176
    187
    Feb 17, 2009
    It seems to be that bit flag, I haven't found any counter-examples yet.
    I figured out how the .h3 hashes work in nuspy, see the source for details.
     
  6. cearp

    cearp the ticket master

    Member
    7,550
    4,813
    May 26, 2008
    Tuvalu
    yeah that is what jnus does, i'm not sure about nusgrabber, i guess so, that jnus takes from that.
    but i'll keep it ugly for now :) confuse the anthropologists in 400 years time.
     
    Last edited by cearp, Oct 31, 2016
  7. dozvgkka69

    dozvgkka69 Member

    Newcomer
    20
    11
    Oct 30, 2016
    Canada
    Hey @DanTheMan827 - in next day-two I'll test bunch of titles (both base game and updates). Whatever happens I'll provide you with test report - if anything failed using your awesome uTikDownloadhelper.