The Legend of Zelda: Twilight Princess HD (.pack, TMPK)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
einstein95
Posts: 64
Joined: Tue Sep 08, 2015 11:27 am

The Legend of Zelda: Twilight Princess HD (.pack, TMPK)

Post by einstein95 »

Code: Select all

comtype gzip
get SIZE asize
clog MEMORY_FILE 0 SIZE SIZE

endian big
idstring TMPK -1
get FILEZ long -1
get UNK long -1
get NULL long -1
for i = 0 < FILEZ
   get NAMEOFF long -1
   get OFF long -1
   get SIZE long -1
   get NULL long -1
   savepos TEMP -1
   goto NAMEOFF -1
   get NAME string -1
   goto TEMP -1
   log NAME OFF SIZE -1
next i


Not sure what the UNK long is, I've only tried on one or two archives.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: The Legend of Zelda: Twilight Princess HD (.pack, TMPK)

Post by spiritovod »

You can get working tool for all "pack" (TMPK) archives here: https://github.com/zeldamods/tmpk

Also, compiled to exe standalone version in the attachment. Since command-line help is kind of broken, you can read explanation for all available parameters in the main script (scroll to the end).