HudTag Icons - Problem especially with grenades geometry

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

User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

HudTag Icons - Problem especially with grenades geometry

Post by Flake »

Hello everyone!

I've tried the "Floating Weapon Icon Tutorial" by FragMe to add my new Thermaldetonators some Icons! Everything works great, only the shape of the Icons is wrong. :?

http://imageshack.us/f/191/screenshot0002d.jpg/
Hidden/Spoiler:
Image
I suspect the problem here, in the extraweapons.hud
Hidden/Spoiler:
// Second Weapons Section

TransformNameMesh("player1weapon2")
// add names of second weapons here
{
NameMesh("cis_weap_inf_thermalglow12345", "com_inv_mesh")


EventInput("player1.weapon2.change")
EventOutput("player1.weapon2.mesh")
}

Group("extraWeaponDisplay")
{
PropagateAlpha(1)
Viewport(1)
Position(0.0000000, 1.000000, 0.000000, "Viewport")
ZOrder(255)
EventEnable("player1.weaponsEnable")
EventDisable("player1.weaponsDisable")

Group("extraWeaponIcon")
{
Viewport(1)
Position(0.346161, -0.450412, 0.000000, "Viewport")
EventEnable("initialize")

Model3D("player1.weapon2mesh")
{
EventMesh("player1.weapon2.change")
Viewport(1)
ZOrder(5)
EventEnable("player1.weapon2.mesh")
EventDisable("player1.weapon2.disable")
Position(500.000000, 500.000000, 500.000000, "Viewport")
Rotation(0.804269, 359.994110, 359.999695)
Scale(0.000000, 0.000000, 0.000000)

// adjust position, rotation and scale of second weapon here

MeshInfo("cis_weap_inf_thermalglow12345")
{
Position(-0.278209, 0.280243, 0.006280, "Viewport")
Rotation(0.000000, 0.000000, 359.999695)
Scale(2.000000, 2.000000, 2.000000)

}
}
}
}
(This numbers are chosen at accident. I had tried the numbers in the following spoiler too.)

I've tried to get the right numbers. I searched in the "1 player hud.hud" but I don't know with numbers are the right ones.
Hidden/Spoiler:
MeshInfo("all_weap_inf_thermaldetonator")
{
Rotation(0.804269, 90.747269, 359.999695)
}

MeshInfo("all_weap_inf_grenadethermal")
{
Rotation(0.804269, 90.747269, 359.999695)
}

MeshInfo("com_weap_inf_thermaldetonator")
{
Position(-0.274201, 0.254023, 0.006280, "Viewport")
Rotation(0.056783, 359.996582, 359.999695)
Scale(1.653860, 1.653860, 1.653860)
}

my .odf
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_thermaldetonator_poisen"

[Properties]
HUDTag = "cis_weap_inf_thermalglow12345"
OrdnanceName = "cis_weap_inf_thermaldetonator_ord_poisen"


//************************************************
//******************* SOUND *****************
//************************************************

FireLoopSound = ""
ReloadSound = "com_weap_inf_equip_sm"
ChargeSound = ""
ChargeSoundPitch = ""
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
---------------------------------------------------------------------------
And an other question! What's up with the line:
GeometryName = "rep_weap_inf_grenadethermal.msh"
Thats the difference between this one and:
GeometryName = "rep_weap_inf_thermaldetonator.msh"

could my problem exist because this line is missing? (Its missing only by my CIS grenade, not by my REP one.)

Can someone help me? Thanks for every answer! :D
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HudTag Icons - Problem especially with grenades geometry

Post by AQT »

Welcome to Gametoast. I'm not sure, but I don't think this has to do with the icon fix. It could just be your monitor size or video card. I've seen this difference before with some mods. On my 1024x768 monitor, the icons would appear normally, whereas on my widescreen moniter, the icons would appear stretched and distorted. I don't know exactly know to fix this, though.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: HudTag Icons - Problem especially with grenades geometry

Post by Maveritchell »

AQT wrote:Welcome to Gametoast. I'm not sure, but I don't think this has to do with the icon fix. It could just be your monitor size or video card. I've seen this difference before with some mods. On my 1024x768 monitor, the icons would appear normally, whereas on my widescreen moniter, the icons would appear stretched and distorted. I don't know exactly know to fix this, though.
You'll see this error on any widescreen monitor with even stock icons, AFAIK. The only fix would be giving your icons an aspect ratio (i.e. reducing the width of the image while keeping the alpha background the same size) that counteracted the widescreen stretching.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: HudTag Icons - Problem especially with grenades geometry

Post by Marth8880 »

Hmm, I have a widescreen monitor and I have never seen any stretched icons or the like. :o
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: HudTag Icons - Problem especially with grenades geometry

Post by THEWULFMAN »

Ditto with Marth. Maybe some people have the issue while others don't? Graphics card issue, maybe?
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: HudTag Icons - Problem especially with grenades geometry

Post by Locutus »

Maybe it looks less ugly if you play around with the rotation.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: HudTag Icons - Problem especially with grenades geometry

Post by Marth8880 »

I highly doubt it's an end-hardware issue, though the game may set some different configurations per graphics card model/family.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: HudTag Icons - Problem especially with grenades geometry

Post by lucasfart »

Flake wrote: And an other question! What's up with the line:
GeometryName = "rep_weap_inf_grenadethermal.msh"
Thats the difference between this one and:
GeometryName = "rep_weap_inf_thermaldetonator.msh"

could my problem exist because this line is missing? (Its missing only by my CIS grenade, not by my REP one.)

