HUD Issues

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

HUD Issues

Post by skelltor »

I seem to be having some issues with using HUD icons as I can't get the wrist blaster icon to show up and I can't get a weapon to use the sbd's wrist rocket icon I referenced the parts I thought I needed in the units REQ but am a bit unsure for a stamina dispenser I can't figure out how the ammo and bacta cans HUD are referenced in the weapon odf same with a custom mine with a new texture.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: HUD Issues

Post by Fiodis »

skelltor wrote:I referenced the parts I thought I needed in the units REQ
There's your problem; HUD icon references go in the weapon's odf.
skelltor wrote:I can't figure out how the ammo and bacta cans HUD are referenced in the weapon odf same with a custom mine with a new texture.
They're referenced just like any other weapon icon.

Code: Select all

IconTexture     = "HUD_powerup_icon"
In com_weap_inf_powerup_dispenser.odf.
Hidden/Spoiler:
Also, not to nag, but please use a bit more punctuation? I'm having a hard time figuring out what you're asking since you only use one period in the space of 3 (4? 5?) sentences.
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 Issues

Post by skelltor »

By referenced in the REQ I meant stuff like this.
Hidden/Spoiler:
REQN
{
"model"
"hud_cis_wristblaster"
}
REQN
{
"model"
"hud_cis_wristrocket"
}
REQN
{
"model"
"hud_cis_trishot"
}
About this line "IconTexture = "HUD_powerup_icon""
if you open up that texture n gimp you will notice that it looks nothing like the ingame HUD icon and looks like unused bf1 stuff.
Hidden/Spoiler:
I am sorry I have very bad punctuation I am trying to be a bit better though.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: HUD Issues

Post by DarthD.U.C.K. »

the entrys in the req tell battlefront to load these files when the req is loaded. the icons themselves must be referenced in some odf.
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 Issues

Post by skelltor »

I know that, but I can't find the line in the odf of the wrist rocket or the powerup dispenser.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: HUD Issues

Post by Fiodis »

Hmm - the line that usually references the hud icon is HudTag = "something". I don't see that anywhere in the powerup dispenser odf; but I also don't see it in, say, the Republic sniper rifle. This is more a guess than anything, but maybe if the odf doesn't have anything referenced then the game just uses the weapon's mesh? That'd explain why you can't find the powerup icon anywhere.
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 Issues

Post by skelltor »

Yea I thought that too, and I am trying too get it in my new HUD, but it won't show up ingame.
Post Reply