This thread has been locked.
Crash when marking the turret with High Value Target (and probably also shooting at it)
Avatar

Application has crashed: C++ exception
[string "lib/units/equipment/sentry_gun/sentrygundamag..."]:188: attempt to perform arithmetic on global 'damage' (a nil value)

SCRIPT STACK

give_impact_damage() lib/units/weapons/raycastweaponbase.lua:2953
on_collision() lib/units/weapons/raycastweaponbase.lua:2830
_fire_raycast() @mods/WeaponLib/hooks/lib/units/weapons/newraycastweaponbase.raycast.lua:134
fire() @mods/WeaponLib/hooks/lib/units/weapons/raycastweaponbase.lua:132
fire() @mods/BeardLib/Hooks/Fixes.lua:367
fire() lib/units/weapons/newraycastweaponbase.lua:2079
original() lib/units/weapons/raycastweaponbase.lua:480
trigger_held() @mods/base/req/core/Hooks.lua:264
trigger_held() lib/units/weapons/newraycastweaponbase.lua:2064
original() @mods/WeaponLib/hooks/lib/units/beings/player/states/playerstandard.lua:478
_check_action_primary_attack() @mods/base/req/core/Hooks.lua:264
_update_check_actions() lib/units/beings/player/states/playercarry.lua:193
update() lib/units/beings/player/states/playerstandard.lua:446
update() lib/units/beings/player/states/playercarry.lua:86
original() lib/units/beings/player/playermovement.lua:279
@mods/base/req/core/Hooks.lua:264


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                  KERNEL32  (???)     BaseThreadInitThunk                                 
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   

SAME CRASH, BUT FROM A DIFFERENT USER WITHOUT A WEAPONLIB

Application has crashed: C++ exception

[string "lib/units/equipment/sentry_gun/sentrygundamag..."]:188: attempt to perform arithmetic on global 'damage' (a nil value)

SCRIPT STACK

give_impact_damage() lib/units/weapons/raycastweaponbase.lua:2953

on_collision() lib/units/weapons/raycastweaponbase.lua:2830

_fire_raycast() lib/units/weapons/newnpcraycastweaponbase.lua:571

fire() lib/units/weapons/raycastweaponbase.lua:574

fire() u/mods/PAYDAY-2-BeardLib-master/Hooks/Fixes.lua:367

fire_original() lib/units/weapons/newraycastweaponbase.lua:2079

fire() u/mods/VanillaHUD Plus/lua/BurstFire.lua:89

trigger_held() lib/units/weapons/newnpcraycastweaponbase.lua:212

kpr_original_copactionshoot_update() lib/units/enemies/cop/actions/upper_body/copactionshoot.lua:431

origfunc() u/mods/Keepers/lua/copactionshoot.lua:13

update() u/mods/The Fixes/copactionshoot.lua:10

_upd_actions() lib/units/enemies/cop/copmovement.lua:769

update() lib/units/enemies/cop/copmovement.lua:732

lib/units/player_team/teamaimovement.lua:450


Callstack:

payday2_win32_release (???) ???

payday2_win32_release (???) ???

payday2_win32_release (???) ???

payday2_win32_release (???) ???

payday2_win32_release (???) ???

KERNEL32 (???) BaseThreadInitThunk

ntdll (???) RtlGetAppContainerNamedObjectPath

ntdll (???) RtlGetAppContainerNamedObjectPath


Avatar

I've had the same crash as well, and can replicate it. Only mods I have loaded are Bot Weapons and Equipment, Useful Bots, and Responsive Responders.

Application has crashed: C++ exception
[string "lib/units/equipment/sentry_gun/sentrygundamag..."]:188: attempt to perform arithmetic on global 'damage' (a nil value)


SCRIPT STACK

give_impact_damage() lib/units/weapons/raycastweaponbase.lua:2953
on_collision() lib/units/weapons/raycastweaponbase.lua:2830
_fire_raycast() lib/units/weapons/raycastweaponbase.lua:958
fire() lib/units/weapons/raycastweaponbase.lua:574
fire() lib/units/weapons/newraycastweaponbase.lua:2079
trigger_held() lib/units/weapons/raycastweaponbase.lua:480
trigger_held() lib/units/weapons/newraycastweaponbase.lua:2064
_check_action_primary_attack() lib/units/beings/player/states/playerstandard.lua:5161
_update_check_actions() lib/units/beings/player/states/playerstandard.lua:1017
update() lib/units/beings/player/states/playerstandard.lua:446
original() lib/units/beings/player/playermovement.lua:279
@mods/base/req/core/Hooks.lua:264


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                  KERNEL32  (???)     BaseThreadInitThunk                                 
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath                   
                     ntdll  (???)     RtlGetAppContainerNamedObjectPath
Avatar

As mentioned by Dr_Newbie, this is an issue on OVK's end. Until its fixed, you should be able to fix the crashing with this mod:
https://modworkshop.net/mod/42820

32 843