Correct save settings for tga files?

Discussion in 'Wii-U' started by pinky, Mar 12, 2017.

  1. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    does anyone know the correct tga save settings for wii u games? I tried 16-bit with an icon I was working with, and that proved to be wrong. there r two other options, but I'd rather be sure. the icon is 128x128 which I'm pretty sure is correct. I know that if u mess up the icon, the game won't load. it will show up as corrupted with a question mark tile since I did try the icon with the wrong settings. I've asked on temp as well, but I haven't received a response yet.

    nm, I figured it out. 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)

    the reason I'm posting, since I have the answer, is to put it somewhere that will be safe and that I'll remember. the game in question where I did 16bit mistake was the loadiiine forwarder. :-p
     
    Yugonibblit likes this.
  2. 730
    686
    103
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    730
    Likes Received:
    686
    Trophy Points:
    103
    Gender:
    Male
    Location:
    rom0:/
    I never have Wii but I think would be also good idea to add information if those TGA are compressed RLE or not and are they saved as normal or byte reversed. ;p
     
    Yugonibblit and pinky like this.
  3. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    they're not compressed rle or byte reversed. ;) the icon, for example, should be 128x128 and 64KBs.
     
    Yugonibblit likes this.
  4. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    also, bootDrcTex.tga is the image on the gamepad while bootTvTex.tga is obviously the television image. I think the alphas for the icon and logo image files r what's shown on the television screen where whatever isn't in the alpha is treated as transparent. ps3 coldboots (colored ones) do this as well.
     
    Yugonibblit likes this.
  5. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    k. someone just made a tutorial for this. my save settings r correct. :) the only thing missing is the footer hex which should be:

    Code:
    00 00 00 00 00 00 00 00 54 52 55 45 56 49 53 49 4F 4E 2D 58 46 49 4C 45 2E 00 00 00 00 00
    I believe this applies to any of the 3 images, icon, television, and gamepad.
     
    Yugonibblit likes this.
  6. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    never mind about that hex series. it's just truevision-xfile followed by 0's to pad the file to 16 bytes. that should exist with all tga files including the ones on the ps3. ;)
     
    Yugonibblit likes this.
  7. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    bump for my friends on gbatemp. one member wanted to know the correct save settings for the icon mostly. wrong settings will result in a question mark tile on the home menu.
     
    Yugonibblit likes this.
  8. 540
    237
    53
    littlebalup

    littlebalup Developer

    Joined:
    Oct 16, 2014
    Messages:
    540
    Likes Received:
    237
    Trophy Points:
    53
    Location:
    43°36'16.0"N 1°26'36.1"E
    You can have a look to the TGA's header in hexa (the firsts 0x12 bytes) to determine exact TGA type.
    http://www.paulbourke.net/dataformats/tga/

    So:

    bootDrcTex.tga :
    Code:
    Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    
    00000000  00 00 02 00 00 00 00 00 00 00 00 00 56 03 E0 01  ............V.à.
    00000010  18 00                                            ..
    
    - TGA Type 2 (unmapped colors, without RLE compression)
    - pixel origin to the lower left corner
    - image size : 854x480 (0x356 x 0x1E0)
    - bits per pixel : 24 (0x18) = RGB without alpha channel


    bootLogoTex.tga :
    Code:
    Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    
    00000000  00 00 02 00 00 00 00 00 00 00 00 00 AA 00 2A 00  ............ª.*.
    00000010  20 08                                             .
    
    - TGA Type 2 (unmapped colors, without RLE compression)
    - pixel origin to the lower left corner
    - image size : 170x42 (0xAA x 0x2A)
    - bits per pixel : 32 (0x20) = RGB with alpha channel


    bootTvTex.tga :
    Code:
    Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    
    00000000  00 00 02 00 00 00 00 00 00 00 00 00 00 05 D0 02  ..............Ð.
    00000010  18 00                                            ..
    
    - TGA Type 2 (unmapped colors, without RLE compression)
    - pixel origin to the lower left corner
    - image size : 1280x720 (0x500 x 0x2D0)
    - bits per pixel : 24 (0x18) = RGB without alpha channel


    iconTex.tga :
    Code:
    Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
    
    00000000  00 00 02 00 00 00 00 00 00 00 00 00 80 00 80 00  ............€.€.
    00000010  20 08                                             .
    
    - TGA Type 2 (unmapped colors, without RLE compression)
    - pixel origin to the lower left corner
    - image size : 128x128 (0x80 x 0x80)
    - bits per pixel : 32 (0x20) = RGB with alpha channel


    Then, using GIMP, parameters are:
    Image -> Mode -> RGB
    Layer -> Transparency -> Add alpha chanel (if missing, for bootLogo and icon) or Remove Alpha Channel (if any, for bootDRC and bootTV).
    File -> export as -> *.tga
    When prompted, uncheck "RLE compression" and select "Bottom left" as origin.

    Hope this help ;)
     
    Last edited: Jul 17, 2017
    Yugonibblit, DeViL303 and pinky like this.
  9. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    thanks, I knew there was another way to determine the save settings or at least to analyze them anyway. to figure out the save settings, I merely kept saving the images until the byte size matched which didn't take too long really. if the icon has incorrect save settings, the game won't even boot, so it's important. lol
     
  10. 540
    237
    53
    littlebalup

    littlebalup Developer

    Joined:
    Oct 16, 2014
    Messages:
    540
    Likes Received:
    237
    Trophy Points:
    53
    Location:
    43°36'16.0"N 1°26'36.1"E
    You're right, you can check the image file size. Should be exactly the same size as the original TGA as there is no compression.
    And calculation is simple for uncompressed images:
    TGA file size (bytes) = headerSize + imageSize x (bitsperpixel / 0x8) + footer size
    bootDrcTex.tga : 0x12 + (0x356 x 0x1E0) x (0x18 / 0x8) + 0x1E = 0x12C3F0 = 1229808 bytes
     
    pinky, Yugonibblit and DeViL303 like this.
  11. 540
    237
    53
    littlebalup

    littlebalup Developer

    Joined:
    Oct 16, 2014
    Messages:
    540
    Likes Received:
    237
    Trophy Points:
    53
    Location:
    43°36'16.0"N 1°26'36.1"E
    oh, and be carrefull with exotic image editors that can add data to the file as an "Identification field" (identification field can be right after the header per the TGA spec). So, it will brake image size.
    The best way is to verify the header data as given above.
     
    pinky and Yugonibblit like this.
  12. 5,656
    1,847
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    5,656
    Likes Received:
    1,847
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    thanks. I originally posted the correct save settings in the op to help anyone else who needs to save one of those tga files. ur information is a welcome addition though in case I uncover other tga files that need specific save settings. I figured u could determine save settings by looking at the image in a hex editor, but I was unaware of what to look for 'til I read ur post. I originally had this issue whenever I was trying to save an icon for the homebrew launcher since the one I had looked better than the one used officially. I got the image from gbatemp, but it was in raw format. I didn't realize the image had to be a specific size or that the bit size mattered until I got that question mark tile error. I've since corrected it. thanks for ur helpful messages @littlebalup .
     
    Yugonibblit likes this.

Share This Page