Override_weapon_multiply ROF changes on vanilla attachments crash game when used by others
Did some testing with Alcat tonight, we have come to the conclusion that users with mods that alter vanilla attachments with WeaponLib to change weapon fire rate crash the user when someone other than the mod user pulls out a weapon with such attachments.
So basically, using W&ERT as an example, the Light Barrel for the MG42/Buzzsaw 42, which was modified by W&ERT to change the weapon's fire rate, causes crashes when used by players other than the one using W&ERT.
Possibly worth noting is that Payday 2 only crashes when the weapon is present in the world. So, the MG42/Buzzsaw 42 only crashes the player's game once someone else swaps to it; it doesn't happen by just being in another player's loadout.
Possibly also worth noting that bots set up with the weapon also count as "players" for the purpose of this bug.
Application has crashed: C++ exception
...odules/weapontweakdata_override/weaponfactorymanager.lua:16: attempt to perform arithmetic on local 'var1' (a nil value)
SCRIPT STACK
merge_operator() @mods/WeaponLib/modules/weapontweakdata_override/weaponfactorymanager.lua:29
get_modded_weapon_tweak_data() @mods/WeaponLib/modules/weapontweakdata_override/weaponfactorymanager.lua:49
weapon_tweak_data() @mods/WeaponLib/modules/weapontweakdata_override/newraycastweaponbase.lua:21
original() @mods/WeaponLib/modules/general_fixes/newraycastweaponbase.lua:87
_update_stats_values() @mods/base/req/core/Hooks.lua:260
original() @mods/WeaponLib/modules/general_fixes/newraycastweaponbase.lua:11
clbk_assembly_complete_original() @mods/base/req/core/Hooks.lua:260
done_cb() @mods/Bot Weapons/lua/newnpcraycastweaponbase.lua:32
clbk_part_unit_loaded() lib/managers/weaponfactorymanager.lua:852
assemble_from_blueprint() lib/managers/weaponfactorymanager.lua:631
assemble_from_blueprint() @mods/WeaponLib/modules/different_akimbos/newraycastweaponbase.lua:20
add_unit_by_factory_blueprint() lib/units/beings/player/huskplayerinventory.lua:152
add_unit_by_factory_name() lib/units/beings/player/huskplayerinventory.lua:136
_perform_switch_equipped_weapon() lib/units/beings/player/huskplayerinventory.lua:29
synch_equipped_weapon() lib/units/beings/player/huskplayerinventory.lua:20
set_equipped_weapon() lib/network/handlers/unitnetworkhandler.lua:74
@mods/BeardLib/Hooks/NetworkHooks.lua:79
I really hope this does get solved.