Page MenuHomeFeedback Tracker

UIPicture set incorrectly on launch_RPG32_F and arifle_MX_SW_F etc. weapons
Closed, ResolvedPublic

Description

STHud uses the following checks to determine if a unit is currently carrying an AT or a AR/MG type weapon:

    (getText(configFile >> "CfgWeapons" >> primaryWeapon(_unit) >> "UIPicture") == "\a3\weapons_f\data\ui\icon_mg_ca.paa")

    (getText(configFile >> "CfgWeapons" >> secondaryWeapon(_unit) >> "UIPicture") == "\a3\weapons_f\data\ui\icon_at_ca.paa")

It checks the weapons in use rather than the starting type because gear gets handed around during missions etc.
The decision to use UIPicture was based on what was the most reliable way found in A2, so if there's a better way in A3 I can switch to that (although the UI Pictures should probably be fixed anyway).

For example, the Blufor automatic rifleman unit's weapon is "arifle_MX_SW_Hamr_point_gripod_F", which is currently configured to show as "\A3\weapons_f\data\UI\icon_regular_CA.paa".

Similarly, the Opfor AT unit's launcher is "launch_RPG32_F" which has the UIPicture value of "\A3\weapons_f\data\UI\icon_regular_CA.paa" (overriding the UIPicture set in Launcher_Base_F value).

Details

Legacy ID
4273520719
Severity
Minor
Resolution
Fixed
Reproducibility
Always
Category
Config
Steps To Reproduce

The following expression should return [true,true,true] but doesn't currently:

[(getText(configFile >> "CfgWeapons" >> "arifle_MX_SW_F" >> "UIPicture") == "\a3\weapons_f\data\ui\icon_mg_ca.paa"),
(getText(configFile >> "CfgWeapons" >> "arifle_MX_SW_Hamr_point_gripod_F" >> "UIPicture") == "\a3\weapons_f\data\ui\icon_mg_ca.paa"),
(getText(configFile >> "CfgWeapons" >> "launch_RPG32_F" >> "UIPicture") == "\a3\weapons_f\data\ui\icon_at_ca.paa")]

Additional Information

productVersion: ["Arma 3 Alpha","Arma3Alpha",5,102571]

Event Timeline

zx64 edited Steps To Reproduce. (Show Details)Mar 9 2013, 3:13 PM
zx64 edited Additional Information. (Show Details)
zx64 set Category to Config.
zx64 set Reproducibility to Always.
zx64 set Severity to Minor.
zx64 set Resolution to Fixed.
zx64 set Legacy ID to 4273520719.May 7 2016, 11:58 AM

I have fixed the issue, thanks a lot for a viable feedback. It should be available in next development build soon and in next stable build.

Should be stable anytime soon, thanks a lot for letting me know

zx64 added a subscriber: zx64.May 7 2016, 11:58 AM
zx64 added a comment.Mar 25 2013, 9:58 PM

Confirmed resolved in productVersion ["Arma 3 Alpha","Arma3Alpha",52,103279,"Stable"].

Thanks :-)