Gameinfo.txt and Hammer question [SOLVED]
"Setup file 'Gaminfo.txt' doesn't exist in subdirectory 'c:\program\files\steam\steamapps\common\portal 2\portal2'. Check your -game parameter or VCONFIG setting."
I used the search function on this forum and I also checked Google but I couldn't find any fitting answer. I was told that I maybe should reinstall Portal 2 but as I said that this is impossible at the moment. Is there another way to get Hammer working correctly?
Of course the data does exist in the right directory.
Then I have another question in case my Hammer Editor can be fixed or something; it's about the pits outside the testchambers. How do I create these foggy areas? You know, very deadly, extremly deadly... Cough Is there an entity or a brush or something like that? I'd try several things, but it never worked. It would be nice, if you could help me.
This problem was solved by copying my Steam folder into another directory. Thanks to everybody who tried to help me here! ^^
1) Did you copy the whole steam folder?
If so: did you copy it from a 32-bits to a 64 bits computer?
64-bits computer install steam in c:/program files(x86)/steam/steamapps
c:\program\files seems strange to me too.
Where is your gameinfo.txt? is it in the steam/steammapps/common/portal 2/portal2?
Does your gameinfo.txt look like this?
"GameInfo"
{
game "PORTAL 2"
title "PORTAL 2"
GameData "portal2.fgd"
gamelogo 1
SupportsDX8 0
SupportsXbox360 1
FileSystem
{
SteamAppId 620 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
//
// The code that loads this file automatically does a few things here:
//
// 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
// 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
// For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
// 3. For the first "Game" search path, it adds a search path called "MOD".
// 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
//
//
// Search paths are relative to the base directory, which is where hl2.exe is found.
//
// |gameinfo_path| points at the directory where gameinfo.txt is.
// We always want to mount that directory relative to gameinfo.txt, so
// people can mount stuff in c:\mymod, and the main game resources are in
// someplace like c:\program files\valve\steam\steamapps\half-life 2.
//
SearchPaths
{
Game |gameinfo_path|.
}
}
}
Just my few first thoughts, let us know if you tried some of this and/or if you have other information 
The foggy area's are created with a fog_controller; there are some pre-sets in global_ents.vmt, try and see which one fits the best?
lpfreaky90 wrote:
Soo much variables that can gone wrong:
1) Did you copy the whole steam folder?
If so: did you copy it from a 32-bits to a 64 bits computer?
64-bits computer install steam in c:/program files(x86)/steam/steamapps
Oh, I forgot to mention it. My old computer was a 32-bits computer, my new one is a 64-bits computer.
lpfreaky90 wrote:
Where is your gameinfo.txt? is it in the steam/steammapps/common/portal 2/portal2?
Yes, it is.
lpfreaky90 wrote:
Does your gameinfo.txt look like this?
```
"GameInfo"
{
game "PORTAL 2"
title "PORTAL 2"
GameData "portal2.fgd"
gamelogo 1SupportsDX8 0
SupportsXbox360 1FileSystem
{
SteamAppId 620 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.//
// The code that loads this file automatically does a few things here:
//
// 1. For each "Game" search path, it adds a "GameBin" path, in \bin
// 2. For each "Game" search path, it adds another "Game" path in front of it with _ at the end.
// For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
// 3. For the first "Game" search path, it adds a search path called "MOD".
// 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
////
// Search paths are relative to the base directory, which is where hl2.exe is found.
//
// |gameinfo_path| points at the directory where gameinfo.txt is.
// We always want to mount that directory relative to gameinfo.txt, so
// people can mount stuff in c:\mymod, and the main game resources are in
// someplace like c:\program files\valve\steam\steamapps\half-life 2.
//SearchPaths
{
Game |gameinfo_path|.
}
}
}```
Just my few first thoughts, let us know if you tried some of this and/or if you have other information
Yes, it does. Maybe there is something different. I am going to test it later by pasting your text in the file. (Of course, I made a backup)
lpfreaky90 wrote:
The foggy area's are created with a fog_controller; there are some pre-sets in global_ents.vmt, try and see which one fits the best?
Thanks. 
**EDIT:**
About the path: You are right. It's not "c:\program\files [...]", it is "c:\program files [...]"
Sorry about that.
If that fails, I would recommend backing up just the things you know you need (VMF's, prefabs, etc), and then completely reinstalling. Then put the files back in their corresponding folders once you know hammer is working right.
p0rtalplayer wrote:
(including the sdk files) is in /Program Files (x86)/ and not /Program Files/.
I installed Steam normally by downloading it. Then, I replaced the folder. That means, Steam is already in /Program Files (x86)/.
p0rtalplayer wrote:
If that fails, I would recommend backing up just the things you know you need (VMF's, prefabs, etc), and then completely reinstalling. Then put the files back in their corresponding folders once you know hammer is working right.
I already reinstalled Hammer once.
not from hammer
**EDIT:**
Big, big edit. The thing about the \program files\ gave me an idea. Make more- err, copying my whole Steam-folder into the normal \program files. After doing that, I could launch Hammer normally.
Thanks for all the help, everybody. 
Hi
watch my Tutorial 2013 of how to fix hammer errors like
- gameinfo.txt missing
- visual elements missing
- fps lagg
can be found here
http://www.youtube.com/watch?v=pJ2c674jrrc
Helped alot of people out allready:)
The errors are getting caused by the new steam update. sinds the new steam update got released, the games installation paths got changed, and Valve haven't changed that in source sdk yet, so if you get the errors it simply means that the path you try to run Hammer from doesn't exist.
Follow the simple steps in my tutorial of how to fix this, and you're hammer will work perfectly =) ![]()