Can someone help me? Thanks for every answer! :D
All that that line affects is the model that is used. So both those lines would work, but one would look for a mesh called "rep_weap_inf_grenadethermal" while the other would look for a mesh named "rep_weap_inf_thermaldetonator".
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HudTag Icons - Problem especially with grenades geometry

Post by AQT »

Those lines are unnecessary. They are only for ZE usage since they have the .msh extension included with the names of the models. Only the GeometryName line in the ordnance ODF matters.
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: HudTag Icons - Problem especially with grenades geometry

Post by Flake »

Oh?? Thanks for the masses of replies! :thumbs:

I'm not sure if the problem should be the Screen. I will give my map to friends for testing this presumption. :cpu:

Could the problem be due to another thing? I do not think that it is because of the Screen. :?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: HudTag Icons - Problem especially with grenades geometry

Post by AQT »

Flake wrote:I do not think that it is because of the Screen. :?
Why do you say this? What do you have to back this up? A gut feeling? What gain do we have in lying to you or by holding back knowledge? And no, it's not just the size of the monitor. It can perhaps also be the video card. And no, it's not a presumption. It's based on observable evidence. I wish I can show you a comparison of two screenshots, but my other computer doesn't want to start up at the moment.
Flake wrote:Could the problem be due to another thing?
Let's say it's another thing that also can't be fixed via modding. What will you do then?
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: HudTag Icons - Problem especially with grenades geometry

Post by FragMe! »

Getting back to what AQT said in his first reply.
You monitor you are looking at this on is it a wide screen or is it the older more squarish type?
What is your screen resolution set to in game?
If you have a wide screen and you have a resolution of 1024 X 768 chosen then yes it would be distorted. You would need to chose a resolution that is designed for a wide screen 1920 or 720
even 1600 x 900 would work. similarly if you have an older screen you can use a wide screen resolution.
Try mucking about with those and see if it makes a difference because as was stated there isn't really anything in the HUD or odfs that would change the icon width. (well except the scale part but since you have the same numbers for all 3 axis it shouldn't be the problem)

If the above screen resolution doesn't fix the problem then you could play with the scale numbers in the HUD file and see if that makes the icon to the deisred roundness.
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: HudTag Icons - Problem especially with grenades geometry

Post by Flake »

Why do you say this? What do you have to back this up? A gut feeling? What gain do we have in lying to you or by holding back knowledge? And no, it's not just the size of the monitor. It can perhaps also be the video card. And no, it's not a presumption. It's based on observable evidence. I wish I can show you a comparison of two screenshots, but my other computer doesn't want to start up at the moment.
Sorry Sorry :? Its only a gut feeling!
What is your screen resolution set to in game?
I have a resolution 1280 x 960 .
Let's say it's another thing that also can't be fixed via modding. What will you do then?
--> I would know what is happening at least. :runaway:
You monitor you are looking at this on is it a wide screen or is it the older more squarish type?
--> more squarish type, but new
icemember
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 318
Joined: Thu Jun 11, 2009 3:02 am
Projects :: Designated Days Chapter 1
Games I'm Playing :: SWBF2 Mortal Komabt
xbox live or psn: icemember x
Location: 6 planet of the Hoth system

Re: HudTag Icons - Problem especially with grenades geometry

Post by icemember »

Just curious. Is your icon a full model or an actual flat custom model icon?

Photo
---------------------------------------------
Image
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: HudTag Icons - Problem especially with grenades geometry

Post by Flake »

Just curious. Is your icon a full model or an actual flat custom model icon?
I chosed "hud_thermaldetonator.tga" as my icon. I think it's a flat one.
Hidden/Spoiler:
C:\BF2_ModTools\data_LAL2\Common\interface\hud_thermaldetonator.tga
Is a full model icon a .tga file?? Where can I find these files?? :shock:
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: HudTag Icons - Problem especially with grenades geometry

Post by THEWULFMAN »

Actually both full model and flat model icons used models. hud_thermaldetonator.msh is the thermal detonator model. The full and flat models are in Data_XXX\Common\mshs.
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: HudTag Icons - Problem especially with grenades geometry

Post by Flake »

http://desmond.imageshack.us/Himg855/sc ... es=landing
Hidden/Spoiler:
Image
So! Here is the picture of the grenade in the other team. You see it is also flawed.
And I have given my map to another player. He said he had the same problem as me.

But why is there a second grenade-animation in the air. This is not happened with another team.

:(
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: HudTag Icons - Problem especially with grenades geometry

Post by Locutus »

Make sure to only use one extraweapons.hud.
Using several files will cause two icons appearing on screen.

There are some topics about this already, use the search for further information.
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: HudTag Icons - Problem especially with grenades geometry

Post by FragMe! »

As a wild idea, did you try the rotation values that are used in the original hud file for the detonators?

Rotation(353.358673, 99.140221, 1.132509) (thermaldetonator)

Rotation(0.804269, 90.747269, 359.999695) (grenadethermal)
User avatar
Flake
Recruit Womprat Killer
Posts: 12
Joined: Sat Dec 25, 2010 4:06 am
Projects :: [STR] [LAL]
Games I'm Playing :: SWBF2 and EE AOC

Re: HudTag Icons - Problem especially with grenades geometry

Post by Flake »

Hidden/Spoiler:
Image
With FragMe!'s rotation-codes it is the same!
And I'm using one extraweapons.hud in eatch Side-Folder.

I had already posted my .req?
Hidden/Spoiler:
}

REQN
{
"model"
"com_inv_mesh"
"hud_tesla1"
}

REQN
{
"config"
"extraweapons"

}
}
Post Reply