Missing texture on my custom prop

Discussion in 'Mapping Questions & Discussion' started by Asd417, Dec 21, 2016.

  1. Asd417

    aa Asd417 L1: Registered

    Messages:
    861
    Positive Ratings:
    593
    Its probably a very easy fix but I am really not sure.
    I compiled a prop, opened it up in hammer and it has missing texture
    Here's what I do know for sure.
    1. my qc has $cdmaterial models\props_volcano
    2. The smd file keeps looking for metaldoor001.png which was intended since that's the texture I used
    3. I have metaldoor001.vtf, metaldoor001.vmt in models\props_volcano folder along with dx80, dx90, mdl and stuff

    Can you help me find out why it still has missing texture?
     
  2. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    779
    Positive Ratings:
    226
    By the sounds of it, you have all your model and texture files in the same folder which would be wrong.

    To use 2fort props as an example, the material files (.vmt's + .vtf's) would go in:
    Team Fortress 2\tf\materials\models\props_2fort

    While the model files (.dx80, .dx90, et al) would go in:
    Team Fortress 2\tf\models\props_2fort

    Make sure you check and correct the $basetexture file paths in your .vmt's as well.
     
  3. Asd417

    aa Asd417 L1: Registered

    Messages:
    861
    Positive Ratings:
    593
    $basetexture
    Can the directory of the basetexture be outside tf/ folder?
     
  4. Werewolf

    aa Werewolf Probably not a real Werewolf

    Messages:
    779
    Positive Ratings:
    226
    No, I think all models and materials need to be within their respective folders. The could be in tf/models/custom/<map_name>/ or tf/models/<map_name>/ (same with materials)
     
  5. Asd417

    aa Asd417 L1: Registered

    Messages:
    861
    Positive Ratings:
    593
    So models go in tf/models/prop_volcano
    and materials go in tf/materials/models/prop_volcano
    but my model still has a missing texture

    This is the vmt
    Code:
    "VertexlitGeneric"
    {
        "$basetexture" "Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\models\props_volcano\metaldoor001.png"
        "$translucent" 1
    }
    
    could this bs problem?
     
  6. killohurtz

    aa killohurtz Distinction in Applied Carving

    Messages:
    1,005
    Positive Ratings:
    1,157
    The basetexture should use the entire path AFTER tf/materials/, and without the file extension, like so:
    • "$basetexture" "models/props_volcano/metaldoor001"
    for a texture file called metaldoor001.vtf in tf/materials/models/props_volcano/.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  7. Asd417

    aa Asd417 L1: Registered

    Messages:
    861
    Positive Ratings:
    593
    It worked! thank you!