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

Discussion in 'Wii U - Hacking & Backup Loaders' started by syntax53, Jul 13, 2017.

  1. syntax53
    OP

    syntax53 Member

    Newcomer
    21
    11
    Jul 11, 2017
    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.
     
    pelago likes this.


  2. syntax53
    OP

    syntax53 Member

    Newcomer
    21
    11
    Jul 11, 2017
    United States
    anyone? I'm sure someone else has tried this.
     
  3. The Real Jdbye

    The Real Jdbye Always Remember 30/07/08

    Member
    GBAtemp Patron
    The Real Jdbye is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,472
    4,780
    Mar 17, 2010
    Norway
    Alola
    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.
     
  4. xdarkmario

    xdarkmario Philosopher

    Member
    1,322
    303
    Dec 30, 2010
    United States
    Mushroom Kingdom
    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 xdarkmario, Jul 15, 2017
  5. syntax53
    OP

    syntax53 Member

    Newcomer
    21
    11
    Jul 11, 2017
    United States
    I'm overwriting the file(s) via ftp_everywhere.
     
  6. Marko76

    Marko76 GBAtemp Psycho!

    Member
    3,478
    1,951
    Aug 19, 2015
    United Kingdom
    Clydebank
    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 Marko76, Jul 15, 2017
    KiiWii likes this.
  7. KiiWii

    KiiWii GBAtemp Psycho!

    Member
    3,678
    1,220
    Nov 17, 2008
    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.
     
  8. syntax53
    OP

    syntax53 Member

    Newcomer
    21
    11
    Jul 11, 2017
    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, Jul 17, 2017
    pelago likes this.
  9. xdarkmario

    xdarkmario Philosopher

    Member
    1,322
    303
    Dec 30, 2010
    United States
    Mushroom Kingdom
    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.
     
    KiiWii likes this.
  10. RandomUser

    RandomUser What has gotten into you Rosie?

    Member
    575
    201
    May 9, 2010
    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):
    MK8 Rosalina Icon
     
    KiiWii likes this.
  11. xdarkmario

    xdarkmario Philosopher

    Member
    1,322
    303
    Dec 30, 2010
    United States
    Mushroom Kingdom
    Well wudya know, I'll take note of that

    Sent from my Redmi 3S using Tapatalk
     
  12. CeeDee

    CeeDee Well?

    Member
    GBAtemp Patron
    CeeDee is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,786
    5,274
    May 4, 2014
    United States
    There's some python batch file somewhere that automatically verifies the validity of the tga files to ensure they work on WiiU.
     
  13. syntax53
    OP

    syntax53 Member

    Newcomer
    21
    11
    Jul 11, 2017
    United States
    Yea I mentioned that program and it actually said that it was cleared. However, it doesn't validate the image origin, only the compression.
     
  14. syntax53
    OP

    syntax53 Member

    Newcomer
    21
    11
    Jul 11, 2017
    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, Jul 17, 2017
  15. RandomUser

    RandomUser What has gotten into you Rosie?

    Member
    575
    201
    May 9, 2010
    United States
    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.
     
  16. dj_skual

    dj_skual Code & Mix

    Member
    888
    179
    Mar 9, 2008
    France
    i remember one tga is 24 bit...
     
  17. godreborn

    godreborn GBAtemp Addict

    Member
    2,693
    467
    Oct 10, 2009
    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.
     
  18. RandomUser

    RandomUser What has gotten into you Rosie?

    Member
    575
    201
    May 9, 2010
    United States
    @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.
     
  19. godreborn

    godreborn GBAtemp Addict

    Member
    2,693
    467
    Oct 10, 2009
    United States
    I know. the alpha will be an extra channel with rgb. I've done this enough times with colored coldboots.
     
  20. dj_skual

    dj_skual Code & Mix

    Member
    888
    179
    Mar 9, 2008
    France
    i remember i needed to save 2 images as tga 24 bit and one as tga 32 bit

    — Posts automatically merged - Please don't double post! —

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