Opening my texture browser crashes hammer

Naits

L1: Registered
Jan 7, 2021
6
0
I am very new to hammer and very confused.

When i open my texture browser, hammer crashes instantly.
I get a wierd error in the console when i open hammer I dont know if this helps: "Invalid game "E:/SteamLibrary/steamapps/common/counter-strike source/cstrike" found in VPROJECT environment variable, ignoring." But im opening hammer from tf2s files.
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
For whatever reason, your Hammer is configured to look for CS:S files in the E:\ drive (Steam & games should be installed in C:\). Going to "Tools>Options", these should be the paths:

Game Executable Directory: $SteamUserDir\Team Fortress 2
Game Directory: $SteamUserDir\Team Fortress 2\tf
 

Xbmann

aa
Jul 8, 2019
63
52
I get that error in the hammer console every time I launch tf2 hammer. It doesn't mean anything is wrong with your install it's just acknowledging that cs:s is installed and that it is ignoring that source path when loading resources. I don't think this would have anything to do with your texture browser crash.

It's possible that you have a custom material being loaded that is in an invalid format / resolution causing the texture browser to break when loading it. Try renaming your materials and your custom folder in \Team Fortress 2\tf\ and running hammer with no custom materials accesssible and see if it still crashes with just the default materials.
 

DrSquishy

we've all had better times to die
aa
Feb 10, 2017
1,297
974
If you go to tools -> options -> materials, what does it say under 'Material Exclusion Directory List'? If the box is empty, hammer will be trying to load every material it can find which can cause crashes due to the sheer quantity of materials it tries to load.
 

Naits

L1: Registered
Jan 7, 2021
6
0
I've found a terrible soultion, i didn't have steam and tf2 on the same drive as my os and mocoloni told me thats a bad idea. So the natural and logical soultion is ofcorse to download a vm on my second drive and reinstall steam and tf2 there! It's not great, but it technically works.
 

MOCOLONI

L6: Sharp Member
Dec 16, 2014
373
89
I've found a terrible soultion, i didn't have steam and tf2 on the same drive as my os and mocoloni told me thats a bad idea. So the natural and logical soultion is ofcorse to download a vm on my second drive and reinstall steam and tf2 there! It's not great, but it technically works.
I only said that it would be better to have all of that on the same drive. If it's not possible for storage reasons, have the operating system on one and Steam & games all installed on another.