cant open hammer

Discussion in 'Mapping Questions & Discussion' started by nobody, Mar 2, 2017.

  1. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    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?
     
  2. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    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.
     
    • Thanks Thanks x 1
  3. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    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.
     
    • Thanks Thanks x 1
  4. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    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.
     
    • Thanks Thanks x 1
  5. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    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..)
     
    • Thanks Thanks x 1
  6. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    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.
     
    • Thanks Thanks x 1
  7. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    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).
     
    • Thanks Thanks x 1
  8. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    1
    I dont own hl2
     
  9. Benoist3012

    Benoist3012 L3: Member

    Messages:
    147
    Positive Ratings:
    201
    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.
    Or you can try this second solution:
     
    • Thanks Thanks x 1
  10. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    1
    should I just buy hl2?
     
  11. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    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"
    }
     
  12. iiboharz

    aa iiboharz Meme Queen

    Messages:
    715
    Positive Ratings:
    1,037
    Buying HL2 won't fix this issue, this is nothing to do with you owning/not owning HL2.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  13. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    1
    ok thanks
     
  14. iiboharz

    aa iiboharz Meme Queen

    Messages:
    715
    Positive Ratings:
    1,037
    Is this your first time trying to run Hammer? What's happening before you encounter this error?
     
    • Thanks Thanks x 1
  15. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    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
     
  16. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    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
     
  17. iiboharz

    aa iiboharz Meme Queen

    Messages:
    715
    Positive Ratings:
    1,037
    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.
     
    • Thanks Thanks x 1
  18. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,005
    Positive Ratings:
    1,157
    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.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  19. nobody

    nobody L1: Registered

    Messages:
    22
    Positive Ratings:
    1
    ill try more tommorw
     
  20. MOCOLONI

    MOCOLONI L5: Dapper Member

    Messages:
    243
    Positive Ratings:
    60
    The first thing I'd like you to do is apply this change:

    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:
     
    • Thanks Thanks x 1
    • Respectfully Disagree Respectfully Disagree x 1