1. Post #1
    tinak's Avatar
    August 2011
    217 Posts
    Well I wanted to learn how to make a model for SDK with 2 skins on it but I am not sure whats not working right.

    heres my qc-


    $modelname "props/Skin.mdl"
    $body mybody "Skin.smd"
    $staticprop
    $surfaceprop "metal"
    $cdmaterials "models/props"
    $scale 1
    $sequence idle "Skin.smd" loop fps 1


    $texturegroup "Skin"

    {"Red"}
    {"Blue"}

    $collisionmodel "Skin.smd"

    $automass
    $concave

    $keyvalues
    "prop_data"

    "base" "Metal.Medium"

    When I load SDK I this error when it trys to load another skinfamily

    ***error*** model attempted to load more or one VMTs it can't find.....

    Is it because I am using Blender or just the way I got my textures on the model or just bad QC all together?
    If anyone here knows my problem or is a master at QCing Id like to know how I should fix my problem!

  2. Post #2
    Gold Member
    one free man's Avatar
    May 2008
    3,167 Posts
    considering you're giving the model two different textures, you should have two .vmts

    What are the names of these .vmts, and where have you put them?

  3. Post #3
    tinak's Avatar
    August 2011
    217 Posts
    considering you're giving the model two different textures, you should have two .vmts

    What are the names of these .vmts, and where have you put them?
    I do have 2 vtms
    red
    blue

    or are they sopost to have the same name?

  4. Post #4
    Gold Member
    simkas's Avatar
    May 2005
    15,696 Posts
    The textures need to have similar names to the original texture that's going to change. So if your main texture is "texture", the other ones should be like "texture2" or "texture3". So stuff like "red" or "blue" won't work.
    Reply With Quote Edit / Delete Reply Windows 7 Lithuania Show Events Disagree Disagree x 3 (list)

  5. Post #5
    tinak's Avatar
    August 2011
    217 Posts
    The textures need to have similar names to the original texture that's going to change. So if your main texture is "texture", the other ones should be like "texture2" or "texture3". So stuff like "red" or "blue" won't work.
    so like
    red
    red1
    right?
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 1 (list)

  6. Post #6
    Gold Member
    one free man's Avatar
    May 2008
    3,167 Posts
    -Snip- The gentleman above explained it

  7. Post #7
    Gold Member
    simkas's Avatar
    May 2005
    15,696 Posts
    so like
    red
    red1
    right?
    That should work

  8. Post #8
    Gold Member
    wraithcat's Avatar
    December 2007
    12,804 Posts
    That should work
    textures names themselves do not have to be similar at all. They can be named anything at all as long as you call the VMT's correct in the same order.

    Correct syntax for texturegroups

    Code:
    $texturegroup "texturegroup"
    {
    { "Originaltex1" , "originaltex2" }
    { "replacementfor1" , "replacementfor2" }
    }
    Or
    Code:
    $texturegroup "texturegroup"
    {
    {
    originaltex1
    originaltex2
    }
    {
    replacementfor1
    replacementfor2
    }
    }
    Here's an actual in use example

    Code:
    $texturegroup "Variations"
    {
        {
            c_sera-ancient-arms_d
            c_sera-ancient-boots_d
            c_sera-ancient-gloves_d
            c_sera-ancient-helmet_d
            c_sera-ancient-pelvis_d
            c_sera-ancient-shoulders_d
            c_sera-ancient-thighs_d
            c_sera-ancient-torso_d
            c_sera-ancient-wings_d
        }
        {
            i_sera-ancient-arms-var1_d
            i_sera-ancient-boots-var1_d
            i_sera-ancient-gloves-var1_d
            i_sera-ancient-helmet-var1_d
            i_sera-ancient-pelvis-var1_d
            i_sera-ancient-shoulders-var1_d
            i_sera-ancient-thighs-var1_d
            i_sera-ancient-torso-var1_d
            i_sera-ancient-wings-var1_d
        }
    
    
    }
    The OP's problem was that his $texturegroup was incorrectly written.

    So in his case

    considering the original texture on the model is Red.vmt the correct syntax would be.

    Code:
    $texturegroup "skin"
    {
    { "Red" }
    { "Blue" }
    }
    Overall the OP is missing a bunch of brackets in his QC. For physics, and keyvalues. Not just txturegroups.

  9. Post #9
    tinak's Avatar
    August 2011
    217 Posts
    textures names themselves do not have to be similar at all. They can be named anything at all as long as you call the VMT's correct in the same order.

    Correct syntax for texturegroups

    Code:
    $texturegroup "texturegroup"
    {
    { "Originaltex1" , "originaltex2" }
    { "replacementfor1" , "replacementfor2" }
    }
    Or
    Code:
    $texturegroup "texturegroup"
    {
    {
    originaltex1
    originaltex2
    }
    {
    replacementfor1
    replacementfor2
    }
    }
    Here's an actual in use example

    Code:
    $texturegroup "Variations"
    {
        {
            c_sera-ancient-arms_d
            c_sera-ancient-boots_d
            c_sera-ancient-gloves_d
            c_sera-ancient-helmet_d
            c_sera-ancient-pelvis_d
            c_sera-ancient-shoulders_d
            c_sera-ancient-thighs_d
            c_sera-ancient-torso_d
            c_sera-ancient-wings_d
        }
        {
            i_sera-ancient-arms-var1_d
            i_sera-ancient-boots-var1_d
            i_sera-ancient-gloves-var1_d
            i_sera-ancient-helmet-var1_d
            i_sera-ancient-pelvis-var1_d
            i_sera-ancient-shoulders-var1_d
            i_sera-ancient-thighs-var1_d
            i_sera-ancient-torso-var1_d
            i_sera-ancient-wings-var1_d
        }
    
    
    }
    The OP's problem was that his $texturegroup was incorrectly written.

    So in his case

    considering the original texture on the model is Red.vmt the correct syntax would be.

    Code:
    $texturegroup "skin"
    {
    { "Red" }
    { "Blue" }
    }
    Overall the OP is missing a bunch of brackets in his QC. For physics, and keyvalues. Not just txturegroups.

    well i got the skins working now
    but its just showing Blue skin for skin 1
    but when i click on skin 2 its the same blue skin
    what did i do wrong now?

    is it how i am exporting the model from blender?


    NVM I GOT IT fixed