Homebrew Verify WUP Installer files?

pelago

Member
OP
Member
Joined
Feb 20, 2006
Messages
1,019
Trophies
0
XP
565
Country
Is there already, or is it technically possible to create, an app to verify that games in WUP Installer format (i.e. *.app, *.h3, title.cert, title.tik, title.tmd) have all files present and correct?

I had a problem installing a couple of titles, which after a lot of checking (and unnecessary reformatting of SD card with different cluster sizes), turned out to be a corrupt downloaded .app file.

It would be great to be able to verify these downloads before trying to install them. If you only find out about a corrupt .app at install time, you end up with a partial install, which can be a pain to remove.

I can imagine use cases for such a verifier app on both the Wii U itself (could be bundled into WUP Installer), and on a computer for "offline" verifying.

I don't know enough about how it works to know if it is even technically possible to verify on a computer, e.g. using the info in the various title.* files to check the *.app files.
 

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,286
Trophies
4
Location
Space
XP
13,844
Country
Norway
Is there already, or is it technically possible to create, an app to verify that games in WUP Installer format (i.e. *.app, *.h3, title.cert, title.tik, title.tmd) have all files present and correct?

I had a problem installing a couple of titles, which after a lot of checking (and unnecessary reformatting of SD card with different cluster sizes), turned out to be a corrupt downloaded .app file.

It would be great to be able to verify these downloads before trying to install them. If you only find out about a corrupt .app at install time, you end up with a partial install, which can be a pain to remove.

I can imagine use cases for such a verifier app on both the Wii U itself (could be bundled into WUP Installer), and on a computer for "offline" verifying.

I don't know enough about how it works to know if it is even technically possible to verify on a computer, e.g. using the info in the various title.* files to check the *.app files.
You could extract the files with a PC. If any files are corrupted it should error when it gets to the corrupted files.
 
  • Like
Reactions: pelago

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
Is there already, or is it technically possible to create, an app to verify that games in WUP Installer format (i.e. *.app, *.h3, title.cert, title.tik, title.tmd) have all files present and correct?
WiiU USB Helper already includes this feature. JNUSTool will catch incomplete .app files (wrong size), but it doesn't check the extraction.
 

pelago

Member
OP
Member
Joined
Feb 20, 2006
Messages
1,019
Trophies
0
XP
565
Country
Thanks. I've found that FunkiU will also find size mismatches, but doesn't notice problems that can occur if the size is correct.

Thanks for the tip on Wii U USB Helper. I'm really looking for something more Linux-friendly and open source. Maybe a command like "wiiuverify <foldername>" or "wiiuverify *" to verify all folders. I understand now that the TMD file can be used for this.
 
Last edited by pelago,

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,649
Country
France
The tmd has the hash of the extracted file, so the tool needs to extract the file to know if it's good or bad.
WiiU USB Helper is extracting all downloaded files temporarily in memory while the file is downloaded.
JNUSTool only checks the size, so like you said it could be corrupted but with the same size. I tried to edit one of the .app and used it to open the FST but it didn't find any issue, you'll need to extract the game to your PC to catch any errors.

I think only USBHelper is doing it in memory without extracting all files to hard drive, and it's doing it while downloading only. you can't use it to verify an already downloaded file using a different program. Maybe the author could add a verification option.
Though, there's a "import from another tool" feature, I'll ask the author if it's checking the files at the same time.
edit: asked here

edit:
author replied there's a "verify" feature :)
 
Last edited by Cyan,
  • Like
Reactions: pelago

nexusmtz

Well-Known Member
Member
Joined
Feb 17, 2016
Messages
1,386
Trophies
0
XP
1,425
Country
United States
The tmd has the hash of the extracted file, so the tool needs to extract the file to know if it's good or bad.
WiiU USB Helper is extracting all downloaded files temporarily in memory while the file is downloaded.
JNUSTool only checks the size, so like you said it could be corrupted but with the same size. I tried to edit one of the .app and used it to open the FST but it didn't find any issue, you'll need to extract the game to your PC to catch any errors.

I think only USBHelper is doing it in memory without extracting all files to hard drive, and it's doing it while downloading only. you can't use it to verify an already downloaded file using a different program. Maybe the author could add a verification option.
Though, there's a "import from another tool" feature, I'll ask the author if it's checking the files at the same time.
When you have something in the 'downloaded' state in WiiU USB Helper (as the result of a download or import), the 'Get it' button changes to 'Verify'. If you click Verify, the title is added to the download queue and the smart downloading handles the verification. It looks like this as it's working:
helperchecking.jpg
 
  • Like
Reactions: pelago

pelago

Member
OP
Member
Joined
Feb 20, 2006
Messages
1,019
Trophies
0
XP
565
Country
Thanks. Good to hear that it can be verified with the TMD, although you would need to decrypt (in memory or on disk) first. Presumably the code in cdecrypt could be used as a basis for a Windows/Mac/Linux open-source app, or even a Wii U app.
 

pelago

Member
OP
Member
Joined
Feb 20, 2006
Messages
1,019
Trophies
0
XP
565
Country
I'm hoping, but also doing a little research to try and offer implementation tips to a potential dev. I don't see anything like this in that sticky so will link to this thread there.
 
Last edited by pelago,
  • Like
Reactions: nexusmtz

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • HiradeGirl @ HiradeGirl:
    He is now fishy.
  • K3Nv2 @ K3Nv2:
    Sak is a fishy pineapple
  • HiradeGirl @ HiradeGirl:
    Have a good night everyone.
  • HiradeGirl @ HiradeGirl:
    i'm getting sleepy.
  • HiradeGirl @ HiradeGirl:
    So much drinking from @K3Nv2
  • HiradeGirl @ HiradeGirl:
    Have a nice day. Life. Week. Month. year.
  • K3Nv2 @ K3Nv2:
    10 tabs open on chrome and no slow downs suck it low ram plebs lol
  • Veho @ Veho:
    Firefox users be like "look at what they have to do to mimic a fraction of our power."
  • K3Nv2 @ K3Nv2:
    they be like which lite firefox exe pls
  • Veho @ Veho:
    Wut.
  • Maximumbeans @ Maximumbeans:
    GM all
  • K3Nv2 @ K3Nv2:
    butt
  • SylverReZ @ SylverReZ:
    douche
  • Veho @ Veho:
    Touché.
  • SylverReZ @ SylverReZ:
    Push it :creep:
  • Veho @ Veho:
    Talk about propaganda.
  • Veho @ Veho:
    Illinois is working to ban toxic food additives that have been banned for decades in other countries; additives that can be replaced and all those countries still have Skittles and Mountain Dew. Title of the piece: GUBMINT WANTS TO TAKE AWAY YOUR CANDY
  • Veho @ Veho:
    Gee, I wonder if the author is biased?
  • SylverReZ @ SylverReZ:
    @Veho, Sounds and smells like bullshit. They don't give you cancer, and California should know that. I don't get why they stick labels that say "may or may not cause reproductive harm or cancer".
  • Veho @ Veho:
    Arsenic doesn't give you cancer either.
  • Veho @ Veho:
    California has already banned those additives BTW.
    Veho @ Veho: California has already banned those additives BTW.