Homebrew TgaVerifiy - A Tga Verifier

Zarklord

Well-Known Member
OP
Member
Joined
May 13, 2016
Messages
194
Trophies
0
Age
25
XP
268
Country
United States
Code:
iconTex.tgais compressed. it cant be compressed!
All TGA's verified!
press any key to exit...

What should I do about this? I have some edited tga files in the folder. (edited via paint.net)
you need to when saving it not compress the file
 

Irastris

Well-Known Member
Member
Joined
May 3, 2015
Messages
1,116
Trophies
0
XP
895
Country
United States
Code:
iconTex.tgais compressed. it cant be compressed!
All TGA's verified!
press any key to exit...

What should I do about this? I have some edited tga files in the folder. (edited via paint.net)
Don't enable RLE compression.

If Paint.NET doesn't let you disable that, then IDK what to tell you.
 

CatmanFan

Anxious and regretful
Member
Joined
Aug 14, 2016
Messages
1,965
Trophies
0
Website
www.youtube.com
XP
2,613
Country
Morocco

pedro702

Well-Known Member
Member
Joined
Mar 3, 2014
Messages
12,731
Trophies
2
Age
33
XP
8,725
Country
Portugal
You have to place it inside the meta folder, the same folder as the TGA files.
i did that and clicking on it just makes it close and using the comand line is the same thing, gives me the error abode, im guessing this doesnt work with python 3.4.3? only 2.7?
 

Xyphoseos

Hack or no games
Member
Joined
Jun 29, 2016
Messages
1,834
Trophies
0
Age
23
Location
Rivière
XP
3,277
Country
France
Capture d’écran (65).png
 

bjaxx87

Well-Known Member
Member
Joined
Jun 17, 2011
Messages
448
Trophies
1
XP
1,288
Country
Germany
All my TGAs got verified... Is 16-bit color depth for bootDrcTex.tga and bootTvTex.tga a restriction by AppConfigTool and not by the Wii U itself?
 

Zarklord

Well-Known Member
OP
Member
Joined
May 13, 2016
Messages
194
Trophies
0
Age
25
XP
268
Country
United States
All my TGAs got verified... Is 16-bit color depth for bootDrcTex.tga and bootTvTex.tga a restriction by AppConfigTool and not by the Wii U itself?
i guess? im not really sure why app config has you do invalid bit color depth but i assume it transforms them to the correct depth...
 

bjaxx87

Well-Known Member
Member
Joined
Jun 17, 2011
Messages
448
Trophies
1
XP
1,288
Country
Germany
It looks that way. My bootscreen shows up just fine on the Wii U, thanks for your tool! I spent hours looking to find a solution to change the color depth to 16-bit and now I can just forget about that. :)
 

MajoraAKC

Well-Known Member
Newcomer
Joined
Jul 23, 2017
Messages
58
Trophies
0
XP
80
Country
Sweden
Any chance of seeing this for python 3.x? Sucks to need 3.x for gba_inject and then get 2.x for this.

Edit: I got this working for Python 3.x now. Is it okey if I share the code here?
 
Last edited by MajoraAKC,
  • Like
Reactions: JHoliness

MajoraAKC

Well-Known Member
Newcomer
Joined
Jul 23, 2017
Messages
58
Trophies
0
XP
80
Country
Sweden
MetaVerifiy for Python 3.x

Direct download
http://s000.tinyupload.com/index.php?file_id=88044331508145990052

Code:
import struct
import msvcrt as m
import os

def wait():
    m.getch()
   
def readByte(file):
    return struct.unpack("B", file.read(1))[0]
 
def readu16le(file):
    return struct.unpack("<H", file.read(2))[0]
 
def readu32le(file):
    return struct.unpack("<I", file.read(4))[0]


tgas = ["iconTex.tga","bootLogoTex.tga","bootDrcTex.tga","bootTvTex.tga"]
dimensions = [[128,128,32],[170,42,32],[854,480,24],[1280,720,24]]
for i in range(len(tgas)):
    tga = tgas[i]
    dimension = dimensions[i]
    if os.path.exists(tga):
        with open(tga,"rb+") as f:
            header = readu32le(f)
            if header != 0x00020000:
                print(tga + "is compressed. it cant be compressed!")
                break
            f.seek(12)
            actDimensions = [readu16le(f),readu16le(f),readByte(f)]
            hasHadBadDiment = False
            for j in range(len(actDimensions)):
                if j == 0:
                    type = "width"
                elif j == 1:
                    type = "height"
                else:
                    type = "depth"
                diment = dimension[j]
                actDiment = actDimensions[j]
                if diment != actDiment:
                    if not hasHadBadDiment:
                        hasHadBadDiment = True
                        print("dimensions are not valid for: " + tga)
                    print(type + " is: " + str(actDiment) + " should be: " + str(diment))
            if hasHadBadDiment:
                break
            f.seek(1,1)
            f.seek(actDimensions[0]*actDimensions[1]*(actDimensions[2]//8),1)
            f.write(b"\x00\x00\x00\x00\x00\x00\x00\x00TRUEVISION-XFILE\x2E\x00")
    else:
        print(tga + " could not be found!")
print("All TGA's verified!")
print("Press any key to exit...")
#todo verifiy bootovie.h264
wait()
 
Last edited by MajoraAKC,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I just want a Pokemon Hell Raiser fan game 😭
  • K3Nv2 @ K3Nv2:
    Anyone wanna play with my joydock
  • BigOnYa @ BigOnYa:
    Biomutant looks cool tho, may have to try that
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
    BigOnYa @ BigOnYa: I had to find and get him an old style flip phone even without text, cause thats what he wanted...