Jump to content

[PC] Battlefield 3 .cas / .sb / .toc


Recommended Posts

  • Members
Posted (edited)

The CAS+CAT files look to be the same as Dragon Age: Inquisition. The CAT file contains the directory for all the CAS files ( there must be 10 of them? ). There are no filenames in these archives.

 

+-----------------------------------------+
| Dragon Age: Inquisition *##.cas + *.cat |
+-----------------------------------------+

// The CAT file contains the directory. There are a number of CAS files that contain the file data.
// The CAT file is named "cas.cat" and the CAS files are named "cas_##.cas" where ## starts from "01".
// Uses ZLib Compression on some files


// CAT FILE

  // HEADER
    16 - Header (NyanNyanNyanNyan)
    
  // DETAILS DIRECTORY
    // for each file (32 bytes per entry)
      20 - Hash?
      4 - File Offset (Relative to the start of the referenced ##.cas file. Points to the offset after the "null" in the CAS file)
      4 - File Length
      4 - CAS File Number (1/2/3...)
      

// CAS FILES

  // FILE DATA
    // for each file
      4 - File Entry Header (250,206,15,240)
      20 - Hash? (same as in the CAT file)
      4 - File Length (same as in the CAT file)
      4 - null
      
      if (compressed){
        // for each compressed block){
          4 - Decompressed Block Length (BIG)
          4 - Compressed Block Length (BIG)
          X - File Data (ZLib Compression)
          }
        }
      else {
        4 - Uncompression Header? (206,209,178,15)
        X - File Data (no compression)
        }

 

Edited by wattostudios
  • Members
Posted

The FB2 file is just a ZIP file that's been encrypted with an XOR key, the same as the TOC files as per https://github.com/NicknineTheEagle/Frostbite-Scripts/blob/master/frostbite2/dumper.py . I don't know whether there's any tool specifically for the FB2 files or not, but using the details at that link, you should be able to hack the script to dump out the decrypted ZIP file.

 

For the SB+TOC files, the scripts at that same link should be able to dump out the files with their filenames.

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...