Skylanders Swap Force *.pak

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Skylanders Swap Force *.pak

Post by AlphaTwentyThree »

Hello! I need help with the extraction of these pak files: http://*USE_ANOTHER_FILEHOSTING*/2a938de ... ssf_pak.7z

Every help is apreciated!
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Skylanders Swap Force *.pak

Post by AlphaTwentyThree »

I've written a temporary script but I'm in need for the specific offset where the TOC starts. I see absolutely no system in that... Here's my script:

Code: Select all

idstring \x1a\x41\x47\x49
endian big

goto 0xc
get FILES long
goto 0x2c
get NAMEINFO long
goto NAMEINFO
for i = 0 < FILES
   get NAMEOFF long
   savepos MYOFF
   xmath GO "NAMEINFO + NAMEOFF"
   goto GO
   get NAME string
   putArray 0 i NAME
   goto MYOFF
next i

goto 0x8
get CALCSIZE long
goto 0x20
get BIAS long
if BIAS == 0
   xmath TOC "0x38 + CALCSIZE - FILES * 0x10"
else
   cleanexit
endif

goto TOC

for i = 0 < FILES
   get FID threebyte # not needed
   get UNK1 byte
   get OFFSET long
   get SIZE long
   get UNK2 long
   getArray NAME 0 i
   log NAME OFFSET SIZE
next i

Here are some more samples: http://*USE_ANOTHER_FILEHOSTING*/2bec51b ... mples_2.7z
You can see that the system doesn't work if the value at 0x20 isn't zero. Any ideas?