Help unpack .tpk file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Diablomarv
Posts: 3
Joined: Mon Jul 12, 2021 8:12 am

Help unpack .tpk file

Post by Diablomarv »

Hi, I'm trying to extract the files from Exist Archive [Vita] package files, I got into the cpk and found the files I was looking for, but they're packed further.
The one I'm trying to open right now is a .tpk file with .ISF as the file header, if someone could help me with a bms file to unpack it that'd be much appreciated.

https://www.mediafire.com/file/tcmi7ivq ... 9.tpk/file
grandshot
Posts: 42
Joined: Mon Jun 07, 2021 8:20 pm

Re: Help unpack .tpk file

Post by grandshot »

Code: Select all

# Exist Archive: The Other Side of the Sky *.TPK
# script for QuickBMS http://quickbms.aluigi.org

idstring "\x0ISF"
get UNKNOWN long
get NUM_FILES long
get UNKNOWN long

savepos TABLE_POS

for i = 1 to NUM_FILES
   goto TABLE_POS
   get NAME_OFFSET long
   get FILE_OFFSET long
   get UNKNOWN long
   get FILE_SIZE long
   get UNKNOWN long
   get UNKNOWN long
   get UNKNOWN long
   get UNKNOWN long
   
   savepos TABLE_POS
   
   goto NAME_OFFSET
   get FILE_NAME string
   
   log FILE_NAME FILE_OFFSET FILE_SIZE
next i


AIF files, extractings from archive, this is a Morton swizzled DXT images, chunked by MipMaps. Format needs further research.
Diablomarv
Posts: 3
Joined: Mon Jul 12, 2021 8:12 am

Re: Help unpack .tpk file

Post by Diablomarv »

Yup, I knew they were AIF from reading the hex data. Thanks for the BMS script!
grandshot
Posts: 42
Joined: Mon Jun 07, 2021 8:20 pm

Re: Help unpack .tpk file

Post by grandshot »

Thats mean you know how work with these files?
Diablomarv
Posts: 3
Joined: Mon Jul 12, 2021 8:12 am

Re: Help unpack .tpk file

Post by Diablomarv »

I'm working on it, all anyone seems to know right now is to rip the data with a hex texture extractor tool. There are a few AIF files that people know how to view, from SOA and TOC. Those methods don't work for these tho, I tested it.