Need help with decomressing The Amazing Spider-Man 2 .pkz file

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
SerJar
Posts: 3
Joined: Sun Jun 12, 2022 11:42 am

Need help with decomressing The Amazing Spider-Man 2 .pkz file

Post by SerJar »

Hey guys, I really need help with decompressing BaseSpiderMan.pkz file

I tried to do it myself by using this script from chroxx that he made for SMEOT

Code: Select all

endian big
comtype zlib_noerror
get idstring long
get chunksize long
get baseoff long
get unkown long
get files long
get totalzsize long
get totalsize long
get name filename
set offset baseoff
get NAME basename
string NAME += ".pak"
savepos tmp
for i = 0 < files

if i == 0
  get size long
else
  goto tmp
  get old long
  savepos tmp
  get size long
  math size - old
endif

if totalzsize >= 0x8000
  set zsize 0x8000
else
  set zsize totalzsize
endif

clog MEMORY_FILE offset zsize size
append
log name 0 size MEMORY_FILE
append
math offset += 0x8000
math totalzsize - 0x8000

next i


This script worked with TASM1 files, but doesn't work with TASM2 because TASM2 has different file structure.

I edited it and this is how it looks, but still doesn't work

Code: Select all

endian little
comtype zlib_noerror
get idstring long
get chunksize long
get baseoff long
get unkown long
get files long
get totalzsize long
get totalsize long
get name filename
set offset baseoff
get NAME basename
string NAME += ".pak"
savepos tmp
for i = 0 < files

if i == 0
  get size long
else
  goto tmp
  get old long
  savepos tmp
  get size long
  math size - old
endif

if totalzsize >= 0x18000
  set zsize 0x18000
else
  set zsize totalzsize
endif

clog MEMORY_FILE offset zsize size
append
log name 0 size MEMORY_FILE
append
math offset += 0x18000
math totalzsize - 0x18000


Can anyone help me, please?

Here's the file: https://www.mediafire.com/file/si17dsfq ... n.zip/file
Last edited by SerJar on Sun Jun 12, 2022 4:39 pm, edited 2 times in total.
SerJar
Posts: 3
Joined: Sun Jun 12, 2022 11:42 am

Re: The Amazing Spider-Man 2 .pkz decompress

Post by SerJar »

also tried to use offzip but it decompresses corrupted file
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: The Amazing Spider-Man 2 .pkz decompress

Post by Ekey »

Not compressed and doesn't seem to have any entry table. There should probably be a small file with info like manifest.
SerJar
Posts: 3
Joined: Sun Jun 12, 2022 11:42 am

Re: The Amazing Spider-Man 2 .pkz decompress

Post by SerJar »

Ekey wrote:Not compressed and doesn't seem to have any entry table. There should probably be a small file with info like manifest.

My bad, I sent wrong file, now I changed the link


Last bumped by SerJar on Fri Jun 24, 2022 12:53 pm.