Floating Icons still present after Icon fix

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
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Floating Icons still present after Icon fix

Post by TWINKEYRUNAWAY »

Image

Hello guys, hope all is going well. Anyway I am having an issue persisting with the floating icon fix. It will display the majority of the weapons in the right place, but will still have a floating icon present. It is quite annoying and this doesnt seem to be a problem when applied to the imperial side. Here is how my extreweaponshud.hud looks like. Any help would be most appreciated.
Hidden/Spoiler:
Code:

ViewPort("Transforms")
{
EventNameFilter("player%")

// First Weapons Section

TransformNameMesh("player1weapon1")
// add msh names of first weapons here and remove unused lines
{
NameMesh("all_weap_inf_misslelauncher", "com_inv_mesh")
NameMesh("all_weap_inf_repairkit", "com_inv_mesh")
NameMesh("all_weap_inf_dl44", "com_inv_mesh")
NameMesh("all_weap_inf_A280", "com_inv_mesh")
NameMesh("delta20", "com_inv_mesh")
NameMesh("acp_array_gun", "com_inv_mesh")


EventInput("player1.weapon1.change")
EventOutput("player1.weapon1.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.weapon1mesh")
{
EventMesh("player1.weapon1.change")
Viewport(1)
ZOrder(5)
EventEnable("player1.weapon1.mesh")
EventDisable("player1.weapon1.disable")
Position(500.000000, 500.000000, 500.000000, "Viewport")
Rotation(0.804269, 359.994110, 359.999695)
Scale(0.000000, 0.000000, 0.000000)

//change position, rotation and scale of first weapon here, remove unused lines

MeshInfo("all_weap_inf_dl44")
{
Position(-0.242922, 0.360546, 0.003365, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.900000, 0.900000, 0.900000)
}

MeshInfo("all_weap_inf_A280")
{
Position(-0.242922, 0.360546, 0.003365, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.900000, 0.900000, 0.900000)
}

MeshInfo("delta20")
{
Position(-0.242922, 0.360546, 0.003365, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.900000, 0.900000, 0.900000)
}


MeshInfo("acp_array_gun")
{
Position(-0.242922, 0.360546, 0.003365, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.900000, 0.900000, 0.900000)
}

MeshInfo("all_weap_inf_misslelauncher")
{
Position(-0.204363, 0.367216, 0.000847, "Viewport")
Rotation(0.804269, 90.747269, 359.999695)
Scale(0.560000, 0.560000, 0.560000)
}

MeshInfo("all_weap_inf_repairkit")
{
Position(-0.240446, 0.358461, 0.001095, "Viewport")
Rotation(355.836060, 135.827820, 69.479843)
}
}
}
}

// Second Weapons Section

TransformNameMesh("player1weapon2")
// add names of second weapons here
{
NameMesh("weap_inf_detonator_arranged", "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("weap_inf_detonator_arranged")
{
Position(-0.274201, 0.284023, 15.000000, "Viewport")
Rotation(0.000000, 0.000000, 359.999695)
Scale(1.750000, 1.750000, 1.750000)
}
}
}
}
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Floating Icons still present after Icon fix

Post by JimmyAngler »

Ah , I had the same problem. Here's the fix.

Only use one extraweapons.HUD file for all of you sides.
Vereh simple.
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Re: Floating Icons still present after Icon fix

Post by TWINKEYRUNAWAY »

:o it does not matter where it is placed? I mean can I have it in just the imperial side folder and it will work for all the others?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Floating Icons still present after Icon fix

Post by AQT »

Yep. Just be sure to load your Imperial side regardless if you're using units from that side or not.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Floating Icons still present after Icon fix

Post by Maveritchell »

JimmyAngler wrote:Ah , I had the same problem. Here's the fix.

Only use one extraweapons.HUD file for all of you sides.
Vereh simple.
The issue is not multiple .hud files, it's multiple .hud files with the same name. You can have multiple extra .hud files, you just can't literally have multiple "extraweapons.hud" files.
Post Reply