Page 1 of 1

Hud Image not working

Posted: May 8th, 2011, 10:03 am
by Nekoneko
Hello.
Im failing at a simple task, putting an image to a hud.

I just get this


Image

Yes. Ive precached the shader with PreCacheShader("portal_hud");

and then

self.portal_hud = NewClientHudElem(self);
self.portal_hud setShader("portal_hud",256,256);

I need help :<

Re: Hud Image not working

Posted: May 8th, 2011, 11:45 am
by Moustache
...
Sorry I am retarded.

Re: Hud Image not working

Posted: May 8th, 2011, 12:58 pm
by Nekoneko
it works with setshader("black");
so thats not the problem.
It just doesnt know where the image file is i guess. And im wondering if i need to do anything extra for custom textures.

Re: Hud Image not working

Posted: May 8th, 2011, 1:16 pm
by Opel
Is the iwi of the texture in your map's .iwd?

If not then you will need to put the iwi file in a folder called images in the iwd.

Re: Hud Image not working

Posted: May 8th, 2011, 1:18 pm
by Nekoneko
ok. r4doxzz told me the answer.
if anyone needs the answer:
update the csv file with material,yourmaterial