GCF archive

From Valve Developer Community
(Redirected from GCF)
Jump to: navigation, search
For the modern replacement used by the Left 4 Dead engine branch Left 4 Dead engine branch and later, as well as Source 2013 Source 2013 and Source 2 Source 2, which is also backported to Source 2004 Source 2004 to Source 2009 Source 2009, see VPK (file format).

Originally an acronym for Gazelle Cache File (Gazelle was an early codename for Steam), GCF is now commonly taken to mean Game Cache File. GCFs are the archive files in which Steam games are stored and official content is downloaded. GCF files can be shared between games (e.g. source engine.gcf), and are stored in the Steam\SteamApps\ folder.

When a GCF is created or updated, the disk space required for it is reserved and content is subsequently downloaded to fill it. This process minimizes fragmentation, but can be slow and appear to make the Steam client freeze with older, or lower-end hardware and/or software.

GCF files cannot be altered, and if they could Steam would correct them when it next ran, but their contents can be viewed. Ryan "Nemesis" Gregg is the developer of HLLib, a library that can among other features read and extract GCF files, and its popular implementation GCFScape. VTFEdit is another tool that can browse GCF's even when Steam is running; the only limitation is the lack of the ability to extract folders. There is also VTF Explorer utility which allows browsing GCF files (you can browse several GCF's even when Steam is running), extracting their contents and building statistical info about files which weren't fully downloaded.

The GCF format makes keeping tabs on and moving games much easier, ensures time is not wasted by the operating system indexing or otherwise handing the game files, and keeps important data away from any custom files the user might have, which are stored under their /<account>/<game>/ folder.

GCF files can also be encrypted and stored on user's hard disks before the software it contains is released. This means that people are able to start using the software as soon as it is released and spreads the bandwidth usage on the content distribution servers by allowing downloading weeks before the release of the software.

GCF is no longer being used anymore since the transition to SteamPipe in 2013. It has been replaced with VPK, with all games as far old as Source 2004 Source 2004 has been updated to load VPK files (Steam is only required to load depot VPK files for Source 2009 and earlier) instead of GCFs.

Links

External links