Console Errors with Custom Texture

  • If you're asking a question make sure to set the thread type to be a question!

SirkyDevoir

L1: Registered
Nov 19, 2017
37
7
So, after making some horrible, horrible maps with only vanilla textures, I wanted to try something new.
I took an existing water texture, water_well to be exact, and changed the color variables to make it red instead of blue to get red water.
Now I'm getting a ton of errors in the console, however:

Console:
No such variable "$fogenable" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"
No such variable "$fogstart" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"
No such variable "$fogend" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"
No such variable "$fogstart" for material "/water_hotspring"
No such variable "$fogend" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"
No such variable "$fogcolor" for material "/water_hotspring"

VMT File (At least the part about fog):
"$fogenable" 1
"$fogcolor" "{63 20 14}"
"$fogstart" "1"
"$fogend" "300"

Is there any way to fix this?
 

orange_blossom

L1: Registered
Mar 31, 2018
4
1
Don't know if this helps but you can try changing these properties in the water_well_dx80.vmt
If this doesn't work use water_island_dx80 instead. This water texture works for me even with
changed variables and has real time reflections.

No such variable "example_variable" says that there isn't a such variable in the vmt file of the texture, or that such variable cannot be used on this type of surface.
 
Last edited:

SirkyDevoir

L1: Registered
Nov 19, 2017
37
7
Don't know if this helps but you can try changing these properties in the water_well_dx80.vmt
If this doesn't work use water_island_dx80 instead. This water texture works for me even with
changed variables and has real time reflections.

No such variable "example_variable" says that there isn't a such variable in the vmt file of the texture, or that such variable cannot be used on this type of surface.

I tried both water_well_dx80 and water_island_dx80, and both of them are giving me the same errors. :/
 

orange_blossom

L1: Registered
Mar 31, 2018
4
1
Well i took the water_well.vmt changed the fog variables to red and took a screenshot
Remember to compile with everything checked (BSP, VIS, RAD) and without any leaks if you have water in your map.
I'm also posting whole vmt file here:

"Water"
{
"%keywords" "tf"
// $forcecheap 1

"%tooltexture" "dev/tfwater_normal"
"%compilewater" 1
"$abovewater" 1
// "$nofresnel" "1"

"$envmap" "env_cubemap"
"$refracttexture" "_rt_WaterRefraction"

"$refractamount" ".2"

<dx90
{
"$fallbackmaterial" "water/water_well_dx80"
}


//"$refracttint" "{1 179 155}"
"$refractblur" "0"

// "$reflecttexture" "_rt_WaterReflection"
// "$reflectamount" ".1"
// "$reflecttint" "{230 240 255}"
// "$reflectsaturation" "[0 0 1]"

"$scale" "[1 1]"

// "$bumpmap" "water/tfwater001_dudv"
"$normalmap" "water/tfwater001_normal"

"$surfaceprop" "water"
"$bottommaterial" "water/water_well_beneath.vmt"
"$bumpframe" "0"

"$fogenable" 1
"$fogcolor" "{118 18 18}"
"$fogstart" "1"
"$fogend" "40"

"$temp" "[0 0]"
"$curr" 0.0
"$curr2" 0.0



"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$normalmap"
"animatedtextureframenumvar" "$bumpframe"
"animatedtextureframerate" 30.00
}

"Sine"
{
"sineperiod" "24"
"sinemin" -0.5
"sinemax" 0.5
"resultVar" "$curr"
}
"Sine"
{
"sineperiod" "16"
"sinemin" 0.5
"sinemax" -0.5
"resultVar" "$curr2"
}

"Equals"
{
"srcVar1" "$curr2"
"resultVar" "$temp[0]"
}
"Equals"
{
"srcVar1" "$curr"
"resultVar" "$temp[1]"
}

"TextureTransform"
{
"translateVar" "$temp"
"resultVar" "$bumptransform"
}

// "TextureScroll"
// {
// "texturescrollvar" "$bumptransform"
// "texturescrollrate" .1
// "texturescrollangle" 45.00
// }
"WaterLOD"
{
// fixme! This has to be here, or material loading barfs.
"dummy" 0
}
}
}
 

Attachments

  • 20180719122140_1.jpg
    20180719122140_1.jpg
    285.5 KB · Views: 294