
Crashes the game after getting a kill with a masterkey mod underbarrel shotgun.
crash.txt says:
Application has crashed: C++ exception
mods/Killstreaks from Halo/hooks/menumanager.lua:1404: attempt to index a nil value
SCRIPT STACK
value() @mods/Killstreaks from Halo/hooks/menumanager.lua:1327
_notify() lib/utils/messagesystem.lua:60
update() lib/utils/messagesystem.lua:74
update() lib/managers/playermanager.lua:755
original() lib/setups/setup.lua:902
update() @mods/base/req/core/Hooks.lua:264
original() lib/setups/gamesetup.lua:804
update() @mods/base/req/core/Hooks.lua:264
update() lib/setups/networkgamesetup.lua:21
core/lib/setups/coresetup.lua:559
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
KERNEL32 (???) BaseThreadInitThunk
ntdll (???) RtlGetAppContainerNamedObjectPath
ntdll (???) RtlGetAppContainerNamedObjectPath
Current thread: Main

Application has crashed: C++ exception
mods/Killstreaks from Halo/hooks/menumanager.lua:1365: attempt to index local 'player' (a nil value)
SCRIPT STACK
_detect_npc_collisions() @mods/Killstreaks from Halo/hooks/vehicledrivingext.lua:42
update() lib/units/vehicles/basevehiclestate.lua:12
lib/units/vehicles/vehicledrivingext.lua:227
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) zip_get_name
ntdll (???) RtlAllocateHeap
Context: Crashed as a client after another client drove into a cop with a golf cart while I was in custody on Hostile Takeover.

Oh man gotta try this again but I uninstaled Pay Day a week ago djfdsj 90G of space my lord

