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

syntax53

Active Member
OP
Newcomer
Joined
Jul 11, 2017
Messages
32
Trophies
0
Age
44
XP
209
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

The Real Jdbye

*is birb*
Member
Joined
Mar 17, 2010
Messages
23,384
Trophies
4
Location
Space
XP
14,016
Country
Norway
(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.
 

AmandaRose

Do what I do. Hold tight and pretend it’s a plan
Member
Joined
Aug 19, 2015
Messages
10,200
Trophies
1
Location
Glasgow
Website
www.rockstarnorth.com
XP
16,207
Country
United Kingdom
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

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,735
Trophies
3
Website
defaultdnb.github.io
XP
27,372
Country
United Kingdom
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.
 

syntax53

Active Member
OP
Newcomer
Joined
Jul 11, 2017
Messages
32
Trophies
0
Age
44
XP
209
Country
United States
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

xdarkmario

Philosopher
Member
Joined
Dec 30, 2010
Messages
1,635
Trophies
1
Location
Mushroom Kingdom
XP
2,583
Country
United States
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

RandomUser

Rosalina in Plush Form
Member
Joined
May 9, 2010
Messages
967
Trophies
1
XP
1,042
Country
United States
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

CeeDee

fuckin dork
Member
Joined
May 4, 2014
Messages
5,362
Trophies
3
XP
9,969
Country
United States
There's some python batch file somewhere that automatically verifies the validity of the tga files to ensure they work on WiiU.
 

syntax53

Active Member
OP
Newcomer
Joined
Jul 11, 2017
Messages
32
Trophies
0
Age
44
XP
209
Country
United States
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.
 

syntax53

Active Member
OP
Newcomer
Joined
Jul 11, 2017
Messages
32
Trophies
0
Age
44
XP
209
Country
United States
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,

RandomUser

Rosalina in Plush Form
Member
Joined
May 9, 2010
Messages
967
Trophies
1
XP
1,042
Country
United States
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.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,180
Country
United States
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.
 

dj_skual

Code & Mix
Member
Joined
Mar 9, 2008
Messages
1,014
Trophies
1
Website
sourceforge.net
XP
2,639
Country
France
@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

General chit-chat
Help Users
  • No one is chatting at the moment.
  • BakerMan @ BakerMan:
    girls just wanna have fun and renai circulation also share the same tempo as the few i said before
  • Xdqwerty @ Xdqwerty:
    @BakerMan, megalomania the live a live song?
  • BakerMan @ BakerMan:
    wait no, megalovania*
  • BakerMan @ BakerMan:
    my bad
  • K3Nv2 @ K3Nv2:
    I don't forgive you
  • BigOnYa @ BigOnYa:
    The nerve of that guy, gosh.
  • K3Nv2 @ K3Nv2:
    Yeah expecting me to forgive gtfo
  • Psionic Roshambo @ Psionic Roshambo:
    But how could the Dr have known you didn't want to be circumcized?
  • K3Nv2 @ K3Nv2:
    He didn't you just wanted your dick to be fondled
    +1
  • K3Nv2 @ K3Nv2:
    Watching dune 2 it's eh
  • Psionic Roshambo @ Psionic Roshambo:
    Dune one sucked
  • Psionic Roshambo @ Psionic Roshambo:
    The original with Patrick Stewart was Great
  • K3Nv2 @ K3Nv2:
    A sexual psycopath that love pain where have I heard that before
  • BigOnYa @ BigOnYa:
    In your high school diary?
  • K3Nv2 @ K3Nv2:
    No but your wife let's me read her diary the word psychopath comes up more than sexual
    +1
  • K3Nv2 @ K3Nv2:
    Lol stremio hogging all of my tvs on board ram
  • BigOnYa @ BigOnYa:
    Just download more Ram to it, or setup Raid666 on it.
    +1
  • SylverReZ @ SylverReZ:
    Morning
    +1
  • CooingMaxito @ CooingMaxito:
    Hello fellow stranger
  • K3Nv2 @ K3Nv2:
    What do you mean I've known you since today
  • CooingMaxito @ CooingMaxito:
    Damn that's bonkers mate, it's almost like we've never met!
  • CooingMaxito @ CooingMaxito:
    Probably just my imagination
    SylverReZ @ SylverReZ: :rofl2: