This is archived copy of currently unavailable Nem's Tools website, restored from Web Archive.
Download section now provides links to both Web Archive and to this unofficial Github mirror.
GCFScape FAQ - NemPosted: Jun 20th, 2004 - 11:37:59 am
Q.

When I launch GCFScape I get the following error message:
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

A.

GCFScape v1.4.0 and up is written in C++ .NET v2.0 and such as requires the .NET runtimes to run. See the downloads page for more information.

Q.

When I launch GCFScape I get the following error message:
"The application failed to initialize properly (0xc0000135). Click ok to terminate the application."

A.

GCFScape is written in C++ .NET and such as requires the .NET runtimes to run. See the downloads page for more information.

Q.

When I launch GCFScape I get the following error message:
"A required .DLL file, MSCOREE.DLL, was not found."

A.

GCFScape is written in C++ .NET and such as requires the .NET runtimes to run. See the downloads page for more information.

Q.

Are GCF files compressed archives?

A.

No.

Q.

What are GCF files then?

A.

GCF (Assumed to stand for Game Cache File) files can best be compared to a virtual file system not unlike FAT or other common file systems. The virtual file system supports meta data, file fragments, checksums and other minor features. GCF files are the backbone of Steam's content delivery system.

Q.

Why do I have to close Steam to open a GCF file?

A.

GCFScape uses a technique called file mapping to directly access data in a GCF file as you would data in memory. This is a useful technique because it means GCFScape doesn't have to read tons of data into memory to read a GCF file and it can read a GCF file without having to seek all over the place.

Because Steam opens GCF files in read/write mode and is liable to change the contents of any GCF file at any time, GCFScape requires that you close Steam. If Steam was open and it changed the contents of a GCF file while it was mapped, GCFScape would become unstable and likely crash.

Q.

When I open a package I get the following error message:
"Failed to open file."

A.

GCFScape requires strict read rights to a package file to maintain stability. Make sure the package file is not open in any other program including Steam. As a work around you can enable Volatile Access from the Options menu. Note: this may cause GCFScape to become unstable if Steam is updating the package you have open.

Q.

When I open a GCF file I get the following error message:
"Invalid GCF version number (vX)."

A.

GCFScape does not know how to read the GCF file version you are attempting to open. This could be because it is an old GCF file version that I haven't yet added support for (due to the fact that I don't know what the format is) or a new GCF file version that a recent Steam update produced. Either way let me know.

Q.

When I open a package I get the following error message:
"Corrupt file."

A.

GCFScape will display this error when it maps a package file to memory only to find there is not enough data in the file for the resulting map. This may or may not mean your file is corrupt but almost certainly means GCFScape would crash it continued to load your package file.

Q.

When I open a package I get the following error message:
"Failed to map view of file."

A.

GCFScape will display this error when the system call MapViewOfFile() fails. This can happen on older operating systems with primitive virtual memory management. As a work around you can disable File Mapping from the Options menu. Note: disabling File Mapping will incur a memory and performance penalty.

Q.

When I press the Extract button, a Browse for Folder dialog appears but there is no directory tree to allow me to select a folder.

A.

There is an unfortunate bug with the .NET framework that causes this dialog to operate incorrectly. This is a pretty rare occurrence, but there is a workaround:

  1. Close GCFScape.
  2. Open the gcfscape.cfg file, located in your GCFScape directory, in notepad.
  3. Set the GCFScape.ExtractDirectory argument to a folder on your hard drive such as C:\.
  4. Open GCFScape and extract your file.
Q.

When I extract a file I get the following error message:
"Error writing [filename] (File contains no physical data to write)."

A.

This error occurs when you attempt to extract a file that has no physical data associated with it. This is a file that exists in the directory tree but which Steam has not yet downloaded. Use Steam to make sure the file is fully acquired.

Q.

How do I create a GCF file?

A.

As of yet, not enough is known about the GCF file format to programmatically create one. There are still plenty of unknown fields that need an understanding before a GCF file can be created. That said there is also no guarantee that creating a GCF file is all that is needed for Steam to recognize and make use of it. Some other registration might be required and may not be possible without hacking Steam. For these reasons I have no plans to add the ability to create a GCF file.

Q.

How do I modify a GCF file?

A.

The purpose of the GCF file is to make it easy for Steam to update Valve's software. When a new version of a program (say CS) is released, all Steam has to do is look in the CS GCF file and compare versions (hashes) of each file to determine if each file needs to be added, updated or removed. Because of this, if you were to modify a file, Steam would interpret this as meaning that the file is out of date and redownload the correct version of the file.

Steam does, however, provide an interface to add or overwrite a file. To add or overwrite a file simply place it in the corresponding directory in the Steam\SteamApps\[EMail]\[GCF File] directory on your hard drive. You might have to create the appropriate subdirectories.

Q.

Will GCFScape be able to create or modify GCF files in the future?

A.

Not likely.

Ask a question...

Modified: Jan 17th, 2006 - 10:33:36 pm[ 83 Comments ]

[ 1 2 ]

1. NemModified: Jul 19th, 2004 - 10:46:02 am

There are really two issues:

When will I be able to modify the contents of a GCF file?
The purpose of the GCF file is to make it easy for Steam to update Valve's software. When a new version of a program (say CS) is released, all Steam has to do is look in the CS GCF file and compare versions of each file to determine if any file needs to be updated or added. Because of this, if you were to modify a file, Steam would interpret this as meaning that the file is out of date and redownload the correct version of the file.

When will I be able to create a GCF file?
As of yet, not enough is known about the GCF file format to programmatically create one. There are still plenty of unknown fields that need an understanding before a GCF file can be created. That said there is also no guarantee that creating a GCF file is all that is needed for Steam to recognize and make use of it. Some other registration might be required and may not be possible without hacking Steam.

Because of the above reasons I have no plans to add the ability to create or modify GCF files. When all is said and done there is no real advantage, no guarantee it will work, and no requirement for it for custom mods or mod customization.

Nem

[Edit]

Moved to FAQ.

2. dark_2oo4Posted: Sep 16th, 2004 - 7:21:48 am

i've got a big problem over here, i just finished pre-loading Half-Life 2 and i want to extract the sounds and listen to them :), but i get an error like: (this is when i press the extract button):

An unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will be shut down immediatly.
The current thread must set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.

(that was the error) - if i click continue nothing happens, so, what's the deal then?? (i must say that i just installed WindowsXP SP2 included few weeks ago, i don't think that's the problem)

3. BluefangPosted: Sep 16th, 2004 - 12:37:35 pm

I beleive that the HL2 cache files are encrypted and will only be unlcked when you buy the game. ot somthing like that.

4. NemPosted: Sep 16th, 2004 - 4:47:06 pm

It's another fun bug with the FolderBrowserDialog (a bug that currently has no fix). In v1.1 of the .NET framework, if the thread apartment is not in STA mode, the FolderBrowserDialog will display only without a directory tree to select a folder from. This confused a lot of developers so in v1.1 SP 1 and v2.0 Beta an exception is thrown instead (which makes it nice and difficult for us developers to manage because it is not consistent).

This all stems from the fact that you can't set the apartment state in a C++ .NET application (for complex reasons).

The next version of GCFScape will contain a workaround: if GCFScape detects that you are in STA mode the FolderBrowserDialog will be displayed, otherwise a dialog that lets you type in the folder will be displayed. The next version is actually complete, just awaiting the next HLLib for release.

5. FinesseModified: Sep 28th, 2004 - 11:03:15 pm

Hay dudes,
I'm kinda new to this game. exploding
When i try to extract the Counter-Strike.gcf my computer locks up, this only happens when I try to extract a folder that is 'large' . Any help would be greatly appreciated.

Regards,
Finesse

6. NoBodyPosted: Sep 29th, 2004 - 3:29:24 am

it will be working hard for a few minuts, the program might display as not responding while this i going on.
if it is in fact lockup try posting the log

7. SoulPosted: Oct 21st, 2004 - 12:56:24 pm

i get the error "CLR error: 8007000b",i never used to get this error but then i formatted and reinstalled windows like a week ago and i hasnt worked sincesad

8. NemPosted: Oct 21st, 2004 - 6:54:16 pm

I suspect it is a problem with your .NET installation, but I will have to research the error first.

9. SoulPosted: Oct 23rd, 2004 - 12:54:04 am

i redownloaded the dotnetfx.exe and installed it again,the same problem occuredsad

10. SoulPosted: Oct 23rd, 2004 - 11:39:06 am

dont worry its working now,it was that damn parite virus


11. NemPosted: Oct 24th, 2004 - 1:28:56 pm

Thanks for the info, glad you were able to figure it out.

happy

12. z3r0Posted: Feb 18th, 2005 - 9:43:10 pm
ok I am done making a skin and when i go to the copied version of css it wont open it says
Error: unexpected exception in populate tree() anyone know what i can do to fix it? sad

13. NemPosted: Feb 18th, 2005 - 10:22:25 pm
First off, if Volatile Access is enabled, disable it. It is potentially unstable by its nature if Steam is manipulating a GCF file (and several patches were recently released). If the problem persists, please post the stack trace (the exception error message should give you a details view, that is the stack trace).

14. EyeRisePosted: Feb 27th, 2005 - 9:32:34 pm
ok, how do i fix the fact that it keeps saying "Invalid file" blah blah blah. Steam is closed, but it won't work when i try to open a .bsp file. plz help

15. NemModified: Feb 27th, 2005 - 10:15:33 pm
GCFScape only supports Half-Life .bsp files (not, for example, Source .bsp files). You can use the bspzip.exe program that comes with the Source SDK to extract the contents of Source .bsp files.

16. devilmayPosted: Mar 2nd, 2005 - 9:35:41 pm
folderah

17. SandMansMomPosted: Feb 21st, 2006 - 8:21:03 am
Your GFCScape is a very great tool!

Is there a way to edit the .ent files directly in GFCScape?

The way I tried does not work...

I wanted to modify the entitie-files so I could set the number of
players which are needed to capture a flag to one.

I opened the files with wordpad and changed the "numcap" to one
but it does not save the changes :-(


help please

ps where is my comment?

18. NemPosted: Feb 21st, 2006 - 4:21:02 pm
There is no way to edit .ent files in GCFScape. If you are talking about Half-Life .bsp files, then you can import .ent files with ripent.exe. If you are talking about Half-Life 2 .bsp files then I'm sure there is a tool that will let you edit entity information, I just don't know what it is called.

19. SandMansMomPosted: Feb 23rd, 2006 - 10:07:18 am
Thanx for replying Nem...

actually there IS a tool cool

maybe someone needs it too...

it s called "entspy"

can be found here

http://www.geocities.com/cofrdrbob/entspy.html


cya

20. GreathoofPosted: Jun 16th, 2007 - 10:46:52 am
Hey,Nem!

I want to switch 2 folders(skin folders) in a game's .gcf file. I have GCFscape,but dont know how to use it... and how can switch 'em.:(
Pls help me!
Thanks!

Bye

(oh,and your name in Hungarian(nem) means "no" :) )

21. NemPosted: Jun 16th, 2007 - 5:34:04 pm
You can't modify any .gcf files with GCFScape (or any other tool I know of). The second last question in the FAQ should provide you with the information you need (extract the skins from the .gcf file and place them in the correct system folder).

I've noticed the word "nem" in other dialects, always wondered what it meant.

miam

22. chesterPosted: Jun 19th, 2007 - 12:11:50 pm
Hi,

I installed GCFscape and also installed the .NET crap from dotnetfx.exe, which I DLed from microsoft's website. however, everytime i start GCFscape, I get an error message as follows:

"This application failed to start because the application configuration is incorrect. Reinstalling the application might fix this problem"

Well I headed over to your GCFscape FAQ and it told me to install >NET framework, which I already had. So I reinstalled it just to make sure and got the same error message. What am i doing wrong?

Thanks, Sam

23. NemPosted: Jun 19th, 2007 - 4:29:05 pm
I released an updated version of GCFScape earlier today that fixed some problems with the dependancies of the original 1.6.4 release. Can you redownload GCFScape and give it another try?

24. KajanisPosted: Jun 30th, 2007 - 8:34:42 pm
Hi,Nem!

Where can I find more detailed information about .NCF file structure?where

25. NemPosted: Jul 1st, 2007 - 4:23:03 am
It's basically the .gcf file format, but with the sections pertaining to internal data storage removed. You can find the source code GCFScape uses for reading .ncf files as part of HLLib. Most fields are known, but there are still a few that are not (namely those shared with the .gcf format).

free

26. TheGingerNinjaPosted: Jul 21st, 2007 - 5:31:21 pm
Hi Nem. Dont really get GCFScape and im not entirley sure if it can be used for the use I want it to. Basically, I need a program of some sort (I got told by someone that GCFScape does the job) that can decompile .BSP map files into .VMF Files, which can be seen and edited in hammer. If GCFScape can be used to do this, can you please tell me how, and if not, could any body please tell me a program which does do the things I need. Thank you very much in advance

Joshua exhausted

27. TheGingerNinjaPosted: Jul 21st, 2007 - 5:50:46 pm
Nevermind. I now have a program that succesfully does what I want. Thankies anyway though :) yeahbaby

28. UnarmedPosted: Sep 23rd, 2007 - 6:16:46 am
Hello...

This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

I get this error with the 2.0 framework installed. I've tried it on a WinXP 64bit verison and one without. I just fetched the .net 3.0 framework for the x64 and that did didnt change anything... Anyone know whats up?

31. SPARTAN117Posted: Nov 12th, 2007 - 2:48:08 pm
well, nem, im just confused, because how ca you mod a skin if it dosnt exist?

