Hello,
I am in the process of learning how to add a surfaceparm to a texture. Ultimately, at this point, I just need to add surfaceparm landmine. I attempted to use a implicit shader as such:
textures/fueldump/cave_floor
{
surfaceparm landmine
srufaceparm gravelsteps
implicitMap -
}
Ok. I made this and named it “cshader.shader”. I then placed it in the etmain/scripts directory, then I added “cshader” to my shaderlist.txt file (etmain/scripts dir). After doing this, I opened Radient. I found “cshader” in the texture menu and clicked on it. I didnt notice anything happen, and in the console it read (cant remember exact text but something along the line of…) 0 Shaders loaded. Not knowing what to do next, I ignorantly opened the texture menu and clicked on flush/reload shaders. When I clicked this (I had “cave_floor” texture selected), all of my “cave_floor” textures were replaced with “shader not found”; also, all of my common textures were randomly switched (i.e. “Shader not found” replaced with “origin”, “weapon clip” replaced with “trigger”, “origin” replaced with “caulk”, and so on).
After playing around with the texture, I was able to restore my cave_floor, but was freaking out about having to go and individually change the common textures back to their original state.
I restarted my PC, and now my common textures are back in their original state.
So, this brings me to some questions.
1 What exactly does “Flush/Reload Shaders” do? It sounds self explanitory, but I cant imagion why it changed all my common textures.
2 Where exactly do I store my .shader file while in the developement process (/etmain/scripts or etmain/maps/scripts)? Should I name it the same name as the map?
3 How is a .shader file called (triggered to execute script)? At what level is it called (i.e. is it executed in Radient; or is it executed ingame when the map is loaded?) ?
Ive searched LDR and this site, but havent found any clear answers to 2 and 3.
4 Where is “/textures/fueldump/cave_floor” stored? I have searched my entire Enemy Territory directory and have yet to find “/textures/fueldump/cave_floor”. I have even converted pak0.pk3 to a .zip file and explored it with no avail. The closest thing I found in my pak0 was “/textures/fueldump_sd/”, and all that directory had was door texture. I cant find this file anywhere, yet the texture still shows in Radient and in-game.
Sorry such a long post, but thanks in advance for any help!
-Over