:::# This is an unofficial fixes:::
-----
### How to use:
#### Download the WeaponLib version from [here](https://modworkshop.net/mod/24177), then apply this fix on top of it
-----
Fixes the following bug in WeaponLib:
* custom_scope_effect color grading changer disabling vanilla color grading system, like greyed-out screen on last down
* custom_scope_effect color grading changer 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.)
* 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](https://modworkshop.net/mod/29987#changelog)
* cosmeticsweaponbase additional missing function (used on a particular mod like [this](https://modworkshop.net/mod/25732)) and conflict with Drop my Mag mod
* cosmeticsweaponbase additional function making weapon skin changes not applying on subsequent changes
Changes in WeaponLib when applying this fixes:
* different_akimbos module hook being disabled. It causes akimbo weapon skin problem, and I havent found someone willing to look over the whole module to fix and reactivate it.
Patches, separate download:
* TdLQ makes a modified WeaponLib patch for More Weapon Stat compatibility, but it isnt a "proper fix".
Since More Weapon Stat itself 'replaces' a core code that isnt necessary to do so for what MWS need.
This will be updated if there are more community volunteered fixes or when the issue is fixed on WeaponLib itself.
Check the [WeaponLib Preparation](https://wiki.modworkshop.net/books/payday-2/page/weaponlib-mod-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 vanilla color grading system.
-for fixing custom_scope_effect color grading changes "lingering" to other unaffected weapon.
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.
TdLQ;
-making compatibility patch for running with More Weapon Stat mod.
-----
-----
### Outstanding Issues:
||
**This is not an exhaustive list!**
* Mask with Night Vision and WeaponLib scope ADS effect.
this seems to be a complicated issue.
My advice currently is avoid using NV effect in conjunction with weapon that uses WeaponLib scope ADS effect.
* Underbarrel missing firing sound.
this seems to be AFSF2 mod issue. Wait until Offyerrocker fixes it.
* Doing reload and dropping magazine in VR crashes the game.
most likely cosmeticsweaponbase and drop my mag mod issue on VR only, need a crashlog to look into the issue. As maintainer dont have VR to test this out.
**Incompatibility**
* More Weapon Stats by TdlQ cant run with WeaponLib at the same time ingame.
the patch remedies this, but it isnt a proper fix so to say. still advised not to run both of them at the same time.
||
WeaponLib Fixes_03-Jan-2021.zip
No description.
01-03-2021, 01:49 PM By Alcat101 Mod
Addon
WeaponLib Fixes_14-Dec-2020_TdLQ patch.zip
Only contains patches for More Weapon Stat mod compatibility
12-14-2020, 06:39 AM By Alcat101 Mod
03-Jan-2021
* fixed VR user crashing when trying to reload a gun.
> *changes in module/general_fixes/cosmeticsweaponbase.lua | mod's variable name changed to match vanilla variable name*
-----
||
#### old changelog
29-Dec-2020
* actually fixed the weapon skin changes bug
> *forgot to include the fixed file on previous upload, my bad!*
-----
14-Dec-2020
* fixes weapon skin not applying on subsequent changes
> *changes in module/general_fixes/cosmeticsweaponbase.lua | added local variable to store weapon skin related parameter*
* included compatibility patch for More Weapon Stats on separate download
> *'temporary' patches in modules/weapontweakdata_override/newraycastweaponbase.lua | local variable for WeaponLib changes(..?)*
-----
04-Dec-2020
* fixes issue with akimbo weapon skinning problem
> *changes in supermod.xml | commented out different akimbo module hook*
-----
02-Dec-2020
* fixed WeaponLib crashing when a gun have parts with total reload stat exceeding 20.
common crashlog is: `[string "lib/utils/inventorydescription.lua"]:597: attempt to perform arithmetic on a nil value`, usually when player hover over a gun in Inventory menu.
> *changes in module/limit_riser/weapontweakdata.lua | increases reload stat value limit*
-----
27-Nov-2020
* fixed custom_scope_effect applying its ADS color grading changer to other gun, if player brings a gun that uses the effect.
> *changes in module/custom_scope_effects/playerstandard.lua*
> *changes in module/general_fixes/coreenvironmentcontrollermanager.lua*
> *changes in module/general_fixes/playerstandard.lua*
-----
24-Nov-2020
* fixed oversight on cosmeticsweaponbase that caused skinned gun reloading crash with Drop my Mag mod.
> *changes in module/general_fixes/cosmeticsweaponbase.lua | more variable for skinned weapon mag data (I think..)*
||
Comments