Original pak0.pk3 textures but different shaders?


(wizman88) #1

Hello, i’ve lately made a TJ map with some custom created shaders. For some reason, the shaders work fine when all i’m using is the .bsp in the /etmain/maps directory, but when I put it into a .pk3 file, they don’t work anymore. The shaders are copies from the original pak0.pk3 .shader files with an extra surfaceparm or two attached and they’re inside my seperate wzn_trickjump.shader file. In the console it says image shader missing for file (e.g. textures/wzn_trickjump/concrete_m05c_ice). Now when I saw that… I was thinking… well if it can’t find it… then i’ll try putting the textures directly in my .pk3 file (in their own folders of course). Guess what, still didn’t work. I know that my custom textures & shaders work in GTKRadiant and ET (e.g. my sand texture for the floor) because i’ve seen them and so have others when I tested my map. I even tried giving it to a friend and he said that there was nothing wrong with my .shader file and that he made his own .pk3 and it worked fine for him. :???: Maybe it’s my computer or something that I did wrong. Here’s the .shader code:


textures/wzn_trickjump/concrete_c05_ice
{
	qer_editorimage textures/miltary_wall/concrete_c05.jpg
	surfaceparm slick
	surfaceparm nodamage
{ 
map textures/miltary_wall/concrete_c05.jpg
}
}

textures/wzn_trickjump/concrete_m05c_ice
{
	qer_editorimage textures/miltary_wall/concrete_m05c.jpg
	surfaceparm nodamage
	surfaceparm slick
{ 
map textures/miltary_wall/concrete_m05c.jpg
}
}


textures/wzn_trickjump/chwood_c02_ice
{
	qer_editorimage textures/chat_wood/chwood_c02.jpg
	surfaceparm nodamage
	surfaceparm slick
{ 
map textures/chat_wood/chwood_c02.jpg
}
}


textures/wzn_trickjump/icelake_top
{
	qer_trans 0.80
	qer_editorimage textures/snow_sd/icelake3.tga
	sort seethrough
	surfaceparm glass
	surfaceparm nodamage
	surfaceparm slick
	surfaceparm trans
	
	tesssize 256

	{
		map textures/effects/envmap_ice2.tga
		tcgen environment
		blendfunc blend
	}
	{
		map textures/snow_sd/icelake3.tga
		blendfunc blend
	}
	{
		map $lightmap
		blendfunc filter
		rgbGen identity
		depthWrite
	}
	{
		map textures/detail_sd/snowdetail.tga
		blendFunc GL_DST_COLOR GL_SRC_COLOR
		rgbgen identity
		tcMod scale 4 4
		detail
	}
}

Thanks again! I hope someone can help me. :slight_smile:

-Wizman87 8)

PS. The .shader has the same filename as my map + it is inside the /scripts directory. :slight_smile:


(kamikazee) #2

Sure you included the .shader file in the pk3, and in the right directory?


(nUllSkillZ) #3

Try to replace jpg in the shaders with tga.
For example:
Replace


map textures/miltary_wall/concrete_c05.jpg

with


map textures/miltary_wall/concrete_c05.tga

Only the shaders.
No need to convert the JPG’s.
ET will look for TGA’s and if it don’t find these ET will look for JPG’s.


(wizman88) #4

Still doesn’t work nUllSkillZ. I tried changing just the map textures/directory/imagename.jpg to .tga and it still doesn’t work. I get the same errors. As for you kamikazee, yes, I do know for sure. :stuck_out_tongue:


(wizman88) #5

It’s been almost 10 hours… is anybody there…? -.-

Maybe I should ask shaderman. :stuck_out_tongue:


(S14Y3R) #6

if you copied them directly from the default shaders, then there is most likely a conflict of names. try renaming “your” shaders.

ie

textures/wzn_trickjump/concrete_c05_ice

If there is any other shader ending with _ice there will be conflicts. (you have three in your example) Name them so the last digits are unique to your map. even if its _ice1 _ice2 _ice3 the Engine can differentiate between them.

eg. textures/myshader/1_wood will cause the game to look through and try to apply every shader ending with _wood.


(wizman88) #7

I tried changing them to:


textures/wzn_trickjump/concrete_c05_ice1

textures/wzn_trickjump/concrete_m05c_ice2

textures/wzn_trickjump/chwood_c02_ice1

textures/wzn_trickjump/icelake_top_nodamage1

ET still could not find any of the images. :disgust: :banana:

-Wizman87


(Lanz) #8

I did a small testbox map with your shader with a couple of fixes, compiled and packed it into a pk3. Test it and see what happens (with sv_pure set to 1), if it doesn’t work you have some conflict with other shaders somewhere.

You can run the map with “map wzn_testbox” from the console, don’t try to join a team though, that will lock up your system since I only added a info_player_intermisson.

http://s52.yousendit.com/d.aspx?id=0ZWULDTX9DJ760Q2G7ZKE7OKUE


(wizman88) #9

I tried it, and yes, it is still black and orange. I’ve looked for a couple of days and still have not had any luck. I’ll check into my shaders again to see what the big mixup is all about. I still do not see any problems though. Thanks Lanz, but I think I still need a little more help to get this thing fixed.

-Wizman87


(Lanz) #10

You should really have two different installs of ET when mapping. One completly clean from any custom content, containing only the files released with the game and one for mapping. Then it’s easy to spot faults like this, if it works in the clean ET folder then the problem lies elsewhere. Also a good way to spot missing content like textures etc in your final pk3.

Sorry but there’s just too little info to help you any further.


(wizman88) #11

As far as I can tell, my .shader file is the only custom .shader file in the /scripts directory. I have taken all of the unnecessary files from /etmain and moved them elsewhere to make it a “somewhat clean” installation of ET so that I can spot the problem a little bit easier. I’m currently looking into it now. Thanks for all your help Lanz and to everyone else, i’m sure that i’ll figure it out sometime soon, I hope. :slight_smile: I usually do. :stuck_out_tongue:

-Wizman87

PS. I guess it’s back to the drawing board again. :banana:


(wizman88) #12

Well… I finally figured it out! I tried changing them to:


textures/wzn_trickjump/ice1 

textures/wzn_trickjump/ice2 

textures/wzn_trickjump/ice3

textures/wzn_trickjump/ice4

And it worked! :smiley: I can’t believe all of this discussion came up just because I missed 1 little thing. -.- Gosh! I hate computers! Lol. Ah well, i’ve learned from my mistakes and I hope others will to. :stuck_out_tongue: Thanks again everyone! This has truely helped me alot!

-Wizman87 8)

PS. Now I can finally continue with my mapping! Yay! :banana: :banana: :banana: