Page 1 of 1
HUD icon trouble
Posted: Sun Sep 19, 2010 1:21 am
by AQT
As you all may know, there's this HUD icon called hud_rep_weap_defense_buff_icon.msh in the data_***\Common\mshs folder (it's the hexagon-looking one). Well I'm trying to use this icon for two separate buff weapons. Using two copies of the icon, I renamed each of them to something different that's not hud_rep_weap_defense_buff_icon.msh. I also hex edited both of them so that each calls for a different texture that's not hud_rep_weap_defense_buff_icon.tga.
So I put the MSHs and TGAs in my side's msh folder, used Fragme!'s extraweapons.hud file to get the icons in the right position, added the HUDTag parameter line in my buffs' ODFs, and referenced the model and texture in my units' REQs. In-game the icons shows up fine, but the their textures do not. The texture shows up however, when viewing the icons in MSH Viewer.
I've been thinking about what the problem could be for the last hour or so, but I still can't seem to spot what's wrong. Any help would be greatly appreciated.
Re: HUD icon trouble
Posted: Sun Sep 19, 2010 1:26 am
by Maveritchell
Are you loading the models at all in your .req? See: stock sides for examples.
Re: HUD icon trouble
Posted: Sun Sep 19, 2010 1:35 am
by AQT
AQT wrote:and referenced the model and texture in my units' REQs.
Yes I am.

Re: HUD icon trouble
Posted: Sun Sep 19, 2010 3:55 pm
by skelltor
Try cleaning munging than munging again keep munging unit you notice them being munged i have the same problem with my new HUDs and it works for me if i munge a few time.Also check your munger when you see it munging the tgas of your side if it shows their names than don't bother with munging again its somthing else.
Re: HUD icon trouble
Posted: Sun Sep 19, 2010 4:42 pm
by AQT
I've already tried cleaning. The textures still don't show up though.
Re: HUD icon trouble
Posted: Sun Sep 19, 2010 5:02 pm
by skelltor
hmm i don't know then did you save them with rle commpression accidently on?
Re: HUD icon trouble
Posted: Sun Sep 19, 2010 6:39 pm
by AQT
RLE compression was off when I saved the TGAs. The icons opened up just fine with MSH viewer, which would have crashed if RLE compression was on. Any other ideas? Maybe it's a bug with this particular icon?
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 12:50 am
by Cerfon Rournes
Try running the debugger.
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 1:05 am
by AQT
I did that and it appeared no errors relating to the icons showed up.
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 8:49 am
by skelltor
AQT wrote:RLE compression was off when I saved the TGAs. The icons opened up just fine with MSH viewer, which would have crashed if RLE compression was on. Any other ideas? Maybe it's a bug with this particular icon?
Oh sorry i didn't know that about the msh viewer
yes it might be that icon try the posion/rage icon msh it works great for me.
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 3:53 pm
by AQT
But I like the look of this icon.

Yeah, if I can't find a fix for this texture problem, I'll might as well use the rage/poison icon, or even the shield one.
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 4:24 pm
by FragMe!
What if you tried putting it in so it is a floating Icon still, ie not using the extra weapons icon fix, you may need to do this on a test map, does the texture show up then?
Also I know you called the tgas different names did you also rename the weapon (buff) or is it still using the same name, what if you were to try renaming the buff.
It has been a long time since I played with this so some of the tricks I learned along the way are a little fuzzy.
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 4:39 pm
by AQT
Thanks for the suggestions, Frag. I just tested it out without using the floating icon fix: the textures still do not show up. And the buff ODFs were already renamed to non-stock names.
Re: HUD icon trouble
Posted: Mon Sep 20, 2010 6:45 pm
by FragMe!
Just a wild idea
Try adding the following to the sides req first and if it doesn't work there then I guess the ingame.req
REQN
{
"texture"
"hud_rep_weap_defense_buff_icon.tga"
}
but of course using the name you changed them too
Like I said it has been a long time since i worked with icons, I guess I should go back and read the tutorial

Re: HUD icon trouble
Posted: Mon Sep 20, 2010 7:00 pm
by AQT
I tried that with my side's REQ already and the result was still the same. And I'm not using a custom ingame.lvl (should I?). The other HUD icons I'm using are working fine. It's just the hexagon one that's having the texture problem.
Re: HUD icon trouble
Posted: Tue Sep 21, 2010 9:04 am
by FragMe!
What if you spun your mesh 180 degrees in your modelling program before export just in case you are looking at the back of it. Or conversly make a new one and see if that one works any better. Yes I am just throwing out any idea I can come up with.
Re: HUD icon trouble
Posted: Wed Sep 22, 2010 1:48 am
by AQT
I'm not using a custom icon. There aren't any polygons on the backside of the stock icon I'm using. (So I should be seeing nothing if I am in deed looking at its back.) Well, thanks, Fragme!. I think we've gone through every possible thing that could be wrong. I guess I'll use a different icon then.
