Hammer won't load textures, but they appear in game?

Discussion in 'Mapping Questions & Discussion' started by Gliperal, Sep 21, 2017.

  1. Gliperal

    Gliperal L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    Recently I had to perform a factory reset on my computer, and when I re-installed Hammer I discovered that none of my custom textures were loading (they all displayed the pink and black checkerboard). The peculiar thing is that the map still compiled correctly, and the custom textures appear in TF2. Moreover, some of the textures from the CSS texture imports have the same issues, and others show up correctly.

    Most of the solutions I could find* involved running VTFEdit with minimum settings, and that didn't seem to make a difference. I also tried running VTFEdit versions 1.2.5, 1.3.2, and 1.3.3.
    I verified the integrity of the cache.
    I currently have the textures stored in
    steamapps\common\Team Fortress 2\tf\custom\surf_test\materials\surf_test​
    I also tried placing them in
    steamapps\common\Team Fortress 2\tf\materials\surf_test​
    to no avail.

    I tested a variety of VMT formats, including:
    Code:
    "LightMappedGeneric"
    {
        "$BaseTexture" "surf_test/test.vtf"
        "$SurfaceProp" "concrete"
    }
    
    LightMappedGeneric
    {
        $BaseTexture surf_test/test.vtf
        $SurfaceProp concrete
    }
    
    LightMappedGeneric
    {
        $BaseTexture surf_test/test.vtf
        $SurfaceProp concrete
    }
    
    "LightMappedGeneric"
    {
        $BaseTexture surf_test/test2.vtf
        $SurfaceProp concrete
        %tooltexture surf_test/test2b.vtf
        $translucent 1
    }
    
    "LightMappedGeneric"
    {
        "$color" "[1 0 1]"
        "$SurfaceProp" "concrete"
    }
    
    "LightMappedGeneric"
    {
        $color {255 173 199}
    }
    
    All of the above work correctly in game, but don't appear in Hammer.

    I searched the web for help, but I haven't been able to find a working solution. If anyone knows of a solution or has seem this problem before, I would be most grateful for any help.

    *solutions from these websites:
    https://steamcommunity.com/app/211/discussions/0/613940477675647300/
    https://tf2maps.net/threads/hammer-crash-upon-apply-custom-texture.22889/page-2#post-305314
     
  2. Dr. Orange

    Dr. Orange L6: Sharp Member

    Messages:
    356
    Positive Ratings:
    267
    Have you tried removing the .vtf extension from the basetexture filepaths within the vmts?
     
    • Agree Agree x 1
  3. ics

    aa ics http://ics-base.net

    Messages:
    654
    Positive Ratings:
    410
    Dr. Orange is correct, remove the ending from the vmt filepaths.
     
  4. Gliperal

    Gliperal L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    That fixed it. Sorry about this thread ^^'