Extracting Music From GFC Files -(Portal: Still Alive)

If you had the delight of picking up Portal from Valve and beat it, you know all about cake, the lies, and the masterful end song. I found that upon beating it, I kept humming the song and wishing to know the words. Googling to find the song in any format I found the a YouTube link, awesome. That satiated my ears for a little bit, but I found that my MP3 player, desktop, and laptops were all missing the song while I worked. So, I set out to find how to obtain the song from the data files. Most games store songs as either WAV files or MP3 files and I figured there was a good chance that Valve did just that! I was right and it took a little working.

Digging into the directory structure you can find the following directory: \Steam\steamapps\*. This directory holds two very large files name “portal english.gcf” and “portal content.gcf”. It is a common practice for game makers to use a proprietary file format to store contiguous game data in a single file. This allows known pointer offsets in files to allow fast reading from disk. It also turns out that the file extension GFC is commonly for Grid Cache Files. Which is a common format for Steam released games. It also turns out there are many developer out there making programs capable of browsing these data caches without having to hack them yourself (you should, just for fun!). One that I found useful was GFCScrape.

Extraction Tutorial

  1. Download GFCScrape & install (or any other GFC editor/browser)
  2. Start GFCScrape
  3. File => Open
  4. Navigate to your Steam installation directory (e.g. C:\Program Files\Steam)
    Open The Main Portal CFG
  5. Open the directory “steamapps” (e.g. C:\Program Files\Steam\steamapps)
  6. Open the file “portal content.gcf”
  7. Within GFCScrape, navigate to: root\portal\sound\music\
    Navigating The CFG
  8. Drag and drop the file “portal_still_alive.mp3” to your desktop or mp3 directory

Quick Links

Valve Wiki Article About GFCScrape

GCFScrape Home Page

  • Reddit
  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • Digg

3 Responses to “Extracting Music From GFC Files -(Portal: Still Alive)”

  1. Sean said:

    Oct 31, 07 at 11:38 am

    Still Alive is an awesome song :)

    Catchy too… someone added it to LyricWiki (I think) the same day Portal came out:
    http://lyricwiki.org/Jonathan_Coulton:Still_Alive

  2. alasdair said:

    Dec 05, 07 at 11:10 am

    thanks been looking on how to get that tune, I’ve converted it to a wav and have the opening bars as a ringtone … I now officially cannot be outgeeked :)

    also love the 2nd opening tune to TF2 so I’ve done the same with that

    it’s just like having windows95 again :)

  3. Leo said:

    Apr 24, 08 at 11:17 am

    Thanks, I’ve been looking for a way to extract these files… Also a way to get to the commentary.


Leave a Reply