Page 1 of 1

custom shader problem

Posted: Fri Jul 18, 2003 7:06 pm
by smartaiguy
I have a custom shader, when I went to complie, it gave me this error:

MatchToken ( { ) at line 0 in scripts/custom.shader or something like that.

this is my shader

{/textures/myhouse/test.tga
{
qer_keyword rock
qer_keyword wall
surfaceparm sand
{
map /textures/custom/test.tga
depthWrite
rgbGen identity
}
{
map $lightmap
rgbGen identity
blendFunc GL_DST_COLOR GL_ZERO
depthFunc equal
}
}

the textures are in there right, but the textures aren't showing up in MOHradiant, since my map is called custom(it will be changed).
somebody help!

Posted: Fri Jul 18, 2003 8:53 pm
by bdbodger
Remove the { and the / from the first line

{/textures/myhouse/test.tga

should be

textures/myhouse/test.tga

Posted: Fri Jul 18, 2003 11:36 pm
by smartaiguy
ok