So I kinda borked hammer. Help!

The Hatted Man

L1: Registered
Nov 21, 2017
11
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:

The Hatted Man

L1: Registered
Nov 21, 2017
11
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.
 

nᵗʰSonata

Takes way to long to make and update maps
aa
Jun 11, 2015
433
436
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)
 

The Hatted Man

L1: Registered
Nov 21, 2017
11
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
 

nᵗʰSonata

Takes way to long to make and update maps
aa
Jun 11, 2015
433
436
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