XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Thu Aug 17, 2017 10:28 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Sol Trigger for PSP, *.TPK files
PostPosted: Sat Oct 13, 2012 11:40 pm 
Offline
advanced
User avatar

Joined: Mon Aug 06, 2007 9:51 pm
Posts: 41
Has thanked: 2 times
Have thanks: 4 times

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

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Sol Trigger for PSP, *.TPK files
PostPosted: Fri Feb 01, 2013 3:46 pm 
Offline
beginner

Joined: Fri May 14, 2010 12:52 pm
Posts: 20
Has thanked: 0 time
Have thanks: 0 time
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.


Top
 Profile  
 
 Post subject: Re: Sol Trigger for PSP, *.TPK files
PostPosted: Mon Apr 22, 2013 11:49 am 
Offline
beginner

Joined: Thu Mar 17, 2011 12:10 pm
Posts: 21
Location: Peterborough, UK
Has thanked: 3 times
Have thanks: 1 time
//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.


Top
 Profile  
 
 Post subject: Re: Sol Trigger for PSP, *.TPK files
PostPosted: Sun Aug 13, 2017 4:55 pm 
Offline
beginner
User avatar

Joined: Fri Sep 10, 2010 7:09 am
Posts: 25
Location: Russia
Has thanked: 0 time
Have thanks: 0 time
any news?



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group