Application has crashed: access violation
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
??? (???) ???
??? (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
Current thread: Main
Script stack:
value() @mods/Killstreaks
from
Halo/hooks/menumanager.lua:1330 _notify()
lib/utils/messagesystem.lua:60 update()
lib/utils/messagesystem.lua:74 original()
lib/managers/playermanager.lua:736 update()
@mods/base/req/core/Hooks.lua:288 original()
lib/setups/setup.lua:893 update()
@mods/base/req/core/Hooks.lua:288 original()
lib/setups/gamesetup.lua:800 update()
@mods/base/req/core/Hooks.lua:288 _update()
lib/setups/networkgamesetup.lua:21 update()
@mods\PocoHud3\poco\common.lua:314
core/lib/setups/coresetup.lua:559
System information:
Application version : 1.134.164
CPU : 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz (3 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 12.0
GPU : NVIDIA GeForce RTX 3060 Ti / nvldumd.dll[31.0.15.2756]
Language : english
Memory : 8029MB 488KB
OS : 6.2.9200 () 0x300-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : Microsoft (AUDIO INTERFACE (Scarlett Solo USB))
Hey wassup guys, this happened twice while i was shooting the new northstar idk what happened. Poco and Kill streaks were working well together before, im not sure why it crashes now?(if it helps i specifically, turned corpses and shields off) heres the log:

@Offyerrocker light swat variant 1 on deathsentence. and the first time i was just shooting into a crowd with graze which i should also mention.

---------------------------------------------------------------------
Mon Oct 03 00:24:03 2022
Application has crashed: access violation
-------------------------------
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
??? (???) ???
??? (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
??? (???) ???
-------------------------------
Current thread: Main
Script stack:
value() @mods/Killstreaks
from
Halo/hooks/menumanager.lua:1330 _notify()
lib/utils/messagesystem.lua:60 update()
lib/utils/messagesystem.lua:74 update()
lib/managers/playermanager.lua:617 original()
lib/setups/setup.lua:893 update()
@mods/base/req/core/Hooks.lua:288 original()
lib/setups/gamesetup.lua:789 update()
@mods/base/req/core/Hooks.lua:288 update()
lib/setups/networkgamesetup.lua:21
core/lib/setups/coresetup.lua:557
-------------------------------
System information:
Application version : 1.129.133
CPU : Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (3 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 12.0
GPU : NVIDIA GeForce RTX 2060 with Max-Q Design / nvldumd.dll[30.0.15.1278]
Language : english
Memory : 12057MB 912KB
OS : 6.2.9200 () 0x300-0x1 (64 bits)

Sadly, when I do a Graze with a fenomenal killstreak amount of enemies (20+), the game crashes hard. Sad...I love this mod :( I gotta remove it...I'll wait for another uptade.

@HandSomeGarbage Thanks for the report- this should be fixed soon. May I ask, do you have mods that limit the number of corpses, or something similar?

@Offyerrocker Yeah the Low Violence Mod Uptaded https://modworkshop.net/mod/28657 . Maybe is the combination of these 2 mods, that mod is buggy as hell.

Back again, new crash. Hosting on Hell's Island. First murky I shot, game didn't like it.
Application has crashed: access violation
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) zip_get_name
ntdll (???) RtlAllocateHeap
Current thread: Main
Script stack:
OnEnemyKilled() @mods/Killstreaks
from
Halo/hooks/menumanager.lua:1379 value()
@mods/Killstreaks
from Halo/hooks/menumanager.lua:1327
_notify() lib/utils/messagesystem.lua:60
update() lib/utils/messagesystem.lua:74
update() lib/managers/playermanager.lua:617
original() lib/setups/setup.lua:894
update() @mods/base/req/core/Hooks.lua:288
original() lib/setups/gamesetup.lua:789
update() @mods/base/req/core/Hooks.lua:288
update() lib/setups/networkgamesetup.lua:21
core/lib/setups/coresetup.lua:557

@Offyerrocker Pretty sure it was just a AMR-16. But i've had this crash randomly with other guns and maps. Not yet from an explosive.

@Offyerrocker same problem here. Hope you can fix this this mod is the only thing that manteins my Pay Day 2 alive.

Hi again...I was crashing (more than usual bc I have like 100+ mods) and I decided to see the crash logs...and, I found this. I'm pretty dumb with this crash stuff but I see your mod here so...is this...okay? Can you help me lol if this mod isn't causing the issue idk what else.
Sun Sep 11 23:52:03 2022
Application has crashed: access violation
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) zip_get_name
ntdll (???) RtlAllocateHeap
Current thread: Main
Script stack:
OnEnemyKilled() @mods/Killstreaks
from
Halo/hooks/menumanager.lua:1377 value()
@mods/Killstreaks
from Halo/hooks/menumanager.lua:1325
_notify() lib/utils/messagesystem.lua:60
update() lib/utils/messagesystem.lua:74
update() lib/managers/playermanager.lua:617
original() lib/setups/setup.lua:894
update() @mods/base/req/core/Hooks.lua:288
original() lib/setups/gamesetup.lua:789
update() @mods/base/req/core/Hooks.lua:288
update() lib/setups/networkgamesetup.lua:21
core/lib/setups/coresetup.lua:557
System information:
Application version : 1.128.129
CPU : Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (3 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 12.0
GPU : NVIDIA GeForce RTX 2060 with Max-Q Design / nvldumd.dll[30.0.15.1278]
Language : english
Memory : 12057MB 912KB
OS : 6.2.9200 () 0x300-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : Realtek Semiconductor Corp. (Headphone (Realtek(R) Audio))

Gonna say the same thing about the Host or Offline. Also can you try with the SydneyHUD if you can? :) <3 This mod is amazing.

As far as I can tell, it works if I host or if I'm offline. If I join someone, be it mid heist or lobby, it doesnt work anymore. And I do mean none of it works. Medals, Announcer, none of it. I am using VH+, if that makes any difference, but I can't begin to imagine why SFXs would be effected by a HUD mod.

Thanks for the report!
Unfortunately, WolfHUD (and by extension, VH+, since it's based on WolfHUD) has... like, a lot of feature bloat. That means that it overrides a lot of functions, and that means that it has a lot of mod compatibility issues, even though we think of it as a mod that only touches the HUD.
As always, I've written my mod to be as compatible as possible (as in, it does not break other mods), but it's much harder to stop other mods from breaking this one.
Writing compatibility is probably gonna be a whole thing :tm:, but at the very least, I'll take a look at the mid-join issue when I can.

@Offyerrocker Appreciate the response, as I basically hop around pubs the majority of the time. Love the mod itself, would hate to not see that hard work at all times.

@Haxune Happy to say that the host/offline-only bug should now be fixed; please update your mod version, and let me know if you keep having that problem.

Tried this but crashed. I am using VanillaHud+, but I figured I'd leave the crash log in case you wanted to try and fix it or try to solve compatibility issues. Yes, I did have that option enabled but I still crashed as soon as I pulled the trigger. I'm not entierly sure why I crashed and I don't exactly understand payday code but from what I can tell, it has something to do with my hud.
Spoiler!
Fri Sep 09 09:34:29 2022
Application has crashed: C++ exception
mods/Killstreaks from Halo/hooks/copdamage.lua:5: attempt to call method 'OnEnemyKilled' (a nil value)
SCRIPT STACK
die() @mods/base/req/core/Hooks.lua:282
original() lib/units/enemies/cop/copdamage.lua:557
damage_bullet() @mods/base/req/core/Hooks.lua:288
give_impact_damage() lib/units/weapons/raycastweaponbase.lua:2446
on_collision() lib/units/weapons/raycastweaponbase.lua:2348
_fire_raycast() @mods/WeaponLib/hooks/lib/units/weapons/newraycastweaponbase.lua:457
fire() lib/units/weapons/raycastweaponbase.lua:532
original() @mods/BeardLib/Hooks/Fixes.lua:420
fire() @mods/base/req/core/Hooks.lua:288
fire_original() @mods/WeaponLib/hooks/lib/units/weapons/newraycastweaponbase.lua:1350
fire() @mods/VanillaHUD Plus/lua/BurstFire.lua:64
original() lib/units/weapons/raycastweaponbase.lua:438
trigger_held() @mods/base/req/core/Hooks.lua:288
trigger_held() lib/units/weapons/newraycastweaponbase.lua:1888
_check_action_primary_attack() lib/units/beings/player/states/playerstandard.lua:4957
_update_check_actions() lib/units/beings/player/states/playerbipod.lua:227
update_original() lib/units/beings/player/states/playerstandard.lua:441
update_original() @mods/VanillaHUD Plus/lua/BurstFire.lua:276
update() @mods/VanillaHUD Plus/lua/VanillaHUD.lua:935
update() lib/units/beings/player/states/playerbipod.lua:157
original() lib/units/beings/player/playermovement.lua:279
@mods/base/req/core/Hooks.lua:288
Callstack:
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) zip_get_name
ntdll (???) RtlGetCurrentDirectory_U
ntdll (???) RtlDosSearchPath_Ustr
payday2_win32_release (???) ???
payday2_win32_release (???) ???
payday2_win32_release (???) ???
Now with that out of the way, this mod functions beautifly as intended. Its quite a dopamine hit when you hear Jeff Steizer's legendary voice when going on your killing spree and its almost like he encourages you to keep fueling the fire. If you don't have a HUD mod I would deffinetly recomend this mod.
Any way to customize the position of where the Killstreak HUD is placed? or a future feature perhaps?
It'll be some time before I have time to finish and polish it, but I'm hoping to use the click-and-drag HUD customization code I wrote for this mod to let people change some HUD positions.
In the meantime, you can edit
hooks/menumanager.lua
to tweak the position and other values. Check theHUD_VALUES
table on line 32. There's a few variables for individual HUD element type, as well as "start" and "end" x/y coordinates.@offyerrocker Wow! :D epic reply! this is such an awesome HUD! can't wait the final result and add it to my list!