Problems with custom textures

I made my own custom texture for my rp map of a porno shop sign. I want to make a small porn shop with little magazine racks, but whenever I look at the texture for the sign, it’s just the checkerboard error texture. I did everything according to this tutorial, except it’s not CS:S, it’s hl2dm.

Post your VMT.

And the location of it and the VTFs.

All of these are in my hl2mp/materials folder, as well as pretty much all of the other material folders (because I wasn’t sure it was supposed to go in hl2mp)

<SoundScissorsMake>

Someone else might download it but I really cba to download it to help you. If you post what we asked in text I’ll be glad to help you.

  1. The image needs to be in .vtf format.
  2. The .vtf file extension and parenthesis need to be removed from the keyvalues.
  3. The .txt contents should be in the .vmt.

I just did all this, but the damn thing is still an error, even after I restart hammer.

The name of the texture and the $basetexture value only differ by spaces and underscores.

“materials/” should be removed from $basetexture as well since the engine starts searching under the materials directory.

Thank you, now it works.

I just recompiled the map, and the texture isn’t showing up in the game. It shows up in the texture browser in hammer, but when put on a brush it is just grey, which I’m not sure if its normal or not.

Gray in Hammer, in-game, or both?

In hammer, it’s just black (yesterday it was gray for some reason), in game it’s just the purple checkerboard.

EDIT: Now it’s white in game. What the hell.

Post the .vmt.


"LightmappedGeneric"
{
"$basetexture" "materials/Porno_Shop_Sign"
"$surfaceprop" "metal"
}

Here’s a screenshot from hammer.

Unless the texture is in a “materials” folder under materials, it still needs to be removed from the keyvalue.


"LightmappedGeneric"
{
"$basetexture" "Porno_Shop_Sign"
"$surfaceprop" "metal"
}

Like this? I just did this and it still doesn’t work.

Can you upload the material set again?

Well no wonder, “Porno Shop Sign” isn’t a valid VMT tag. Just make a folder called “custom” and put it in your materials folder.


"LightmappedGeneric"

{
	"$basetexture" "custom/Porno_Shop_Sign"
	"$surfaceprop" "metal"
}

For future reference: http://developer.valvesoftware.com/wiki/Creating_a_Material

Doesn’t work. Maybe its something to do with hl2dm?