Gameinfo.txt and Hammer question [SOLVED]
Quote from Ace_StorM on April 25, 2012, 12:37 pmDue to connection problems, I istalled Portal 2 and the Hammer Editor by moving my Steam folder from my old computer to my new one. When I tried to launch Hammer, I got the following error:
"Setup file 'Gaminfo.txt' doesn't exist in subdirectory 'c:programfilessteamsteamappscommonportal 2portal2'. 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! ^^
Due to connection problems, I istalled Portal 2 and the Hammer Editor by moving my Steam folder from my old computer to my new one. When I tried to launch Hammer, I got the following error:
"Setup file 'Gaminfo.txt' doesn't exist in subdirectory 'c:programfilessteamsteamappscommonportal 2portal2'. 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! ^^
Quote from Lpfreaky90 on April 25, 2012, 12:46 pmSoo 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/steamappsc:programfiles 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?
- Code: Select all
"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 materialsdebug, materialseditor, 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:hl2cstrike on a french machine would get a c:hl2cstrike_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 filesvalvesteamsteamappshalf-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?
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
c:programfiles 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?
- Code: Select all
"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 materialsdebug, materialseditor, 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:hl2cstrike on a french machine would get a c:hl2cstrike_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 filesvalvesteamsteamappshalf-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?
Quote from Ace_StorM on April 25, 2012, 1:21 pmThis looks very helpful.
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/steamappsOh, 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?
- Code: Select all
"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 materialsdebug, materialseditor, 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:hl2cstrike on a french machine would get a c:hl2cstrike_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 filesvalvesteamsteamappshalf-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:programfiles [...]", it is "c:program files [...]"
Sorry about that.
This looks very helpful.
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.
Yes, it is.
- Code: Select all
"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 materialsdebug, materialseditor, 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:hl2cstrike on a french machine would get a c:hl2cstrike_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 filesvalvesteamsteamappshalf-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)
Thanks.
EDIT:
About the path: You are right. It's not "c:programfiles [...]", it is "c:program files [...]"
Sorry about that.
Quote from p0rtalplayer on April 25, 2012, 5:05 pmYou confirmed you switched from 32-bit to 64-bit, but you didn't mention where you moved the steam folder to. Make sure everything that steam uses (including the sdk files) is in /Program Files (x86)/ and not /Program Files/.
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.
You confirmed you switched from 32-bit to 64-bit, but you didn't mention where you moved the steam folder to. Make sure everything that steam uses (including the sdk files) is in /Program Files (x86)/ and not /Program Files/.
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.
Quote from Ace_StorM on April 26, 2012, 8:07 amp0rtalplayer 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.
I installed Steam normally by downloading it. Then, I replaced the folder. That means, Steam is already in /Program Files (x86)/.
I already reinstalled Hammer once.
Quote from Lpfreaky90 on April 26, 2012, 9:03 amthe problem is that the gameinfo.txt is from portal 2 not from hammer
the problem is that the gameinfo.txt is from portal 2 not from hammer
Quote from Ace_StorM on April 26, 2012, 11:17 amI see. Is there anything else I can do or will I have to reinstall Portal 2?
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.
I see. Is there anything else I can do or will I have to reinstall Portal 2?
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.
Quote from jeremy0118 on June 26, 2013, 8:30 amHi
watch my Tutorial 2013 of how to fix hammer errors like
- gameinfo.txt missing
- visual elements missing
- fps laggcan 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 =)
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 =)