Easygen Probs


(oS!Digital) #1

Hi, i have readed a lot of this prob but i can’t solve it, when i’m compiling console says:

Couldn’t find image for shader textures/ZaT/terrain_0
Couldn’t find image for shader textures/ZaT/terrain_1
Couldn’t find image for shader textures/ZaT/terrain_0to1

I have got a folder > “Textures” with other folder into it > “Zat” with 3 folders into it > “Terrain_0”, “Terrain_1” and "Terrain_0to1

I have got terrain_base too

I have got the textures in these folders. I think all is correct :s

textures/ZaT/terrain_0
{
	q3map_baseshader textures/ZaT/terrain_base
	qer_editorimage textures/s_dirt_m03i_alpha.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/s_dirt_m03i_alpha.tga
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ZaT/terrain_1
{
	q3map_baseshader textures/ZaT/terrain_base
	qer_editorimage textures/rock_ugly_brown.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/rock_ugly_brown.tga
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ZaT/terrain_0to1
{
	q3map_baseshader textures/ZaT/terrain_base
	qer_editorimage textures/s_dirt_m03i_alpha.tga
	surfaceparm landmine
	surfaceparm grasssteps
	{
		map textures/s_dirt_m03i_alpha.tga
	}
	{
		map textures/rock_ugly_brown.tga
		blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
		alphaGen vertex
	}
	{
		map $lightmap
		blendFunc GL_DST_COLOR GL_ZERO
	}
}

textures/ZaT/terrain_base
{
	nopicmips
	q3map_lightmapaxis z
	q3map_lightmapmergable
	q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
}

This is my shader, help plz


(The Wanderer) #2

1)delete your terrain_0 terrain_1 terrain_0to1 folders cause you don’t need them.

2)your texture path is textures/s_dirt_m03i_alpha.tga which means you put your textures directly on the textures folder. This is a bad idea. Put your textures inside
the Zat folder, replace them in easygen(you don’t need to repaint the alphamap, just replace the textures it’s using) and re-export the terrain.

3)Add the name of this shader file to your shaderlist.txt file

  1. move the textures/ZaT/terrain_base shader to the top of the file.
  2. recompile

(oS!Digital) #3

K, now i get this error : Backwards tree volume

:frowning:


(oS!Digital) #4

K, error solved, now i get first error :slight_smile:


(oS!Digital) #5

Now my shader is:

textures/ZaT/terrain_0
{
q3map_baseshader textures/ZaT/terrain_base
qer_editorimage textures/ZaT/s_dirt_m03i_alpha.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/ZaT/s_dirt_m03i_alpha.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}

textures/ZaT/terrain_1
{
q3map_baseshader textures/ZaT/terrain_base
qer_editorimage textures/ZaT/rock_ugly_brown.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/ZaT/rock_ugly_brown.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}

textures/ZaT/terrain_0to1
{
q3map_baseshader textures/ZaT/terrain_base
qer_editorimage textures/textures/s_dirt_m03i_alpha.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/textures/s_dirt_m03i_alpha.tga
}
{
map textures/textures/rock_ugly_brown.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}

textures/ZaT/terrain_base
{
nopicmips
q3map_lightmapaxis z
q3map_lightmapmergable
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
}

I have got textures folder with zat into it and into zat i have got the textures ;\ can u help me?


(nUllSkillZ) #6

These are the directorys that are mentioned in your shader:

textures/ZaT/s_dirt_m03i_alpha.tga
textures/ZaT/rock_ugly_brown.tga
textures/textures/s_dirt_m03i_alpha.tga
textures/textures/rock_ugly_brown.tga

So you have to put the textures in the described directories.


(oS!Digital) #7

oops, in : textures/textures/s_dirt_m03i_alpha.tga
textures/textures/rock_ugly_brown.tga
nop, other question, where should textures folder go? etmain or wolfenstein folder? i have textures in both folders :stuck_out_tongue:


(oS!Digital) #8

K, now i have in etmain a folder called scripts with ZaT.shader into it
a folder called textures with ZaT folder into it
a folder called terrain_base into it > both textures into it
both textures in ZaT Folder
And my shader is:

textures/ZaT/terrain_0
{
q3map_baseshader textures/ZaT/terrain_base
qer_editorimage textures/ZaT/s_dirt_m03i_alpha.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/ZaT/s_dirt_m03i_alpha.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}

textures/ZaT/terrain_1
{
q3map_baseshader textures/ZaT/terrain_base
qer_editorimage textures/ZaT/rock_ugly_brown.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/ZaT/rock_ugly_brown.tga
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}

textures/ZaT/terrain_0to1
{
q3map_baseshader textures/ZaT/terrain_base
qer_editorimage textures/ZaT/s_dirt_m03i_alpha.tga
surfaceparm landmine
surfaceparm grasssteps
{
map textures/ZaT/s_dirt_m03i_alpha.tga
}
{
map textures/ZaT/rock_ugly_brown.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
alphaGen vertex
}
{
map $lightmap
blendFunc GL_DST_COLOR GL_ZERO
}
}

textures/ZaT/terrain_base
{
nopicmips
q3map_lightmapaxis z
q3map_lightmapmergable
q3map_tcGen ivector ( 512 0 0 ) ( 0 512 0 )
}


(oS!Digital) #9

K, problem solved, now i have other problem, when i’m in game, testing the map, i see only the primary texture (s_dirt_m03i_alpha) and other problem (i can solve it :stuck_out_tongue: TOO HIGH MOUNTAIN! :slight_smile: Thx to all for the help, how can i see the second texture?


(The Wanderer) #10

you don’t need the terrain_base folder…like I said before all you need is a folder called Zat with your textures in it.

Check the dimensions of the texture you can’t see. All texture sizes must be powers of 2 (i.e 128X128, 256x512, 512x512 etc…) pixels, and make sure the texture is either a .jpg or .tga format.

Inside the scripts folder there is a file called shaderlist.txt. Open it and add the line Zat at the end, and save it.
Also move the textures/ZaT/terrain_base shader at the top of your Zat.shader file.


(oS!Digital) #11

K thx for all, i’ll test all tomorrow, thx :stuck_out_tongue:


(shazmax) #12

Just an FYI on this subject - although its outdated.

« The compiler gave me a lots of errors!
“WARNING: missing image for shader map/terrain_0”
“WARNING: missing image for shader map/terrain_1”
“WARNING: missing image for shader map/terrain_2” … »
They are not errors, they are warnings. Thery are never the cause of a terrain that doesn’t work, so you can safely ignore them!

Just in case someone was searching on these errors like myself. Here’s a link to verify that this is what they’ve posted on their website -
http://digilander.libero.it/ilbanca/files_easygen.htm