Saturday, January 19

Tutorial: 'Shader missing error'

I had this problem aswell so I'd like to notify you people of this error, so you immediately know what to do about it.

And I quote from GER-Iceman (thank you)
Edited slightly for better understanding

A lot of people have problem with this error. It can happen when you add a xmodel, a prefab or want to open a map. It seems that the tools have a corrupt/missing path for the shader_bin folder so you have to copy this folder and paste it to several other folders to fix this problems.

Create a new 'raw' folder in your /raw folder and copy the shader_bin folder to it. Also create a raw folder in the xmodels folder and paste the shader_bin folder into it. Also create a raw folder in the prefabs folder and paste the shader_bin folder into it.

22 comments:

Anonymous said...

Thanks for helping with shader bin problem, now i can export models to scene, but there is more. I am getting the same shader error when compiling bsp and reflections in cod4 compile tools, so I think it is the same problem and I have to copy the shader_bin folder somewhere else too, but where?

Stan said...

Where have you copied to at the moment?

There should now be a raw folder containing a shader_bin folder containing countless shaders of 1-2kb.

That folder should be in the following folders:

map_source/prefabs/
raw/xmodel/
raw/

SnakeTest said...

Thank you! This error was really pissing me off. I did a quick google search, and your blog post came up as the only hit, and it turns out it works perfectly!

I hope you create a whole series of tutorials as your advice was perfect for this problem.

Shame on InfinityWard for not troubleshooting their tools more, how can you screw up the Model importing process :P.

Cheers again!

Anonymous said...

So I have the shader problem

FATAL ERROR: Can't find shader: shader_bin/vs_3_0_00ae8dab

and it seems like I've copied shader_bin folder everywhere and still it wont work does anybody have a list of the folders i need it in....maybe I missed one. Its really ticking me off cause I can't even open the Launch Level Editor

thanks

Stan said...

Where do you have the shader_bin folder in now? What folders?

Should be in
[root]/raw
[root]/map_source/prefabs
[root]/raw/xmodel

Anonymous said...

I've got it in

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\Cod4 Mod Tools\map_source\prefabs\shader_bin

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\Cod4 Mod Tools\map_source\prefabs\raw\xmodel\raw\raw\shader_bin

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\xmodel\shader_bin

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\xmodel\raw\shader_bin

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\raw\raw\shader_bin

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\Cod4 Mod Tools\bin\shader_bin

I:\Program Files\Activision\Call of Duty 4 - Modern Warfare\Cod4 Mod Tools\bin\CoD4CompileTools\shader_bin

I've probably got it in a couple more but I can't remember

Anonymous said...

thanks a ton, this has been hindering me for days

Anonymous said...

thanks, so much, all is well

Anonymous said...

there is a patch out now that fixes this problem if you look for it at the IW forums. Or search for Cod4 mod tools patch. should do it.

Anonymous said...

you are as one would say "the shit!"

Anonymous said...

yeah thanks a lot, works now

Anonymous said...

This tip didn't works for my problem. It receive the error :
"error during initialisation
can't find shader : shader_bin/ps_2_0_3fe1c8af"

even with the cloned dirs. I realised the specified file doesn't exist nowhere in my system.

So I found another solution that worked!

Edited my profile config_mp.cfg file manually, replacing shader 2_0 calls with shader 3_0 call:
open \COD4ROOT\players\profiles\{profilename}\config_mp.cfg

1. Find the lines:
seta r_rendererInUse "Shader model 2.0"
seta r_rendererPreference "Shader model 2.0"

2. Replace with (or add them):
seta r_rendererInUse "Shader model 3.0"
seta r_rendererPreference "Shader model 3.0"

Now, the game find and use correct shader files (ps_3_0_xxx) and the compile runs fine!

hope it can help :D

manos2001_com said...

I am trying to play ratatuille game and after set up tryin to play it says Shader File Error
what i have to do to play the game///????
manos2001_com@yahoo.gr
thanks a lot...............

Stan said...

This isn't about the game you are talking about.

Anonymous said...

Mr Stan
what i have to do about that
please explaine because i dont know a lot about pc's.
thank you

and tell me something else
what i have to do when
trying to open an engyklopidia
message says Run-time error '5'
Invalid procedure or argument
with the compliments of
manos2001_com@yahoo.gr

Stan said...

I can't help you, the shader missing error in this case is different to that of yours. The subject isn't the same.

Anonymous said...

I love it when people just puts up random problems in a blog like this...

Death_SpecteR said...

Thanks Man, Worked like a charm,
I see a tree model now instead of a crash.
Awesum.

Anonymous said...

Pungkas was here !

Anonymous said...

Thank you so much man, i can finally put exploding cars in my map now. *bows* i'm not worthy...

Unknown said...

Followed this and sure enough it fixed my problem! Thank you for this.

Anonymous said...

Tenk ju