ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Sep 20, 2019 12:06 pm

All times are UTC




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue Oct 11, 2016 7:46 am 

Joined: Tue Oct 11, 2016 7:26 am
Posts: 16
I've been messing around with a recent PSVita game from Prototype but despite my best efforts, I've been unable to figure out how to unpack their .pak archives.

Each .PAK file comes with an included .TBL file, which I'm pretty sure includes some if not all of the needed information about the file sizes and locations in the relevant .PAK file. Problem is, I'm not able to figure out how to actually extract the .PAK files (let alone attempt to repack them.)

Here's the headers for one pair of files.

psvsys.tbl
Image

psvsys.pkg
Image

Download for two pairs of files.
http://www.mediafire.com/file/7cu8t12zr ... G00940.rar

Includes:
1. psvscr.tbl/pak (Game scripts)
2. psvsys.tbl/pak (System files)

PCSG00940
Image


Top
   
PostPosted: Tue Oct 11, 2016 9:00 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
I suspect that tbl uses some sort of (unknown) compression, no idea.


Top
   
PostPosted: Thu Oct 13, 2016 6:32 am 

Joined: Tue Oct 11, 2016 7:26 am
Posts: 16
Thanks for looking anyway.


Top
   
PostPosted: Sat Oct 21, 2017 4:22 am 
User avatar

Joined: Mon Sep 04, 2017 8:42 am
Posts: 5
I made unpacker for this type of archives:
https://github.com/RikuKH3/prot_tblpak/releases
Tested with a few Vita, PS3 and Android games, works fine.


Top
   
PostPosted: Sat Oct 21, 2017 6:53 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
@RikuKH3
Am I wrong or that complicated code is nothing else than a sequential reading of bitfields?
0x1c, 4, 0x14 and 0x19


Top
   
PostPosted: Sat Oct 21, 2017 7:10 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
Here we go:
http://aluigi.org/bms/prototype_tblpak.bms


Top
   
PostPosted: Sun Oct 22, 2017 1:15 am 
User avatar

Joined: Mon Sep 04, 2017 8:42 am
Posts: 5
.
I got lazy and just used PowerPC instructions I had left from initial reversing. It's ugly but doesn't really affect any performance.

Also entries in TBL are sorted by ID and you don't want to extract files in this order. It's not just a matter of consequent reading and random seeking. For example: when extracting pak with voices in it you'll get a horrible mess... actors lines will be scattered all over the place and practically will be useless (comparing to sorting by offset inside pak, this way all voice files will be in the same order as they appear during gameplay). Same with scenario, scripts, etc. It makes sense since devs used dir structure with filenames during packing.


Top
   
PostPosted: Sun Oct 22, 2017 9:26 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10569
Thanks for the tip, added offset sorting to the new version of the script


Top
   
PostPosted: Mon Sep 09, 2019 12:05 pm 
User avatar

Joined: Fri Sep 06, 2019 8:58 am
Posts: 2
I´m very sorry for the necroposting , but I´m trying to translate Rewrite for ps vita. Maybe you know if vn script is inside this ".dat" files?

_________________
Don´t be afraid of the darkness little spider. No one is alone when they fight for the web of freedom
----------/\(/\-u-)//\


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

All times are UTC


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:
cron
Powered by phpBB® Forum Software © phpBB Limited