How to fix missing gameinfo.txt after moving TF2 to a new directory?

The Tiny Desk Engineer

L1: Registered
Jul 19, 2021
33
6
I moved most of my Steam games to another drive to clear up my C: drive, and now Hammer's complaining that it can't find TF2's gameinfo.txt because GameConfig.txt is pointing to the old location. So I replaced all occurrences of the old directory in that file with the new one. But Hammer's still complaining about gameinfo.txt being missing. What else do I need to change to fix that?
 

Tiftid

the Embodiment of Scarlet Devil
aa
Sep 10, 2016
569
434
Go into this menu in Hammer:
1719931777808.png


Then edit this path to point to your Team Fortress 2/tf/ folder, wherever it may be.
1719931826169.png

Hammer should now be able to find your gameinfo.txt.
 

Tiftid

the Embodiment of Scarlet Devil
aa
Sep 10, 2016
569
434
Then in theory editing GameConfig.txt should be the only way to do it, as you said earlier.
I don't mean to sound patronising, but are you absolutely sure you replaced the directory in GameConfig with the right new directory? "GameDir" needs to point to "steamapps/common/Team Fortress 2/tf/", NOT "steamapps/common/Team Fortress 2/".