32. BluefangPosted: Nov 14th, 2007 - 10:48:22 am
Well, either the game didn't cache those files on the local file system when the game was run OR on the other computer you extracted the contents of the GCF files. So if you have not done so yes, extract the needed resources from your GCF files and mod away.

The stuff you looking for is probably going to be in the 'source materials.gcf' or 'source models.gcf'. Though I admit that the file names and contents may have changed since I last poked around in the SteamApps folder.

33. SPARTAN117Posted: Nov 14th, 2007 - 2:58:34 pm
ok, thanks
ill also try re-installing HL2 if the problem persists

34. SPARTAN117Posted: Nov 14th, 2007 - 3:07:36 pm
ok it worked, thanks alot!

35. MarssonModified: Nov 19th, 2007 - 4:06:50 am
Hiya nem!
I want to change the music in Half Life 2 with my own music, is that possible, like FAKEFACTORY did with his cinematic mod.
If it is, do i have to swap some maps in one of the games gfc?, I've read in some other forums that you'll have to rename and create new maps and put the music in the new maps, but honestly, I didn't understand a shit about what they were talking about >.< So you're my last hope, sort of. . .

36. timtimPosted: Mar 25th, 2008 - 7:52:56 pm
First of all i have to say GCFScape is a great tool!

However i have a problem i can't find a solution for.
I'd like to get the companion cube from portal and add it to a dystopia map (as an easter egg)(dystopia is a source mod).

i extracted the model files from:
root/portal/models/props
and added them to:
\Steam\steamapps\SourceMods\dystopia_v1\models\props

I did the same with the textures from:
root/portal/materials/models/props
to:
\Steam\steamapps\SourceMods\dystopia_v1\materials\models\props

as soon as i restarted source SDK and hammer i could select the box but none of the textures.

did i do something wrong? Or does the model file look for the texture in a path set in the file itself? if yes is there a way to find out or to change the dir?

plz help me!watermelon

37. DefaultPosted: Apr 30th, 2008 - 7:07:29 pm
I just keep getting the same problems: Either it says that there was an "Error loading file" and that there was a "system Error (0x00000002):
The System cannot find the file specified"

or it says that "MDL version 48 not supported"
or it's the same error as above but with "version 46 not supported".

Any help appreciated - great piece of software :)

38. NemPosted: May 8th, 2008 - 12:36:10 pm
GCFScape doesn't load .mdl files...

39. Null-EntityPosted: Jun 29th, 2008 - 4:52:30 am
Hey I am getting the

When I launch GCFScape I get the following error message:
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem."

Error the only problem it i DO have MS .Net 2.0 installed, yet I still get the error.

It worked just fine on windows 2000 but I recently installed Server 2003, would this create a problem ?

40. NemPosted: Jul 9th, 2008 - 9:53:06 pm
Try also installing this.

41. Null-EntityPosted: Jul 11th, 2008 - 8:47:54 pm
Works a treat, Much appreciated dude :D

42. Hiero3Q8Posted: Dec 11th, 2008 - 4:01:10 am
Hi.. I need help here with this GCFScape.. now i could open the "winui.gcf" and there are lists of folders inside : friends (87 items), install (0 items), reslists (1 items), servers (42 items), steam (4 items), support (5 items) and a message below says C:\Program Files\Steam\steamapps\winui.gcf loaded. then what should i do now?? pls answer thanks waaa

43. Hiero3Q8Posted: Dec 11th, 2008 - 4:09:37 am
ah nevermind, now i got new problem.. it says i could not connected due to problem with internet connection or Steam network... visit www.steampowered.com.. what should i do?

44. NunxPosted: Dec 13th, 2008 - 7:13:22 am
I got the new version of gcfscape and every time i get a sound file from left 4 dead gcfs. It says NCF files are indexes and do not contain any file data

HELP NEM!

45. NemPosted: Dec 13th, 2008 - 3:46:34 pm
Hiero3Q8:
ah nevermind, now i got new problem.. it says i could not connected due to problem with internet connection or Steam network... visit www.steampowered.com.. what should i do?

Visit http://www.steampowered.com and ask them...

Nunx:

I got the new version of gcfscape and every time i get a sound file from left 4 dead gcfs. It says NCF files are indexes and do not contain any file data

HELP NEM!

You don't need GCFScape to open the sound files, they are on your hard drive. (Look in ...\Steam\steamapps\common\left 4 dead\left4dead\sound.)

What you do need GCFScape for is to open ...\Steam\steamapps\common\left 4 dead\left4dead\pak01_dir.vpk which contains materials and models.

[ 1 2 ]

Nem's Tools v2.0 © 2006 Ryan Gregg.
Execution time: 0.07963s; Queries: 14.