Venomalia / DolphinTextureExtraction-tool

Dumps GC and Wii textures, compatible with the Dolphin texture hash.
MIT License
29 stars 5 forks source link

Support Trauma Center games #43

Closed iwubcode closed 8 months ago

iwubcode commented 1 year ago

The trauma center games use a 'tpx' file format that is a collection of TPLs.

According to this post:

.TPX files are just containers for .TPL files, however, the palette is a little tricky. The first half is a table with Green and Red values, and the second half is a table with Alpha and Blue values. So basically you need to multiply the number of colors by 4 to get the size of the palette data and then rearrange in the correct order.