Hud Image not working

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
Nekoneko
CJ Fan
CJ Fan
Posts: 170
Joined: April 18th, 2011, 3:48 pm

Hud Image not working

Post by Nekoneko » May 8th, 2011, 10:03 am

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 :<

Moustache
CJ Worshipper
CJ Worshipper
Posts: 476
Joined: August 18th, 2008, 9:30 am

Re: Hud Image not working

Post by Moustache » May 8th, 2011, 11:45 am

...
Sorry I am retarded.
Last edited by Moustache on May 8th, 2011, 5:39 pm, edited 1 time in total.

Nekoneko
CJ Fan
CJ Fan
Posts: 170
Joined: April 18th, 2011, 3:48 pm

Re: Hud Image not working

Post by Nekoneko » May 8th, 2011, 12:58 pm

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.

User avatar
Opel
CJ Fan
CJ Fan
Posts: 188
Joined: September 15th, 2008, 12:28 pm
Location: Scotland

Re: Hud Image not working

Post by Opel » May 8th, 2011, 1:16 pm

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.

Nekoneko
CJ Fan
CJ Fan
Posts: 170
Joined: April 18th, 2011, 3:48 pm

Re: Hud Image not working

Post by Nekoneko » May 8th, 2011, 1:18 pm

ok. r4doxzz told me the answer.
if anyone needs the answer:
update the csv file with material,yourmaterial

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest