View Full Version : Importing and using textures???

Euphoric Beaver
4th Nov 2001, 06:50 AM
I've been trying to mess with the HUD and was trying to replace the HudElements1.pcx with my own.
So I subclassed ChallengeHud and made a new GameType that used my new HUD.

In my new HUD I imported a texture using this code.

#exec TEXTURE IMPORT NAME=hudelements FILE=textures\hudelements.PCX GROUP="HUD" MIPS=OFF FLAGS=2

I'm pretty sure it works because it's copied from the original ChallengeHud but edited to suit my folders and name.

I was planning on overwriting the DrawWeapons function, and I tried to replace my texture with the old one. But it's having none of it. It keeps saying it can't find the texture. :(
These are the ones I've tried.


And tried putting the .pcx at the end and even tried imoprting it manually through Unrealed but still no luck. :(

What's wrong? :(

4th Nov 2001, 06:57 AM
I don't include a package name something like Texture'hudelements' should work

4th Nov 2001, 08:41 AM
the correct syntax would be

But I think you should give it another name than
"HUDElements" because it this package already exists and it will either not work either make something wrong with the UT package.