Opening my texture browser crashes hammer

Discussion in 'Mapping Questions & Discussion' started by Naits, Jan 14, 2021 at 9:44 AM.

  1. Naits

    Naits L1: Registered

    Messages:
    5
    Positive Ratings:
    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.
     
  2. MOCOLONI

    MOCOLONI L6: Sharp Member

    Messages:
    299
    Positive Ratings:
    71
    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
     
  3. Naits

    Naits L1: Registered

    Messages:
    5
    Positive Ratings:
    0
    When i do that hammer won't start
     
  4. Xbmann

    aa Xbmann

    Messages:
    21
    Positive Ratings:
    20
    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.
     
  5. Naits

    Naits L1: Registered

    Messages:
    5
    Positive Ratings:
    0
    It still crashes
     
  6. DrSquishy

    aa DrSquishy ???

    Messages:
    1,211
    Positive Ratings:
    779
    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.
     
  7. Naits

    Naits L1: Registered

    Messages:
    5
    Positive Ratings:
    0
    No there is a bunch of default materials, nothing else.
     
  8. Naits

    Naits L1: Registered

    Messages:
    5
    Positive Ratings:
    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.
     
  9. MOCOLONI

    MOCOLONI L6: Sharp Member

    Messages:
    299
    Positive Ratings:
    71
    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.