Hello everyone. A friend made a tool for me that is able to extract PNG files from inside a TPX container file, but unfortunately this tool is not able to inject edited PNG files back into the TPX, could someone help me with this? I lost contact with this friend and I don't understand Python, but I have the source code and an explanation from him of how it works.
Explanation:
.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. You'll only need to install Python 3.6 and PIL.