cant open hammer

nobody

L1: Registered
Mar 2, 2017
22
1
I dont have hl2 and I changed the settings inside hammer to open with hl2 and now I cant open hammer.
it just says that I cant open it because it cant find hl2 exe
this is what it says:
Hammer Error

C:\Program files (x86)\Steam\steamapps\common\Team fortress 2\hl2\gameinfo.txt is missing

can someone help pls?
 
Solution
this is my gameconfig.txt file

thanks for helping me btw


"Configs"
{
"Games"
{
"Half-Life 2"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\halflife2.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_start"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
"Light" "C:\Program Files...

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
Did you just remove the "hl2" folder from the game's location, or you simply mean that you don't own Half-Life 2 itself?

Either way, go to "\\Steam\steamapps\common\Team Fortress 2\bin" and paste here the full code of your "GameConfig.txt" file.
 

Benoist3012

L3: Member
Dec 25, 2015
148
207
Did you just remove the "hl2" folder from the game's location, or you simply mean that you don't own Half-Life 2 itself?

Either way, go to "\\Steam\steamapps\common\Team Fortress 2\bin" and paste here the full code of your "GameConfig.txt" file.
Don't do that! His error is simply a path problem that can easly be solved by doing the following VVV

Anyway @Op I suppose you are opening hammer editor from "Source development Kit (SDK)", under steam tools tab?
Just go there "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\bin", and run the hammer.exe application.
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
Don't do that!

Anyway @Op I suppose you are opening hammer editor from "Source development Kit (SDK)", under steam tools tab?
Just go there "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\bin", and run the hammer.exe application.
Why shouldn't he? I checked the file myself and there's nothing personal-enough not to be shown. I'm asking for his file's code so I can see what's wrong with it, such as a wrong or missing path.
 

Benoist3012

L3: Member
Dec 25, 2015
148
207
I checked the file myself and there's nothing personal-enough not to be shown
You are overthinking, I never said anywhere in my post it contains personal infos o_O
No I intended to say, that the error he is experiencing is already well known and there's no point into moving files as valve decided a while back that some source games will come with sdk softwares directly in their bin folder, with everything setup, so any users just have to run it from their bin folder, no configs required everything will flow out of the box. (Unless you messed with config files..)
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
You are overthinking, I never said anywhere in my post it contains personal infos o_O
No I intended to say, that the error he is experiencing is already well known and there's no point into moving files as valve decided a while back that some source games will come with sdk softwares directly in their bin folder, with everything setup, so any users just have to run it from their bin folder.
The only reason not to post the code would be such thing. And no, he's not using Source SDK, so it must be the integrated Hammer.
 

Benoist3012

L3: Member
Dec 25, 2015
148
207
And no, he's not using Source SDK, so it must be the integrated Hammer.
And what makes you think that? Because I can tell you that if I open hammer through the Source SDK I won't be able to edit anything unless if I open it from there "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\bin"
Anyway, I'm not going to reply more, we are here to help not to debate to tell who is right, I'm just going to wait his reply now (We are kinda flooding his thread).
 

Benoist3012

L3: Member
Dec 25, 2015
148
207
I dont own hl2
Captain obivious! No seriously thou, OF COURSE we know you don't own hl2 you said it already, instead have your tried one of the solutions given? cause for now your reply is totally useless to us and makes no sense, we don't know even know if you tried one of the solution and if your problem is fixed.

Friendly reminder:
1st solution, that requires you to post your gameconfig text content here.
"\\Steam\steamapps\common\Team Fortress 2\bin" and paste here the full code of your "GameConfig.txt" file.
Or you can try this second solution:
I suppose you are opening hammer editor from "Source development Kit (SDK)", under steam tools tab?
Just go there "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\bin", and run the hammer.exe application.
 

nobody

L1: Registered
Mar 2, 2017
22
1
this is my gameconfig.txt file

thanks for helping me btw


"Configs"
{
"Games"
{
"Half-Life 2"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\halflife2.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_start"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
"Light" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
"GameExeDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2"
"MapDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\hl2\mapsrc"
"BSPDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
"Team Fortress 2"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\tf-abs.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_teamspawn"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
"Light" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
"GameExeDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2"
"MapDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc"
"BSPDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
}
"SDKVersion" "5"
}
 

nobody

L1: Registered
Mar 2, 2017
22
1
no its not my first time opening hammer.
I have already made a map but I did a very stupid thing in the settings.
I am a hammer noob so I thought you can make hl2 maps and be able to use hl2 models if I changed the standard opening game in the settings.
I know this is very bad described, but I hope it works.
and then It said that I had to close hammer and open it again and because I dont have hl2, I dont have the hl2 files so every time I want to open hammer it just give me the error message.
hope you guys understand what I mean
 

nobody

L1: Registered
Mar 2, 2017
22
1
and btw if it helps I do not open hammer through source sdk I think.
I just have a hammer shortcut directly to the hammer exe itself
 

iiboharz

eternally tired
aa
Nov 5, 2014
857
1,291
So you thought by choosing Half-Life 2 you could make maps for HL2? And now it won't let you choose TF2?

I'm not entirely sure if this will do the trick, but try deleting the "Team Fortress 2/bin" folder and validating your TF2 cache, this should reinstall all the tools and allow you to start fresh.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
Have you tried running hammer.bat in the same folder as the exe (Team Fortress 2\bin)? It's supposed to reconfigure Hammer for TF2, so it might fix your problem.
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
this is my gameconfig.txt file

thanks for helping me btw


"Configs"
{
"Games"
{
"Half-Life 2"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\halflife2.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_start"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
"Light" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
"GameExeDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2"
"MapDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\hl2\mapsrc"
"BSPDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
"Team Fortress 2"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\tf-abs.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_teamspawn"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
"Light" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
"GameExeDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2"
"MapDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc"
"BSPDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
}
"SDKVersion" "5"
}
The first thing I'd like you to do is apply this change:
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\tf-abs.fgd"
to
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\tf.fgd"


If it doesn't fix it, leave only "TF2-" and "SDKVersion-" related parameters in the file (considering removing everything related to Half-Life 2). This is how the code should look like without HL2:
"Configs"
{
"Games"
{
"Team Fortress 2"
{
"GameDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf"
"Hammer"
{
"GameData0" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\tf-abs.fgd"
"TextureFormat" "5"
"MapFormat" "4"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\hl2.exe"
"DefaultSolidEntity" "func_detail"
"DefaultPointEntity" "info_player_teamspawn"
"BSP" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vbsp.exe"
"Vis" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vvis.exe"
"Light" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vrad.exe"
"GameExeDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2"
"MapDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\sourcesdk_content\tf\mapsrc"
"BSPDir" "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\maps"
"CordonTexture" "tools\toolsskybox"
"MaterialExcludeCount" "0"
}
}
}
"SDKVersion" "5"
}
 
Solution