Jump to content

Recommended Posts

  • 10 months later...
Posted (edited)

Use this bms script by chrrox


 

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

 

Edited by SerJar
Posted (edited)
23 hours ago, SerJar said:

Use this bms script by chrrox


 

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

 

Interesting if this will work for .pkz files from The Amazing Spider-Man 1&2 games 

And if the script which you attached above  was created for .pkz files then why it says the .pak format? (i saw this in script string)

string NAME += ".pak"

 

P.S

Off-Topic

Hi SerJar! i know you,you are the guy which "SpideySanta" mentioning in many of his videos

good to see you on this forum!

Edited by ArtemBishop2025
Posted (edited)
4 hours ago, ArtemBishop2025 said:

Interesting if this will work for .pkz files from The Amazing Spider-Man 1&2 games 

And if the script which you attached above  was created for .pkz files then why it says the .pak format? (i saw this in script string)

string NAME += ".pak"

It will work for TASM1 on PS3 and 360. If you want to decompress the PC files, you need to replace

endian big

with

endian little

 

It outputs .pak because it's a decompressed format of .pkz

 

4 hours ago, ArtemBishop2025 said:

Hi SerJar! i know you,you are the guy which "SpideySanta" mentioning in many of his videos

good to see you on this forum!

Yeah, that's me!

Thanks, glad to be here

Edited by SerJar
  • Like 1
Posted
10 hours ago, SerJar said:

It will work for TASM1 on PS3 and 360. If you want to decompress the PC files, you need to replace

endian big

with

endian little

 

It outputs .pak because it's a decompressed format of .pkz

 

Yeah, that's me!

Thanks, glad to be here

Thank you for such a detailed answer.
as I understand this script is not intended for extracting individual files from .pkz
as in the case of the game Spider-Man 3 another script allowed to extract .mesh files and many other files of different formats

I wish you good luck in mastering this forum, I was registered on ZenHax and XenTax in 2016, it was very interesting to study all these topics of "Reverse Engineering" although I did not really understand anything..
it is very bad that these forums disappeared, eternal memory to them..

Posted
On 7/30/2025 at 8:25 PM, SerJar said:

Use this bms script by chrrox


 

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

 

Thanks!

And one thing.

Right now GC/Wii game decompilation becoming a thing, I noticed there's one .elf file with debug symbols lefted in Wii version of Monster vs. Aliens.
Maybe we can decompile it in order to find out more about .pak reading structure and other Goliath stuff as well.

Posted (edited)
6 hours ago, ImFellingLucky said:

Thanks!

And one thing.

Right now GC/Wii game decompilation becoming a thing, I noticed there's one .elf file with debug symbols lefted in Wii version of Monster vs. Aliens.
Maybe we can decompile it in order to find out more about .pak reading structure and other Goliath stuff as well.

Lucky for you we already know enough about the engine!

There is a modding toolkit in development rn. It will most likely support almost every goliath game except for PS2 and PS4 ports

Idk if this is allowed but < removed by moderator - rule 12 > (it's not allowed, unfortunately)

Edited by SerJar

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...