Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Sol Trigger for PSP, *.TPK files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
Forte
advanced
Posts: 41
Joined: Mon Aug 06, 2007 9:51 pm
Has thanked: 2 times
Been thanked: 5 times

Sol Trigger for PSP, *.TPK files

Post by Forte »

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
Romored
beginner
Posts: 20
Joined: Fri May 14, 2010 12:52 pm

Re: Sol Trigger for PSP, *.TPK files

Post by Romored »

Hello there! I'll bump this topic as the subject is very similar.

I found this kind of files in another PSP game: Criminal Girls. Same "ZZZ0" header and same structure. I tried to find an utility to extract their content but I couldn't find absolutely anything. The only thing I know is what Forte said up here, that zlib can be used. The problem is that I've no idea how to do it. I have little experience in file manipulation and C++ programming in general, I don't think I could create an application from scratch. Can someone please help me? I think it could be useful for many people, as the format seems rather standard for most of the latest PSP games.

One of the files I wanted to extract is this one. It should contain sprites and/or textures.

http://www.mediafire.com/?faiqqy18qc8zrfk

Almost all the files of that game are .tpk.
Dazz
beginner
Posts: 21
Joined: Thu Mar 17, 2011 12:10 pm
Location: Peterborough, UK
Has thanked: 3 times
Been thanked: 1 time

Re: Sol Trigger for PSP, *.TPK files

Post by Dazz »

//tpk extraction bms script

idstring "ZZZ0"
get size long
get null long
savepos offset
get zsize asize
math zsize -= offset
get name basename
string name += .UTK
comtype zlib
clog name offset zsize size


This is about as much as I think I can do; I can't for the life of me figure out the palettes for the files that come out of these though. This worked for Criminal Girls, not tried with the others.
User avatar
sprayer
beginner
Posts: 25
Joined: Fri Sep 10, 2010 7:09 am
Location: Russia

Re: Sol Trigger for PSP, *.TPK files

Post by sprayer »

any news?
Post Reply