Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[Vita] AIR [Prototype Ltd. pak files?]

Featured Replies

  • Author
  • Localization

zander1995, posted Tue Oct 11, 2016 7:46 am (17959)


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
  • Author
  • Localization

aluigi, posted Tue Oct 11, 2016 9:00 am (17961)


I suspect that tbl uses some sort of (unknown) compression, no idea.
  • Author
  • Localization

zander1995, posted Thu Oct 13, 2016 6:32 am (18021)


Thanks for looking anyway.
  • Author
  • Localization

aluigi, posted Sat Oct 21, 2017 6:53 pm (27538)


@RikuKH3
Am I wrong or that complicated code is nothing else than a sequential reading of bitfields?
0x1c, 4, 0x14 and 0x19
  • Author
  • Localization

RikuKH3, posted Sun Oct 22, 2017 1:15 am (27578)


.
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.
  • Author
  • Localization

aluigi, posted Sun Oct 22, 2017 9:26 am (27590)


Thanks for the tip, added offset sorting to the new version of the script
  • Author
  • Localization

Shadow_Galecross, posted Mon Sep 09, 2019 12:05 pm (50651)


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?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.