File System Architecture
Frostbite games organize assets in a hierarchical archive system:Layout System
Thelayout.toc file is the entry point for the entire game filesystem.
Layout Structure:
- Base Layout
- Patch Layout
- Install Manifest
Located at From FileSystem.cs:332.
native_data/layout.toc, contains:- List of all superbundles
- Install manifest with catalog definitions
- Base version number
- Catalog to superbundle mappings
Catalog System (CAS/CAT)
Catalogs are archive collections that store game assets. Catalog Structure:CAS Files (Content Addressable Storage)
CAS Files (Content Addressable Storage)
CAS files contain the actual compressed asset data. Each catalog has multiple CAS files (cas_01.cas, cas_02.cas, etc.).Data Storage:
- Assets stored by SHA1 hash
- Compressed using ZLIB, LZ4, OODLE, or ZSTD
- May be encrypted (requires decryption keys)
- Supports delta patching
CAT Files (Catalog Index)
CAT Files (Catalog Index)
CAT files index the contents of CAS archives:The ResourceManager uses CAT files to locate assets in CAS archives (ResourceManager.cs:246).
Patch Entries
Patch Entries
Patches use delta compression:The engine applies delta to base to get the patched asset (ResourceManager.cs:127).
Superbundles and Bundles
Hierarchy:1
TOC File
Superbundle table of contents (
.toc or .sb):- Lists contained bundles
- References to assets
- Dependency information
2
Bundle Organization
Bundles are typed:From AssetManager.cs:100.
- SharedBundle - Shared across levels
- BlueprintBundle - Contains BlueprintBundle entity
- SubLevel - Contains SubWorldData entity
3
Asset References
Each bundle references its contained assets by hash/GUID
Binary SuperBundles
Some games use binary superbundles (single file format):initfs (Initial Filesystem)
Theinitfs_win32 file bootstraps the filesystem on game startup.
Contents:
- SDK files (type definitions)
- Deobfuscation tables
- Compression dictionaries
- Encryption keys (encrypted)
- Engine configuration
Games like FIFA 18+ require decryption keys to access initfs contents. These keys are game-specific and not distributed with Frosty.
Path Resolution
The FileSystem class handles multi-source path resolution:Compression Types
Frostbite uses multiple compression algorithms:ZLIB
Legacy compression (pre-2017 games)
LZ4
Fast compression (2017-2018 games)
OODLE
High-performance compression (FIFA 18+, select assets)
ZSTD
Modern compression (newer titles)
Deobfuscation
Many Frostbite files use simple XOR obfuscation:Version and Patch Detection
Frosty detects game versions and patches:Next Steps
Asset System
Learn about EBX, RES, chunks, and how assets are structured
Architecture
Understand the overall Frosty system architecture