shader problem


(TurdS) #1

I’ve looked at many of the tuts linked on the forum and I really couldn’t find one to help me. I am trying to apply the .skin to the construction crates and and I keep getting this error:


FIXME: name == NULL || strlen(name) == 0 in QERApp_Shader_ForName
FIXME: name == NULL || strlen(name) == 0 in QERApp_Shader_ForName
FIXME: name == NULL || strlen(name) == 0 in QERApp_Shader_ForName

And it applies the “Shader Not Found” texture to the model. I have checked the paths and I have my pak file extracted. Anyone got any ideas?

Thanks.


(MadJack) #2

Don’t mind those. It’s only radiant’s warnings. Skins should display properly in-game.


(TurdS) #3

=( didn’t work. the crates and the shovel have the holodeck look.


(TurdS) #4

i hate to do this but, :bump:


(MadJack) #5

Check for spelling errors because I get those warnings too but the skins are apply ingame. My guess is you have a spelling problem.

Post your skin key/value of the model which gives the grid.


(TurdS) #6

key: skin
value: models/mapobjects/cmarker/allied_crates.skin

and the model is:
key: model
value: models/mapobjects/cmarker/cmarker_crates.md3

i’ve even tried fliping the “/”'s to “”'s and still nothing.

EDIT

i also did a google search again on the error and i was reading a page that had the editor source code and i found a few lines that confused me a bit:


00724   if (name == NULL || strlen (name) == 0)
00725   {
00726     // Hydra: This error can occur if the user loaded a map with/dropped an entity that
00727     // did not set a texture name "(r g b)" - check the entity definition loader
00728 
00729     g_FuncTable.m_pfnSysFPrintf (SYS_ERR, "FIXME: name == NULL || strlen(name) == 0 in QERApp_Shader_ForName
");
00730     return QERApp_Shader_ForName (SHADER_NOT_FOUND);
00731   }
00732   // entities that should be represented with plain colors instead of textures
00733   // request a texture name with (r g b) (it's stored in their class_t)
00734   if (name[0] == '(')
00735   {
00736     return QERApp_ColorShader_ForName (name);
00737   }
00738 
00739   CShader *pShader = static_cast < CShader * >(QERApp_Try_Shader_ForName (name));
00740   if (pShader)
00741   {
00742     pShader->SetDisplayed (true);
00743     return pShader;
00744   }
00745   return QERApp_CreateShader_ForTextureName (name);
00746 }

what i get from that is the editor saying the shader can’t be found. which puzzles me due to it being used in about every map? :banghead:


(MadJack) #7

Is the model key really model or misc_model or misc_gamemodel?


(TurdS) #8

i am using the misc_gamemodel entity.


(MadJack) #9

Ok so you have:
classname misc_gamemodel
skin models/mapobjects/cmarker/allied_crates.skin
model models/mapobjects/cmarker/cmarker_crates.md3 ?

Those display correctly here (ingame) though not in Radiant. Is that what you want to do? Have the .skin applied to md3 in radiant or ingame?


(No1_sonuk) #10

I’m having the same problem:
http://www.splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=8329
I’ve posted example files that have the problem in that thread.


(TurdS) #11

i am trying to get it ingame more than anything else. this is what i am getting ingame:


(No1_sonuk) #12

yeah, i posted those files so that people can see an example of what I have tried.


(MadJack) #13

@TurdS Any error in the console about missing texture/file etc?


(TurdS) #14

file not found: scripts/gun.arena
WARNING: Couldn't find image for shader levelshots/gun
WARNING: light grid mismatch
WARNING: Couldn't find image for shader levelshots/gun_cc.tga
WARNING: Couldn't find image for shader levelshots/gun_cc_trans
WARNING: Couldn't find image for shader levelshots/gun_cc_automap

those are the only errors. the temp name of the map is gun, so i understand the warnings, but nothing about missing textures. also i’ve made maps for testing with out of the cc items and didn’t have any problems.


(MadJack) #15

Well, I’m sorry… there has to be something wrong but I can’t think of anything. As I said, those work fine here and it looks fine from what you posted.

Maybe someone else has an idea of what’s going on?