# With the rebuilt base WeaponLib mod live as of 3 March 2022, I suggest you redownload it and replace your WeaponLib install. As this unofficial fixes is no longer needed
This is an unofficial fixes
How to use:
Download the WeaponLib version from here, then apply this fix on top of it
Fixes the following bugs in WeaponLib:
- custom_scope_effect behaviour disabling player-selected color grading.
- custom_scope_effect ability applies to gun that doesnt use the effect.
(example: player brings primary sniper with NV scope and normal secondary pistol. ADS-ing with the pistol will apply the color grading of the sniper NV scope to the pistol ADS as well.) - custom_scope_effect color grading switching bug when player use mask with NV and using optic with NV (color grading effect).
- weapon part's reload stat limit.
Pre-U200 it have a limit of 20 value, which base WeaponLib used. Post-U200 removed that limit, but WeaponLib still uses the old limit, causing crash when a weapon uses parts that have reload stat exceed 20 value. see 02-Dec-2020 changelog - cosmeticsweaponbase additional missing function (used on a particular mod like this) and conflict with Drop my Mag mod
- cosmeticsweaponbase additional function making weapon skin changes not applying on subsequent changes
- crash when having guns with exclusive sets equipped. (overwritten function was changed in 217.1)
- Gecko M2 Pistol had no shotgun pushback property
- Motion dot not disappearing while in ADS
This will be updated if there are more community volunteered fixes or when the issue is fixed on WeaponLib itself.
Check the WeaponLib Preparation wiki page, to fix early mistake that might caused issues when 'moving' to WeaponLib.
Thanks to:
test1;
-for fixing custom_scope_effect system disabling player-selected color grading system.
-for fixing custom_scope_effect color grading changes "lingering" to other unaffected weapon.
-for rixing custom_scope_effect bugging when player also uses mask with NV effect.
-for maintaining custom_scope_effect code that seems to break every so now and then...
Krimzin;
-for fixing cosmeticsweaponbase conflict with Drop my Mag mod and weapon skin glitches.
-for fixing WeaponLib reload stat limit that got obsolete after U200.
The_Punisher;
-hotfixing an overriden function in WeaponLib that Overkill changed, resulting in crashing the new weapon's Exclusive Set feature
-fixing another overriden function, resulting in the Gecko M2 not having the property of the shotgun pushback
-fixing another overriden function, resulting in the motion dot not disappearing while in ADS
Outstanding Issues:
Spoiler!
This is not an exhaustive list!
- Broken underbarrel animation; this is a complex issue that I'm afraid there's just no immediate straightforward fix.
Do note, that the game still does whatever action the animation is doing (like reloading, the game will 'reload' the ammo count, just that the animation wont play). This will hopefully be fixed on a coming rebuilt WeaponLib-Fresh. - I've tried to playtest all test1's fixes to the custom_scope_effect problem. I think the most glaring issue is fixed.
But I'm not sure to other minor issues, like how last down greyed screen effect interacting with custom_scope effect.
Do report here if you're sure this is bugged when using an optic with custom_scope_effect. - Underbarrel missing firing sound.
this seems to be a conflict with AFSF2. Offyerrocker is looking into it when he have time.
Incompatibility
- More Weapon Stats by TdlQ incompat seems to have been fixed by official WeaponLib update.
The patch included here before will be taken down, it will be archived offline, so if anyone somehow still want to use it, contact me.