Hacking Is it possible to replace game icons installed by WUP Installer?

  • Thread starter Thread starter syntax53
  • Start date Start date
  • Views Views 4,948
  • Replies Replies 21
  • Likes Likes 1

syntax53

Active Member
Newcomer
Joined
Jul 11, 2017
Messages
32
Reaction score
47
Trophies
0
Age
47
XP
241
Country
United States
(Running CBHC)

I spent a few hours last night trying to replace the game icon for a single title as a test, unsuccessfully. Kept getting the "question mark icon" with the "???" title. I'm fairly confident I have my "iconTex.tga" format correct. 128x128, 32bit (also tried 8bit), Alpha Channel, 65k file size, the file headers checked out, I got the footer in place, and TGA verifier python script says it's good. The particular title I was trying to update (donkey kong) has an update + DLC so I replaced the icon in all three folders.

The only thing I could think of is, is there some sort of signature verification on the TGA files themselves for retail titles that the CFW isn't patched to ignore?

My intention was to create a script using powershell w/ftp module + game cover images to replace all of the terrible game icons with actual covers. Of course I would share said script with the community.
 
  • Like
Reactions: pelago
(Running CBHC)

I spent a few hours last night trying to replace the game icon for a single title as a test, unsuccessfully. Kept getting the "question mark icon" with the "???" title. I'm fairly confident I have my "iconTex.tga" format correct. 128x128, 32bit (also tried 8bit), Alpha Channel, 65k file size, the file headers checked out, I got the footer in place, and TGA verifier python script says it's good. The particular title I was trying to update (donkey kong) has an update + DLC so I replaced the icon in all three folders.

The only thing I could think of is, is there some sort of signature verification on the TGA files themselves for retail titles that the CFW isn't patched to ignore?

My intention was to create a script using powershell w/ftp module + game cover images to replace all of the terrible game icons with actual covers. Of course I would share said script with the community.
As far as I know, you don't even need CFW to edit those files.
Look at Haxchi for example. It edits the tga files and works fine on OFW, you can even replace the files before installing it and it still works.
I would say there's something wrong with the files, but if the TGA verifier says they're okay, I don't know what to tell you.
Sorry.
 
you would need to unpack the game and make your edits and then repack it again and then reinstall (this method requires CFW)
 
Last edited by XDM,
you would need to unpack the game and make your edits and then repack it again and then reinstall (this method requires CFW)
Wrong you can just replace the files using ftpiiu everywhere zero need to unpack then pack the files again I know this works because I have done it a few times myself

As for the op use this site to convert your files to tga its the one that has worked for me every time http://image.online-convert.com/convert-to-tga
 
Last edited by AmandaRose,
  • Like
Reactions: KiiWii
Would be good if there was a haxchi style icon replacer for those not confident with FTPIIU.

Put icon/TV tga's in the folder, run from HBL, pick the title to replace, profit.
 
Just got a chance to play with this some more. Paint.net seems to be the only program that can properly write these images the way the Wii wants them (with the help of inserting the footer hex). The only thing I can see that it's doing different is the last byte in the TGA v2.0 header. The last byte is a bit mask that specifies "the order in which pixel data is transferred from the file to the screen" (left-to-right/top-to-bottom). When I use xconvert, which gives me the option of bottom-up or (I assume) top-down options, the value is either 0 or 20 which is top-left or bottom-left origin. When I save with paint.net, the value is 8 which equates to a bottom-right origin. Assuming this is the key... I need to find something that I can use to batch-convert to covers for 600 titles into the proper specification :P

edit: I believe the spec I read saying paint.net was using "bottom-right" as an origin according to the bit mask was wrong. Either that or ImageMagick has their commands wrong. The correct command with ImageMagick is to use "BottomLeft" as the origin, and I assume that is correct.
 
Last edited by syntax53,
  • Like
Reactions: pelago
hmm i have never tried ftping to my wiiU before, but that seems to be a good way. Also does ftp let you access any file on the nand?
also i have used Photoshop to successfully make those tga files.
 
  • Like
Reactions: KiiWii
Wow, I didn't even know this was possible and it was easy as pie to do it with FTP everywhere or anywhere (whatever one it is):
2d94jf6.jpg

2s7az5y.jpg
 
  • Like
Reactions: KiiWii
There's some python batch file somewhere that automatically verifies the validity of the tga files to ensure they work on WiiU.
Yea I mentioned that program and it actually said that it was cleared. However, it doesn't validate the image origin, only the compression.
 
I got it working using ImageMagick, created a batch script and converted all of the covers from GameTDB. I will be releasing the set of scripts when I get the powershell side working. In the meantime, if anyone stumbles onto this thread, this is the command which will convert an image to a Wii U compatible format using ImageMagick:

convert "source_image.jpg" -strip -resize 128!x128! -compress none -depth 32 -type TrueColorAlpha -define tga:image-origin=BottomLeft "output.tga"

You then need to append the hex code to the end. You can use the python verifier to do that, manually with a hex editor, or in my case if you need to do a ton of them, you can put the code into any file (hex edit a new file -> paste the footer hex [000000000000000054525545564953494F4E2D5846494C452E00000000] -> save it as footer.bin) and then using "copy /b source.tga + footer.bin dest.tga".
 
Last edited by syntax53,
I got it working using ImageMagick, created a batch script and converted all of the covers from GameTDB. I will be releasing the set of scripts when I get the powershell side working. In the meantime, if anyone stumbles onto this thread, this is the command which will convert an image to a Wii U compatible format using ImageMagick:

convert "source_image.jpg" -strip -resize 128!x128! -compress none -depth 32 -type TrueColorAlpha -define tga:image-origin=BottomLeft "output.tga"

You then need to append the hex code to the end. You can use the python verifier to do that, manually with a hex editor, or in my case if you need to do a ton of them, you can put the code into any file (hex edit a new file -> paste the footer hex [000000000000000054525545564953494F4E2D5846494C452E00000000] -> save it as footer.bin) and then using "copy /b source.tga + footer.bin dest.tga".
Why not just use adobe Photoshop automaton to do multiple files. No need to manually hex edit or add a hex value either. It just works, as long as your TGA has alpha channel and save as 32-bit, it should work straight away.
 
32bit for the iconTex.tga (128x128x) and the bootlogoTex.tga (170x42) (both have alphas); 24bit for the bootTvTex.tga (1280x720) and the bootDrcTex.tga (854x480)

edit: I figured this out myself.
 
I know. the alpha will be an extra channel with rgb. I've done this enough times with colored coldboots.
 
@dj_skual
An alpha channel is 16-bit, so 24 + 16 = 32 bit
@godreborn
You can easily tell by looking at the channel option in Photoshop, it will tell you if Alpha exist or not.
i remember i needed to save 2 images as tga 24 bit and one as tga 32 bit

--------------------- MERGED ---------------------------

ho, and there are a sign check for bootlogo so you need CFW to boot channel with modified bootlogo
 
Last edited by dj_skual,

Site & Scene News

Popular threads in this forum