Hacking H3 Files?

DanTheMan827

Well-Known Member
OP
Member
Joined
May 3, 2015
Messages
639
Trophies
0
Age
31
Location
Wisconsin
XP
600
Country
United States
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...
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,518
Trophies
2
Age
43
Location
Engine room, learning
XP
14,795
Country
France
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
 
  • Like
Reactions: Pachee

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,542
Trophies
1
XP
7,439
Country
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,
  • Like
Reactions: PR0r

DanTheMan827

Well-Known Member
OP
Member
Joined
May 3, 2015
Messages
639
Trophies
0
Age
31
Location
Wisconsin
XP
600
Country
United States
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,

ajd4096

Well-Known Member
Member
Joined
Feb 17, 2009
Messages
179
Trophies
0
XP
542
Country
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.
 

cearp

瓜老外
Developer
Joined
May 26, 2008
Messages
8,542
Trophies
1
XP
7,439
Country
Tuvalu
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
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,

dozvgkka69

Member
Newcomer
Joined
Oct 30, 2016
Messages
21
Trophies
0
Age
41
XP
61
Country
Canada
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

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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Psionic Roshambo @ Psionic Roshambo: Satan "Hah so you finally decided to enter hell..." Ghost "Yeah I think I am safer here..."