$texturegroup help

I’ve been actively working on a WoW model port, now that I got it to work, and wanted to add multiple texture groups to the model.

The current code looks like this:


$texturegroup    "nightfallen_male"{


    { "NightfallenMale_Body_Armored" "NightfallenMale_AttachmentsPale" }
    { "NightfallenMale_Body_ArmoredPale" "NightfallenMale_AttachmentsPale" }
    { "NightfallenMale_Body_ArmoredDark" "NightfallenMale_AttachmentsDark" }
    { "Nightfallenmale_Body_Armored" "NightfallenMale_Attachments" }


}

However, when I load it up in HLMV, it gives me this error:

Did I do something wrong in the .qc, or did I do something wrong in the VMTs?

Are the .vmt files in the correct folder as stated in the $cdmaterial line? That could be the reason why the .vmt files aren’t being found.

Try it in the game. Hlmv never load the textures for me

I’m not compiling with .smds, but instead .dmx, which makes $cdmaterials obsolete.

It worked once, momentarily, but all the secondary textures were checkered. I tried fixing it by adding the files in blender, but then it turned invisible again.

I’ll see if it works ingame after I set it up again.

[editline]s[/editline]

Alright! Marginal progress!

I managed to get it to work somewhat, but now this issue comes up:


erkor
ightfallen
ightfallen_male.mdl : material "nightfallenmale_body_armoredpale" not found.
erkor
ightfallen
ightfallen_male.mdl : material "nightfallenmale_body_armoreddark" not found.
erkor
ightfallen
ightfallen_male.mdl : material "nightfallenmale_attachmentsdark" not found.
erkor
ightfallen
ightfallen_male.mdl : material "nightfallenmale_attachments" not found.


This appears when I load the model in SFM. I can’t understand why, as I set the materials in blender and re-exported it. The texture names should be right as well.

Seems like it’s not finding the materials by the looks of it.

Correct me if I am wrong. Aren’t you still using a qc file to compile the .dmx files anyways? In that case, if you aren’t using $cdmaterials, then what command are using to point the materials into the correct folder?

that’s wrong. you setup the material names in blender. but you still gotta setup the path to the subdirectory in the materials folder.

In the Blender Source Tools I’m able to specify a material location. The base materials work, but it can’t find the other textures, even though they’re in the same folder.

I tried to add the materials onto the model by applying them in blender, but that didn’t work either.

I’ll nonetheless check if $cdmaterials helps it, though!

[editline]s[/editline]

yes. that worked.

I feel kinda stupid now.

Thanks for the help, though!