HUD icon trouble

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

HUD icon trouble

Post 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.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: HUD icon trouble

Post by Maveritchell »

Are you loading the models at all in your .req? See: stock sides for examples.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post by AQT »

AQT wrote:and referenced the model and texture in my units' REQs.
Yes I am. :wink:
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: HUD icon trouble

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post by AQT »

I've already tried cleaning. The textures still don't show up though.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: HUD icon trouble

Post by skelltor »

hmm i don't know then did you save them with rle commpression accidently on?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post 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?
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: HUD icon trouble

Post by Cerfon Rournes »

Try running the debugger.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post by AQT »

I did that and it appeared no errors relating to the icons showed up.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: HUD icon trouble

Post 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 :oops:
yes it might be that icon try the posion/rage icon msh it works great for me.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post by AQT »

But I like the look of this icon. :P 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: HUD icon trouble

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: HUD icon trouble

Post 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 :)
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post 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.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: HUD icon trouble

Post 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.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HUD icon trouble

Post 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. :)
Post Reply