This is driving me mad, and everytime I think I'm getting somewhere, I run into another problem. Basically, compiling my models and writing the VMT works fine when the model is located in, "mysourcemod\models" and the material is found in "mysourcemod\materials\models\"
However, when the model is in, "mysourcemod\models\folder1\folder2" and the material is in, "mysourcemod\materials\models\folder1\folder2" the model won't work with either the model or material. These DO work with the above settings.
I realised it had something to do with compiling the model, so I tweaked the QC file a bit and when I compile it, the model is now found in, "mysourcemod\models\folder1\folder2" which is exactly what I wanted. I now put the materials back into, "mysourcemod\materials\models\folder1\folder2". Upon loading the model in HLMV or Hammer, all I get is a pink/black checker texture. The VMT is written correctly. THE TEXTURE WORKED WHEN THE DIRECTORY STRUCTURE WAS LIKE MY FIRST PARAGRAPH.
I don't know what I'm doing wrong. No filename/directory/vmt spelling errors. And yes, there is a reason for the folder structures. Any help or ideas would be good. This is really unmotivating to work with.
VMT FILE CONTENTS: qcratea.vmt
"VertexLitGeneric"
{
"$baseTexture" "models/folder1/folder2/qcratea"
"$model" "1"
"$surfaceprop" "metal"
}
DIRECTORY STRUCTURES:
models: mysourcemod\models\folder1\folder2
materials: mysourcemod\materials\models\folder1\folder2