It's slowly starting to show something, and I managed to pull out a few textures, but it's not quite the win you might think it is. The images below were pulled in their native format, then converted to PNG using CTT-PS.
The code so far is currently all in its own script and not CTT-PS, as it allows me to just focus on the task at hand. All the values are currently hard-coded, the image paths, the pixel bytes, etc. I'm not yet sure how to actually get the positions of this data, as I have not found any pointers in the file (but to be fair I haven't looked hard either). What also makes this difficult is the formats switch back and forth. The first 4 images are ARGB4, the next 17 are ARGB8, then I'm pretty sure it goes back to ARGB4 (hence why the images get corrupted beyond image 21, the switch to ARGB8 is currently hard-coded). I am not sure how to detect when the image format changes, there doesn't seem to be a per-image flag anywhere (but again, I haven't looked too hard yet). My focus thus far was just getting something out of the file.
This is fairly time consuming, so my "progress" will probably slow down from this point. It's worth figuring out the format for posterity, who knows where this will pop up again so having something that works to reference could be helpful down the line.
The code so far is currently all in its own script and not CTT-PS, as it allows me to just focus on the task at hand. All the values are currently hard-coded, the image paths, the pixel bytes, etc. I'm not yet sure how to actually get the positions of this data, as I have not found any pointers in the file (but to be fair I haven't looked hard either). What also makes this difficult is the formats switch back and forth. The first 4 images are ARGB4, the next 17 are ARGB8, then I'm pretty sure it goes back to ARGB4 (hence why the images get corrupted beyond image 21, the switch to ARGB8 is currently hard-coded). I am not sure how to detect when the image format changes, there doesn't seem to be a per-image flag anywhere (but again, I haven't looked too hard yet). My focus thus far was just getting something out of the file.
This is fairly time consuming, so my "progress" will probably slow down from this point. It's worth figuring out the format for posterity, who knows where this will pop up again so having something that works to reference could be helpful down the line.