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
it worked!!! thanks everyone!!!
if anyone else are as stupid as me and did the same thing the last script MOCOLONI gave me worked
Since you may still need to use HL2 textures/sounds, go to your current Hammer's settings, set "TF2" back as the main mapping-for game (so it won't cause the error of not loading up), and add back the HL2 properties into the code of your file.