Adding Multiple Textures To A Skin

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
I'm trying to add two different textures to a model I had made for me. I decompiled with Crowbar, edited the qc file and then recompiled. There are multiple skins, but they don't have the textures I am trying to apply. My qc is as follows:

Code:
// Created by Crowbar 0.34.0.0

$ModelName "ramenmap\window_single_recompile.mdl"

$BodyGroup "studio"
{
    studio "window_single_reference.smd"
}

$SurfaceProp "default"

$Contents "solid"

$MaxEyeDeflection 90

$CDMaterials "Mytextures\"

$TextureGroup "skinfamilies"
{
    { "custom_wall5" "custom_beachpic" }
    { "custom_wall5" "darkness" }
    { "japanese_graywood01" "custom_beachpic" }
}

$CBox 0 0 0 0 0 0

$BBox -0.78 -53.25 -0.25 2.264 53.25 106.25


$Sequence "idle" {
    "window_single_anims\idle.smd"
    fadein 0.2
    fadeout 0.2
    fps 30
}

$CollisionModel "window_single_physics.smd"
{
    $mass 1
    $inertia 1
    $damping 0
    $rotdamping 0
    $concave

}

The textures I am using are in the mytextures folder. At this point I am not sure what I am doing wrong here.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
Two questions:
  1. Is the mytextures folder directly inside /tf/materials, and not /tf/materials/models?
  2. Did the single skin it was exported with already use "custom_wall5" and "custom_beachpic" as its materials, and was it working like that?
 

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
1. Yea, it is
2. It was originally exported with "custom_wall5_model" (I just replaced it with custom_wall5 in the qc file) and "darkness". They work perfectly fine with those two textures, I can't get them to change into any other texture
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,696
2,580
That's your problem. You can't change skin 0 in the QC; that data is stored in the SMD because of reasons. That's why QC files for single-skin models doesn't list any material files. Luckily, SMD files are also just plain text (not unlike VMFs); you can just pull yours up and find-and-replace the wrong texture with the right one.
 

CyanideNoodles

L2: Junior Member
Oct 1, 2012
89
8
So, I changed it to

Code:
$TextureGroup "skinfamilies"
{
    { "custom_wall5_model" "darkness" }
    { "custom_wall5" "custom_beachpic" }
    { "japanese_graywood01" "custom_beachpic" }
}

Where custom_wall5_model and darkness are the default textures and still nothing. I'm wondering if I'm doing the steps wrong? I use crowbar to decompile the .mdl, edit the .qc, recompile with crowbar, and place the new files into the appropriate models folder