Updating playerhudcomponents Scripts
This article is also available on Nexus
I know there are a lot of player HUD mods which do a lot of various things that work fine on v1.15.216+ BUT if 3 scripts are not updated in them then the new custom weapon icons will not work at all.
Direct link to the download in optional files
So I figured I would provide the 3 scripts as an optional download file and the below information about them.
Scripts
The 3 scripts that need to be updated are:
- Scripts\BottomRightGroup.as
- Scripts\Shared\MapMarkerUtils.as
- Scripts\Shared\Components\ContentLoaders\SymbolLoaderClip.as
The most important changes are in BottomRightGroup.as and SymbolLoaderClip.as
Mods that don't customize the above scripts
If your mod doesn't touch any of the scripts in the playerhudcomponents files then you should just download the optional zip file "PXC_CWT_PlayerHudComponents_Scripts.zip" and unpack it somewhere on your computer, then click "Import Scripts" at the top:

If you get a warning just click OK.
The window that shows up, you want to browse to where you unpacked the zip file, you should see the "scripts" directory (do not go into the scripts directory or select it) just click Open:

It should confirm that 3 scripts were imported and you should be good to go.
Make sure you do this for all 4 versions of playerhudcomponents (.gfx/.swf and _lrg.gfx/.swf)
BottomRightGroup.as Changes
Here I will show the exact changes for the BottomRightGroup.as script as it is modified a lot by HUD mods and I realize it would be better for those mod authors who have customized this script to just change some script lines instead of fully replacing it. The other scripts are not touched by any HUD mods that I know of, so if you are an author who has modified those you will need to download the zip file and do your own diff compare.
Added variable (Line 30)
Symbol Loading Line Changed to an IF statement (Line 203 in the old script)
if(_loc2_.sIconLinkageName.substr(0,5) == CreationClubSupplimentalFilePrefix)
{
this.EquippedWeaponIconHolder_mc.EquippedWeaponIcon_mc.LoadSymbol(_loc2_.sIconLinkageName,_loc2_.sIconLinkageName);
}
else
{
this.EquippedWeaponIconHolder_mc.EquippedWeaponIcon_mc.LoadSymbol(_loc2_.sIconLinkageName,"WeaponIcons");
}
Once those lines are added and you replaced the other two scripts then your mod should be fully compatible with the new custom weapon icon loading.
Make sure you do this for all 4 versions of playerhudcomponents (.gfx/.swf and _lrg.gfx/.swf)