Hi, I am trying to make a transparent moss texture, by making a 1024x1024 .png and using the mp_rebel_symbol decal shader (copied it into new file & changed paths). The problem is, the shader shows up in radiant (shaders only checked), but not in-game. It gives an error code saying that the file path is an invalid parameter (I'll edit the exact error in later). I'm sure it's not an invalid parameter because it is simply a copy and paste of the QER editor image, which shows up in radiant. I'm not sure what the problem is, but I suspect it is a problem with the image itself. Any ideas of what could be wrong? Any help would be appreciated.
Edit: Here is the exact error message shown in console:
WARNING: unknown parameter ' textures/terrain_blend/alphamoss.png' in shader ' textures/terrain_blend/alphamoss' Shader textures/terrain_blend/alphamoss has a stage with no image
It seems the game can't find the image, even though the image is there.
The Soleutator;4943028Hi, I am trying to make a transparent moss texture, by making a 1024x1024 .png and using the mp_rebel_symbol decal shader (copied it into new file & changed paths). The problem is, the shader shows up in radiant (shaders only checked), but not in-game. It gives an error code saying that the file path is an invalid parameter (I'll edit the exact error in later). I'm sure it's not an invalid parameter because it is simply a copy and paste of the QER editor image, which shows up in radiant. I'm not sure what the problem is, but I suspect it is a problem with the image itself. Any ideas of what could be wrong? Any help would be appreciated.
Edit: Here is the exact error message shown in console:
WARNING: unknown parameter ' textures/terrain_blend/alphamoss.png' in shader ' textures/terrain_blend/alphamoss' Shader textures/terrain_blend/alphamoss has a stage with no image
It seems the game can't find the image, even though the image is there.
did you run the game directly from the compiling program ? or did you pk3 the files and started JASP.exe ?
Directly from the compile. Does this have an effect on things if the .png isn't in a .pk3? It doesn't have an effect on any other textures.
The Soleutator;4943178Directly from the compile. Does this have an effect on things if the .png isn't in a .pk3? It doesn't have an effect on any other textures.
I had the same problem with my water shader it worked after I put them in a pk3
Don't define .png in the shader. So just put 'textures/****/alphamoss' rather than '...textures/****/alphamoss.png'
xode;4943260Don't define .png in the shader. So just put 'textures/****/alphamoss' rather than '...textures/****/alphamoss.png'
Well, I tried it without defining .png, but that didn't work so I tried with .png.
I also put the .png in a .pk3, but I might try putting the shader/map in the pk3 as well. Like I said, since the shader seems to work when pointing to the rebel-symbol png, It is either the file not being in a pk3, or something wrong with the png I'm trying to use.
Sorry for DP...
I tried first replacing my custom .png with the rebel-base png, renaming it to alphamoss.png, and putting it in the textures/terrain_blend folder, where the shader points, and again, the shader displayed in radiant, but it had the texture missing image in-game. I then put the bsp, the shader, and the texture in a pk3, and no luck.
So the problem may be with either the path, or the shader. I'm still confused, but at least I've narrowed it down a small bit.
Triple post, so sorry about that...
Anyways, I found the problem, such a simple problem. In the shader, where there should have been the line: 'map textures/...' it was missing the 'map' line. Spent so much time on such a small problem, I guess it happens from time to time...
Anyways, thanks everyone for your help, I really appreciate it.
ohhhhhhh well that explains it all :D
man next time somebody has a problem like that I'l laks for the shader xD
AshuraDX;4944192man next time somebody has a problem like that I'l laks for the shader xD[/QUOTE] Yeah, that should always be the first step.
xode;4943260Don't define .png in the shader. So just put 'textures/****/alphamoss' rather than '...textures/****/alphamoss.png'Actually, it doesn't matter in JA. Other q3 games like Tremulous and ET need it, but JA doesn't.
[QUOTE=The Soleutator;4943888]Triple post, so sorry about that...
You will burn forever for your treachery. :)
Also, you don't have to pk3 anything to test. Just type /sv_pure 0 into the console before starting the map.