So I kinda borked hammer. Help!

Discussion in 'Mapping Questions & Discussion' started by The Hatted Man, Feb 19, 2018.

  1. The Hatted Man

    The Hatted Man L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    Full Story:
    So I was tired of my slow hard drive so I restored Windows 10 using the keep files options., the version of Steam I had on the old version was not in the X86 Program Files. Later, after setting steam and tf2 up, I wanted to import the map that I was working before so I went into windows.old and dragged all of my files into the current hammer location and it broke. This version of steam this time is X86.
    Problem/Short Story:
    I replaced x64 Hammer files with X86 Hammer files and it broke. Would be optimal if I kept everything else in the tf2 directory to be the same. (config,custom,maps,download)

    Solution:
    You go into where hammer files are stored in, open up gameconfig.txt and replace Program Files with Program Files (x86). Save and profit.

    EDIT: Finally fixed it.
     
    Last edited: Feb 21, 2018
  2. Crash

    aa Crash func_nerd

    Messages:
    3,156
    Positive Ratings:
    4,775
    Could you define "broke" more clearly? That could mean a lot of things.
     
  3. The Hatted Man

    The Hatted Man L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    Basically when I run hammer and select tf2, it gives the same message you get from picking hl2.
    I might put the actual message once I get home.
     
  4. Narpas

    Narpas L4: Comfortable Member

    Messages:
    177
    Positive Ratings:
    154
    Try verifying the integrity of your game cache, that should help (open up your Steam library, right click TF2, click Properties, go to the tab Local Files, click on the last button)
     
  5. The Hatted Man

    The Hatted Man L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    Ok. This the message,
    C:\Program Files\Steam\steamapps\common\ Team Fortress 2\tf\gameinfo.txt is missing.



    Note that by this time, my actual directory for steam is in X86
     
  6. The Hatted Man

    The Hatted Man L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    Verifying doesn't work.
     
  7. Narpas

    Narpas L4: Comfortable Member

    Messages:
    177
    Positive Ratings:
    154
    So, it seems that the program is still pointed to the old directory. You should be able to fix this by going to C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin (the same directory Hammer is stored in), opening up GameConfig.txt, and replacing all instances of "Program Files" with "Program Files (x86)" , which you can do easily with Ctrl + H. If for some reason that still doesn't work, I'm fairly certain that uninstalling and reinstalling should work, which should also still keep all your custom content and maps intact
     
    • Agree Agree x 1
  8. The Hatted Man

    The Hatted Man L1: Registered

    Messages:
    11
    Positive Ratings:
    0
    Works. Thank You