Twisted Metal Black .TEX [PS2]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Twisted Metal Black .TEX [PS2]

Post by DJ Normality »

I've been trying to get these files but this script doesn't seem to find the textures in Twisted Metal Black. Someone told me to change something about the script but I don't know much about scripting or image formats. Some help would be appreciated. I attatched sample files along with the tex_twistedmetal_tex.py script.
https://drive.google.com/file/d/1JFHX18 ... sp=sharing
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Re: Twisted Metal Black .TEX [PS2]

Post by DJ Normality »

And sorry for posting in Game Archive i thought i was in Graphic Formats.
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Twisted Metal Black .TEX [PS2]

Post by Allen »

They look like grayscale images, try this script.

*Edit:updated

added support chunkType 0x41 0x43 0xb(32bpp) 0x8(32bpp)
Last edited by Allen on Sat Sep 05, 2020 1:57 am, edited 2 times in total.
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Re: Twisted Metal Black .TEX [PS2]

Post by DJ Normality »

Thank you! And I think thats the CLUT main textures.. Weird. I posted another .TEX of a level. Noesis seems to crash on these.
https://drive.google.com/file/d/1BAgRJt ... sp=sharing
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Twisted Metal Black .TEX [PS2]

Post by Allen »

Use hex editor: change first 2bytes 0x49 0x45 to 0x50 0x4b. and rename to .zip file.
They are a ZIP file.
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Re: Twisted Metal Black .TEX [PS2]

Post by DJ Normality »

Oh wow thanks. Do you know why they are all greyscaled? Is it the CLUT ?
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: Twisted Metal Black .TEX [PS2]

Post by Allen »

I updated the script.
I think it's a texture for some kind of explosion effect, and it doesn't need too complicated colors.
If it is a palette index image, the color table is missing.