Lords of Football - *.gw

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

Lords of Football - *.gw

Post by AlphaTwentyThree »

Hi! I'd be happy to get help with the script for these gw files: http://*USE_ANOTHER_FILEHOSTING*/c96e489 ... /lof_gw.7z
Thanks! :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Lords of Football - *.gw

Post by AlphaTwentyThree »

Nobody got an idea? :\
atom0s
Posts: 250
Joined: Sat Dec 27, 2014 8:49 pm

Re: Lords of Football - *.gw

Post by atom0s »

From the look of this, these files have their 'header' table appended to the bottom of the file. The last 0x34 bytes appear to be what you are interested in looking at.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Lords of Football - *.gw

Post by AlphaTwentyThree »

Ok, got it at least for the small files:

Code: Select all

# extract the dlc**0000.gw of "Lords of Football"
#
# written by AlphaTwentyThree of Zenhax
#
# script for QuickBMS http://quickbms.aluigi.org

goto -0x2c
get INFO long
goto INFO
getDstring DUMMY 0xc
get FILES long
math FILES /= 0x10
goto INFO
for i = 1 <= FILES
   get UNK1 short
   get UNK1 short
   get OFFSET long
   get SIZE threebyte
   get DUMMY byte
   get NAMEOFF long
   savepos MYOFF
   xmath NAMEOFF "MYOFF + NAMEOFF - 0x10"
   goto NAMEOFF
   get DUMMY short
   get NAME unicode
   goto MYOFF
   if SIZE != 0
      log NAME OFFSET SIZE
   endif
next i


However, there's also a 3.2 GB 1GB-split file that has a similar structure but is missing the TOC and correct name offsets.