Sol Trigger for PSP, *.TPK files
Posted: Sat Oct 13, 2012 11:40 pm
I'm actually not especially interested in the game, but I did do some digging because I was curious and thought I'd at least have it documented somewhere.
Folder structure is visible in the user folder.
Most TPK files (at least the ones that start with ZZZ0) are compressed with zlib.
First word contains the magic number ZZZ0, the second word is the size of the decompressed file and the third word seems to be always 4. You can use normal zlib inflation from byte 0xC onward to decompress the file.
I haven't played too much with recompression levels, but level 1 seems to work fine.
Text files (in the, well, TEXT folder) are encoded in UTF-8 and are seemingly structured by having a line ID (4 bytes) and the corresponding offset in the file.
Sadly (for potential translations), the font is monospaced and looks pretty unpleasing:
http://imgur.com/NgC0D
Folder structure is visible in the user folder.
Most TPK files (at least the ones that start with ZZZ0) are compressed with zlib.
First word contains the magic number ZZZ0, the second word is the size of the decompressed file and the third word seems to be always 4. You can use normal zlib inflation from byte 0xC onward to decompress the file.
I haven't played too much with recompression levels, but level 1 seems to work fine.
Text files (in the, well, TEXT folder) are encoded in UTF-8 and are seemingly structured by having a line ID (4 bytes) and the corresponding offset in the file.
Sadly (for potential translations), the font is monospaced and looks pretty unpleasing:
http://imgur.com/NgC0D