Tremulous Forum
Media => Mapping Center => Topic started by: WaxyChicken on November 23, 2008, 03:59:07 pm
-
???
I'm having difficulty getting my .shader to show up in GTKRadient 1.5 (Tremulous Distro)
Edited c:\program files\tremulous\base\scripts\shaderlist.txt and added the line "waxy"
created c:\program files\tremulous\base\textures\waxy\[textures]
created c:\program files\tremulous\base\scripts\waxy.shader
when loading GTKRadient i have flushed & reloaded textures then shut it down and restarted it.
Parsing shaderfile scripts/displays.shader
Parsing shaderfile scripts/misc.shader
Parsing shaderfile scripts/plant_life.shader
Parsing shaderfile scripts/water.shader
Parsing shaderfile scripts/waxy.shader
Loaded Texture: "C:/Program Files/GtkRadiant 1.5.0/bitmaps/notex.bmp"
It has found the texture files but not the shaders.
when i tell it to 'show shaders only' i have no 'Waxy' category of shaders.
If anyone knows the answer to this problem then please let me know.
I've googled like crazy and can't find the answer.
shaderlist.txt:
arachnid2
atcs
karith
nexus6
niveus
transit
tremor
uncreation
common
common-trem
titan
displays
misc
plant_life
water
waxy
waxy.shader:
brick-red0
{
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_one
}
{
map textures/waxy/brick0.tga
}
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_src_color
}
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_dst_color
}
}
wood01clamp
{
{
map textures/waxy/01.tga
}
{
clampmap textures/waxy/01.tga
depthFunc equal
alphaFunc GE128
}
}
bamboo1
{
{
map textures/waxy/bamboo1.tga
}
{
map textures/waxy/bamboo1.tga
blendfunc gl_dst_color gl_dst_color
}
{
map textures/waxy/bamboo1.tga
blendfunc gl_one gl_src_alpha
}
}
black
{
{
map textures/waxy/black.tga
}
}
blue
{
{
map textures/waxy/blue.tga
}
}
blue-matrix
{
{
map textures/waxy/blue128.tga
}
{
map textures/waxy/blue128.tga
tcMod scroll 0 -2
}
}
boards
{
{
map textures/waxy/boards.tga
tcMod scale 2 2
}
{
map textures/waxy/boards.tga
blendfunc gl_src_color gl_src_color
tcMod scale 2 2
}
}
boards2
{
{
map textures/waxy/boards2.tga
}
{
map textures/waxy/boards2.tga
blendfunc gl_src_color gl_src_color
}
}
boards3
{
{
map textures/waxy/boards3.tga
}
{
map textures/waxy/boards3.tga
blendfunc gl_one gl_one_minus_src_alpha
}
{
map textures/waxy/boards3.tga
blendfunc gl_src_color gl_src_color
alphaFunc GE128
}
}
boards3b
{
{
map textures/waxy/boards3b.tga
}
{
map textures/waxy/boards3b.tga
blendfunc gl_one gl_src_color
}
}
brick0
{
{
map textures/waxy/brick0.tga
}
{
map textures/waxy/brick0.tga
blendfunc gl_one_minus_src_color gl_zero
}
{
map textures/waxy/brick0.tga
blendfunc gl_one_minus_src_alpha gl_one_minus_src_color
}
{
map textures/waxy/brick0.tga
blendfunc gl_one gl_one_minus_src_alpha
}
}
brick0b
{
{
map textures/waxy/brick0b.tga
tcMod scale 4 4
}
{
map $lightmap
blendfunc gl_one gl_one_minus_src_color
tcMod scale 4 4
}
{
map textures/waxy/brick0b.tga
blendfunc filter
tcMod scale 4 4
}
}
bricks1
{
{
map textures/waxy/brick1.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_color gl_one_minus_src_color
}
{
map textures/waxy/brick1.tga
blendfunc gl_one gl_src_color
}
}
brick27
{
{
map textures/waxy/brick27.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/brick27.tga
blendfunc gl_src_color gl_zero
}
}
bricks5
{
{
map textures/waxy/brick_5.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/brick_5.tga
blendfunc filter
}
}
brick5b
{
{
map textures/waxy/brick_texture_map textures/waxy/.tga
tcMod scale 2 2
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/brick_texture_map textures/waxy/.tga
blendfunc gl_src_color gl_zero
tcMod scale 2 2
}
}
brick5c
{
{
map textures/waxy/brick_texture_small.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/brick_texture_small.tga
blendfunc gl_src_color gl_zero
}
}
bricks2
{
{
map textures/waxy/bricks2.tga
}
{
map textures/waxy/bricks2.tga
blendfunc gl_one_minus_src_alpha gl_one
}
{
map textures/waxy/bricks2.tga
blendfunc gl_one gl_one_minus_src_alpha
}
}
bricks2x
{
{
map textures/waxy/bricks_texture.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/bricks_texture.tga
blendfunc gl_src_color gl_zero
}
}
brickswall01
{
{
map textures/waxy/brickwall01.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/brickwall01.tga
blendfunc filter
}
}
bucks-country
{
{
map textures/waxy/bucks-county.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/bucks-county.tga
blendfunc gl_src_color gl_src_color
}
}
bucks-country2
{
{
map textures/waxy/bucks-county2.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/bucks-county2.tga
blendfunc gl_src_alpha gl_src_color
}
}
bucks-countryb
{
{
map textures/waxy/bucks-countyb.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/bucks-countyb.tga
blendfunc gl_src_color gl_zero
}
}
Checker1
{
{
map textures/waxy/checker1.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/checker1.tga
blendfunc gl_src_color gl_zero
}
}
Checker1
{
{
map textures/waxy/checker2.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/checker2.tga
blendfunc gl_src_color gl_zero
}
}
Chrome
{
{
map textures/waxy/chrome.tga
}
{
map $whiteimage
blendfunc gl_one gl_one_minus_src_alpha
tcGen environment
}
{
map textures/waxy/chrome.tga
blendfunc gl_src_alpha gl_zero
}
}
Clay
{
{
map textures/waxy/clay.tga
}
{
map $whiteimage
blendfunc gl_one gl_one_minus_src_alpha
tcGen lightmap
}
{
map textures/waxy/clay.tga
blendfunc gl_src_color gl_zero
}
}
Cloth1
{
{
map textures/waxy/cloth1.tga
}
{
map $whiteimage
blendfunc gl_src_color gl_one_minus_src_color
tcGen lightmap
}
{
map textures/waxy/cloth1.tga
blendfunc gl_src_color gl_zero
}
}
Cloth2
{
{
map textures/waxy/cloth2.tga
}
{
map $whiteimage
blendfunc gl_src_color gl_one_minus_src_color
tcGen lightmap
}
{
map textures/waxy/cloth2.tga
blendfunc gl_src_color gl_zero
}
}
Cloth3
{
{
map textures/waxy/cloth3.tga
}
{
map $whiteimage
blendfunc gl_src_color gl_one_minus_src_color
tcGen lightmap
}
{
map textures/waxy/cloth3.tga
blendfunc gl_src_alpha gl_zero
}
}
Cloth4
{
{
map textures/waxy/cloth4.tga
}
{
map $whiteimage
blendfunc gl_src_color gl_one_minus_src_color
tcGen lightmap
}
{
map textures/waxy/cloth4.tga
blendfunc gl_src_alpha gl_zero
}
}
Cloth5
{
{
map textures/waxy/cloth5.tga
}
{
map $whiteimage
blendfunc gl_src_color gl_one_minus_src_color
tcGen lightmap
}
{
map textures/waxy/cloth5.tga
blendfunc gl_src_color gl_zero
}
}
Cloth6
{
{
map textures/waxy/cloth6.tga
}
{
map $whiteimage
blendfunc gl_src_color gl_src_color
tcGen lightmap
}
{
map textures/waxy/cloth6.tga
blendfunc gl_src_alpha gl_zero
}
}
Cloth7
{
{
map textures/waxy/cloth7.tga
}
{
map $whiteimage
blendfunc gl_one gl_src_color
tcGen lightmap
}
{
map textures/waxy/cloth7.tga
blendfunc filter
}
}
Concrete0
{
{
map textures/waxy/concrete1.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
{
map textures/waxy/concrete1.tga
blendfunc gl_src_alpha gl_zero
}
}
Corrugated-Metal
{
{
map textures/waxy/corrugatedmetal.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_color gl_one_minus_src_color
}
{
map textures/waxy/corrugatedmetal.tga
blendfunc gl_one_minus_src_color gl_one_minus_src_color
}
}
crate0
{
{
map textures/waxy/crate1.tga
}
{
map $whiteimage
blendfunc gl_one_minus_src_color gl_src_color
}
{
map textures/waxy/crate1.tga
blendfunc gl_src_color gl_src_color
}
}
destert-ground
{
{
map textures/waxy/desertground.tga
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/desertground.tga
blendfunc filter
}
}
desert-ground1
{
{
map textures/waxy/desertground2.tga
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/desertground2.tga
blendfunc filter
}
}
dirt1
{
{
map textures/waxy/dirt1.tga
}
{
map $whiteimage
blendfunc gl_zero gl_src_alpha
}
{
map textures/waxy/dirt1.tga
blendfunc filter
}
}
dirt2
{
{
map textures/waxy/dirt2.tga
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/dirt2.tga
blendfunc filter
}
}
dirt3
{
{
map textures/waxy/dirt3.tga
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/dirt3.tga
blendfunc gl_src_color gl_src_color
}
}
dirt5
{
{
map textures/waxy/dirt5.tga
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/dirt5.tga
blendfunc filter
}
}
dirt6
{
{
map textures/waxy/dirt6.tga
}
{
map $whiteimage
blendfunc gl_zero gl_src_alpha
}
{
map textures/waxy/dirt6.tga
blendfunc filter
}
}
dirt4
{
{
map textures/waxy/dirt4.tga
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/dirt4.tga
blendfunc gl_zero gl_src_alpha
}
}
dirt7
{
{
map textures/waxy/dirt7.tga
}
{
map $whiteimage
blendfunc gl_one gl_src_color
}
{
map textures/waxy/dirt7.tga
blendfunc filter
}
}
dirt8
{
{
map textures/waxy/dirt8.tga
}
{
map $whiteimage
blendfunc gl_one gl_src_color
}
{
map textures/waxy/dirt8.tga
blendfunc filter
}
}
WaxySkybox
{
skyParms env/iklake 128 env/iklake
}
Explosion-Dark-Animated
{
{
map textures/waxy/explosion.tga
tcMod turb 0 0.2 1 0.2
tcMod transform 1 0 0 1 0 0
}
{
map textures/waxy/explosion.tga
blendfunc gl_zero gl_one_minus_src_color
tcMod turb 0 0.1 1 0.2
}
}
Explosion-Light-Animated
{
{
map textures/waxy/explosion.tga
tcMod turb 0 0.2 1 0.2
}
{
map textures/waxy/explosion.tga
blendfunc gl_one gl_one_minus_src_color
tcMod turb 0 0.1 1 0.2
}
}
Explosion-Blue-Animated
{
{
map textures/waxy/fire2.tga
tcMod turb 0 0.4 1 0.1
}
{
map textures/waxy/fire2.tga
blendfunc gl_dst_color gl_one_minus_src_alpha
tcMod turb 0 0.2 1 0.06
alphaFunc GE128
}
}
lava-animated
{
surfaceparm donotenter
surfaceparm lava
{
map textures/waxy/fire1.tga
tcMod turb 0 0.4 1 0.1
}
{
map textures/waxy/fire2.tga
blendfunc gl_one_minus_dst_color gl_one_minus_src_alpha
tcMod turb 0 0.2 1 0.06
alphaFunc GE128
}
{
map textures/waxy/explosion.tga
blendfunc gl_src_color gl_one_minus_dst_alpha
tcMod turb 0 0.6 3 0.06
alphaFunc GE128
}
}
Glass
{
surfaceparm alphashadow
surfaceparm slick
surfaceparm lightfilter
{
map textures/waxy/glass6.tga
blendfunc gl_dst_color gl_one_minus_dst_alpha
alphaFunc GE128
}
{
map textures/waxy/glass6.tga
blendfunc gl_dst_color gl_one_minus_dst_color
tcGen environment
}
}
grass1
{
{
map textures/waxy/gras1.tga
tcMod scale 2 2
}
{
map $whiteimage
blendfunc filter
}
{
map textures/waxy/gras1.tga
blendfunc gl_one gl_src_color
}
}
grass2
{
{
map textures/waxy/grass.tga
}
{
map $whiteimage
blendfunc gl_one gl_src_color
}
{
map textures/waxy/grass.tga
blendfunc filter
tcMod scale 2 2
}
}
grass3
{
{
map textures/waxy/grass2.tga
tcMod scale 0.5 0.5
}
{
map $whiteimage
blendfunc gl_one gl_src_color
}
{
map textures/waxy/grass2.tga
blendfunc filter
tcMod scale 2 2
}
}
Grill
{
{
map textures/waxy/grill1.tga
}
{
map $whiteimage
blendfunc gl_one gl_src_color
}
{
map textures/waxy/grill1.tga
blendfunc gl_dst_color gl_one_minus_src_alpha
}
}
masonary-rock-1
{
{
map textures/waxy/marble.tga
}
{
map $whiteimage
}
{
map textures/waxy/masonry-rock.tga
blendfunc filter
}
{
map textures/waxy/masonry-rock.tga
blendfunc filter
}
}
masonary-rock-2
{
{
map textures/waxy/masonry-rock.tga
}
{
map textures/waxy/masonry-rock.tga
blendfunc gl_one gl_one_minus_dst_alpha
rgbGen lightingDiffuse
}
}
metal01
{
{
map textures/waxy/metal01b.tga
tcGen lightmap
}
{
map $lightmap
blendfunc gl_dst_color gl_one
tcGen lightmap
}
{
map textures/waxy/metal01-z.tga
blendfunc gl_dst_color gl_one
tcGen lightmap
}
{
map textures/waxy/metal01.tga
blendfunc gl_zero gl_src_alpha
tcGen lightmap
}
}
metal02
{
{
map textures/waxy/metal02.tga
tcGen lightmap
}
{
map $lightmap
blendfunc gl_dst_color gl_one
tcGen lightmap
}
{
map textures/waxy/metal03.tga
blendfunc gl_dst_color gl_one
tcGen lightmap
}
{
map textures/waxy/metal04.tga
blendfunc gl_zero gl_src_alpha
tcGen lightmap
}
{
map textures/waxy/metal05.tga
blendfunc gl_zero gl_src_alpha
tcGen lightmap
}
}
metal02
{
{
map textures/waxy/marble.tga
}
{
map textures/waxy/metal01-z.tga
blendfunc blend
}
{
map textures/waxy/metal01-local.tga
blendfunc filter
}
{
map textures/waxy/metal2.tga
blendfunc filter
}
{
map textures/waxy/metal1.tga
blendfunc add
rgbGen const ( 0.490196 0.490196 0.490196 )
}
}
Metal-Scratched
{
{
map textures/waxy/marble.tga
tcMod scale 2 2
}
{
map $whiteimage
blendfunc add
}
{
map textures/waxy/metal2.tga
blendfunc blend
}
}
NewPlanks1
{
{
map textures/waxy/newplank.tga
}
{
map textures/waxy/newplank.tga
blendfunc gl_zero gl_dst_color
}
}
Concrete2
{
{
map textures/waxy/noise5.tga
blendfunc blend
}
{
map textures/waxy/noise5.tga
blendfunc gl_dst_color gl_dst_color
}
{
map textures/waxy/paint1.tga
blendfunc gl_dst_color gl_one_minus_dst_alpha
}
}
rock-brick
{
{
map textures/waxy/rock-brick_1.tga
}
{
map textures/waxy/rock-brick_1-n.tga
blendfunc gl_one_minus_src_alpha gl_dst_alpha
}
{
map textures/waxy/rock-brick_1.tga
blendfunc gl_dst_color gl_one_minus_dst_alpha
}
{
map $lightmap
blendfunc gl_dst_color gl_dst_alpha
}
}
dirtx
{
{
map textures/waxy/rock-dirt-1.tga
}
{
map textures/waxy/noise5.tga
blendfunc gl_one_minus_src_alpha gl_dst_alpha
}
{
map textures/waxy/rock1.tga
blendfunc gl_dst_color gl_one_minus_dst_alpha
}
{
map $lightmap
blendfunc gl_dst_color gl_dst_alpha
}
}
Red-matrix
{
{
map textures/waxy/red2.tga
}
{
map textures/waxy/red2.tga
tcMod scroll 0 -2
}
}
dirtx
{
{
map textures/waxy/rockx-texture.tga
}
{
map textures/waxy/noise5.tga
blendfunc gl_one_minus_src_alpha gl_dst_alpha
}
{
map textures/waxy/rockx-texture.tga
blendfunc gl_dst_color gl_one_minus_dst_alpha
}
{
map $lightmap
blendfunc gl_dst_color gl_one
}
}
Sidewalk-Brick-Small
{
{
map textures/waxy/sidewalk_brick_large.tga
}
{
map textures/waxy/noise5.tga
blendfunc gl_one_minus_src_alpha gl_dst_alpha
}
{
map textures/waxy/sidewalk_brick_large.tga
blendfunc gl_dst_color gl_one_minus_dst_alpha
}
{
map $lightmap
blendfunc filter
}
}
Waxy-Water
{
surfaceparm nolightmap
surfaceparm water
surfaceparm dust
{
map textures/waxy/water6.tga
blendfunc gl_dst_color gl_dst_color
}
{
map textures/waxy/water5.tga
blendfunc gl_dst_color gl_dst_color
tcMod turb 0 0.01 0 0.2
}
{
map textures/waxy/water7.tga
blendfunc gl_dst_alpha gl_dst_color
tcMod turb 0 0.1 0 0.5
tcMod scroll 0.5 0
}
}
Wood1319
{
{
map textures/waxy/wood1319.tga
}
{
map textures/waxy/wood1319.tga
blendfunc gl_one_minus_src_alpha gl_src_color
}
{
map textures/waxy/wood1319.tga
blendfunc gl_src_color gl_dst_alpha
}
{
map $lightmap
blendfunc filter
}
}
Wood1321
{
{
map textures/waxy/wood1321.tga
}
{
map textures/waxy/wood1321.tga
blendfunc gl_one_minus_src_alpha gl_src_color
}
{
map textures/waxy/wood1321.tga
blendfunc gl_src_color gl_dst_alpha
}
{
map $lightmap
blendfunc filter
}
}
Wood2
{
{
map textures/waxy/wood2.tga
}
{
map textures/waxy/wood2.tga
blendfunc gl_one_minus_src_alpha gl_src_color
}
{
map textures/waxy/wood2.tga
blendfunc gl_zero gl_src_alpha
}
{
map $lightmap
blendfunc filter
}
}
Wood3
{
{
map textures/waxy/noise1.tga
tcMod scale 8 8
}
{
map textures/waxy/wood3.tga
blendfunc gl_one_minus_src_alpha gl_src_color
}
{
map textures/waxy/wood3.tga
blendfunc gl_zero gl_src_alpha
tcMod scale 1 2
}
{
map $lightmap
blendfunc gl_one_minus_dst_alpha gl_dst_color
}
{
map textures/waxy/wood3.tga
blendfunc gl_one gl_dst_color
}
}
Wood4
{
{
map textures/waxy/wood8c.tga
}
{
map textures/waxy/wood8c.tga
blendfunc filter
}
{
map textures/waxy/wood8c.tga
blendfunc filter
}
{
map $lightmap
blendfunc filter
}
}
Wood5
{
{
map textures/waxy/wooden_plank_fence.tga
}
{
map textures/waxy/wooden_plank_fence.tga
blendfunc filter
}
{
map textures/waxy/wooden_plank_fence.tga
blendfunc filter
}
{
map $lightmap
blendfunc filter
}
}
Wood6
{
{
map textures/waxy/woodroughdark2.tga
}
{
map textures/waxy/woodroughdark2.tga
blendfunc gl_dst_color gl_one
}
{
map textures/waxy/woodroughdark2.tga
blendfunc gl_dst_color gl_one
}
{
map $lightmap
blendfunc filter
}
}
-
I dont know if this will work, but have you tried taking just one of those functions from the shader and tried it by itself (ie Make another shader called waxy1 and just add wood5 to it and see if it shows up in radiant)? If it does work then it may be shader size or an error inside of the file
-
No Luck.
i crated waxy1.shader
brick-red0
{
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_one
}
{
map textures/waxy/brick0.tga
}
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_src_color
}
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_dst_color
}
}
added waxy1 to shaderlist.txt.
no effect.
after flush and reload and restart waxy and waxy1 shaders are not in the shaders list.
-
Your shader names need to be like 'textures/waxy/brick-red0', not just 'brick-red0'.
-
Sorry for the delay in my reply - you have solved my problem
now for those that google this later:
Keywords: .shader shaderlist.txt scripts textures shaders
Note:
no duplicate file names or file names with spaces (use underscores or some such)
add this:
/base/scripts/[myshadername].shader
edit this:
/base/scripts/shaderlist.txt
to add
[myshadername] AND A BLANK LINE AT THE END OF THE FILE.
textures are stored in /base/textures/[myshadername]/textures.jpg or .tga
[myshadername].shader :
textures/waxy/brick-red0 <---- point to the preview image in GTKRadient. MUST be proper path and image file to show up in the editer.
{
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_one
}
{
map textures/waxy/brick0.tga
}
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_src_color
}
{
map textures/waxy/brick0.tga
blendfunc gl_dst_color gl_dst_color
}
}
Thank you so much for the help.