HammerAddons icon indicating copy to clipboard operation
HammerAddons copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'portal2\\gameinfo.txt'

Open TheEnderek0 opened this issue 4 years ago • 3 comments

image When making a map in hammer, and trying to play it this error appears. I think it's a problem with postcomplier.exe, because unchecking that option in Run Map [Advanced] shows no error. The entities are broken then though.

TheEnderek0 avatar Apr 03 '21 19:04 TheEnderek0

I also add that I followed every single step on the wiki.

TheEnderek0 avatar Apr 03 '21 19:04 TheEnderek0

Okay, it broke because your map isn't saved in sdk_content, and so it couldn't determine where the Portal 2 folder is. A srctools.vdf config should have generated next to your VMF. Open that up and set gameinfo to the full path to Portal 2/portal2/.

TeamSpen210 avatar Apr 04 '21 11:04 TeamSpen210

There is no such file in my map directory. There is srctools.vdf but it's in the Portal 2\bin\postcompiler, but changing any value there gives no results as it resets.

TheEnderek0 avatar Apr 04 '21 13:04 TheEnderek0