Page 1 of 2

HudTag Icons - Problem especially with grenades geometry

Posted: Mon May 28, 2012 7:52 am
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

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Mon May 28, 2012 10:17 am
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.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue May 29, 2012 12:10 am
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.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue May 29, 2012 12:56 am
by Marth8880
Hmm, I have a widescreen monitor and I have never seen any stretched icons or the like. :o

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue May 29, 2012 10:44 am
by THEWULFMAN
Ditto with Marth. Maybe some people have the issue while others don't? Graphics card issue, maybe?

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue May 29, 2012 11:43 am
by Locutus
Maybe it looks less ugly if you play around with the rotation.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue May 29, 2012 12:26 pm
by Marth8880
I highly doubt it's an end-hardware issue, though the game may set some different configurations per graphics card model/family.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed May 30, 2012 2:37 am
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".

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed May 30, 2012 5:24 am
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.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed May 30, 2012 11:49 am
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. :?

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed May 30, 2012 12:20 pm
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?

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed May 30, 2012 1:08 pm
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.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed May 30, 2012 2:52 pm
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

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Fri Jun 01, 2012 4:05 am
by icemember
Just curious. Is your icon a full model or an actual flat custom model icon?

Photo
---------------------------------------------
Image

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Fri Jun 01, 2012 9:31 am
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:

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Fri Jun 01, 2012 9:56 am
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.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue Jun 05, 2012 10:03 am
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.

:(

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue Jun 05, 2012 10:42 am
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.

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Tue Jun 05, 2012 9:14 pm
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)

Re: HudTag Icons - Problem especially with grenades geometry

Posted: Wed Jun 06, 2012 5:16 pm
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"

}
}