The Smurfs 2 PAK PS3

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

The Smurfs 2 PAK PS3

Post by cyberspeed »

Hello everyone, was wondering if these archive samples can be extracted in any way.
There are tools for contents inside that use Granny GR2 format, and I'd like to see if this game is supported.
TS2_sample.7z
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: The Smurfs 2 PAK PS3

Post by cyberspeed »

Hm, must be complex files, I assume?
Lots of people downloaded the samples, weird.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: The Smurfs 2 PAK PS3

Post by Ekey »

Code: Select all

endian big
comtype unzip_dynamic
get DATAOFF long
get FILES long

for i = 0 < FILES
   idstring "FILELINK"
   get OFFSET long
   xmath OFFSET "OFFSET + DATAOFF + 64"
   get SIZE long
   get NAME string
   clog NAME OFFSET SIZE SIZE
   
   do
      savepos TMP_OFF
      get TEST byte
   while TEST == 0x3F
   goto TMP_OFF SEEK_CUR
next i
Last edited by Ekey on Tue Nov 10, 2020 11:18 pm, edited 1 time in total.
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: The Smurfs 2 PAK PS3

Post by cyberspeed »

Thank you Ekey, sorry for late reply, got the chance to test it, it seems it skips all files but first one in the archive.
Sample2.7z

I just had realized due to 5mb limit I only included samples with one file inside instead of multiple as well.
This one above has multiple.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: The Smurfs 2 PAK PS3

Post by Ekey »

Updated
cyberspeed
Posts: 104
Joined: Wed Mar 23, 2016 5:11 am

Re: The Smurfs 2 PAK PS3

Post by cyberspeed »

Thank you Ekey, now entire game extracts flawlessly.
The GR2 assets inside the PAKs are same format as the London 2012 video game, except it cant be extracted due to complexity, and thanks to you now The Smurfs 2 is extractable.