Red Faction 2 *.packfile + *.toc_group

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Red Faction 2 *.packfile + *.toc_group

Post by makc_ar »

Game: http://store.steampowered.com/app/20550/
Image
Archive format: https://hwiegman.home.xs4all.nl/filefor ... chives.txt
*.packfile + *.toc_group:

Code: Select all

// toc_group file has the details, packfile has the file data

X - filename (null)
X - directory Name (null)
4 - Unknown (2)
4 - Unknown (1)
X - file filename (dirName + filename) (null)
4 - numFiles?

// for each file
  X - Filename
  4 - File Size
  4 - File Offset

*.peg:

Code: Select all

4 - Header (GEKV)
4 - Version (6)
4 - Directory Size (first file offset = dirSize + 32)
4 - File Data Size
4 - numFiles
4 - null
4 - numFiles
4 - Unknown (16)

// for each file
  2 - Unknown
  2 - Unknown
  4 - Unknown
  2 - Unknown
  2 - Unknown
  48 - Filename (null)
  4 - File Offset [+ first file offset]
 
X - File Data

Example *.packfile + *.toc_group: https://mega.nz/#!ht5yWKpS!R7qx67p10lJJ ... MGwYb2-yc4
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Red Faction 2 *.packfile + *.toc_group

Post by aluigi »

http://aluigi.org/bms/redfaction2.bms

Only Permanent_data.toc_group must be extracted/selected because the other files are already non-archived.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Red Faction 2 *.packfile + *.toc_group

Post by makc_ar »

Thanks a lot aluigi!