WolfHUD
WolfHUD copied to clipboard
(PAYDAY 2 VR) Heist crashes on load: attempt to perform arithmetic on local 'amount' (a table value)
Expected Behavior
Heists should load as expected.
Current Behavior
Game fails to load heists in VR. Tested: The Tutorial Heist (Loud), Bank Heist: Cash, Mallcrasher.
Failure Information (for bugs)
A Lua script failure causes a fatal error. See log exerpt for details.
Steps to Reproduce
- Start PAYDAY 2 VR
- Choose any heist in Crime.net Offline
- Allow the blackscreen to play to completion or skip it, the result is the same
Confirmed this crash does not occur outside of VR. In regular gameplay, heist loads as intended.
Context
- Operating System: Windows 10 Home 22H2 19045.2546
- BLT version: 1.3.7 according to mod.txt, WSOCK is v3.3.6
- Other mods installed: BeardLib, Better Assault Indicator, BlackOpsII, Borderless Windowed Updated (has no impact on VR), introcinematics121h1 (has no impact on VR), InvertedFlashbangGlare, No Spider [Lab Rats]
BLT log
Crash occurs after the following mods are initialized: base, BeardLib, No Spider [Lab Rats], InvertedFlashbangGlare, Borderless Windowed Updated (has no impact on VR), introcinematics121h1, Better Assault Indicator
Better Assault Indicator is able to clear its conflict with WolfHUD, and compatibility is properly applied.
BLT Log
Lua: [BAI] VR Mode detected. VR Mode compatibility applied. Lua: [BAI] HUDList in WolfHUD detected. Compatibility applied. Lua: [BAI] No Mod detected. Vanilla mod compatibility applied. Lua: [BAI] Custom assault text loaded Lua: [BAI] Successfully initialized Lua: [WolfHUD] WARNING: HUDTeammateCustom: Unoverridden function call: set_hand Log: (C:\projects\payday2-superblt\src\http\http.cpp:44) CURL CLOSED Log: (C:\projects\payday2-superblt\src\xaudio\XAudio.cpp:147) Closing OpenAL XAudio API
Crash log(s)
Crash.txt
Application has crashed: C++ exception mods/WolfHUD-master/lua/CustomHUD.lua:2173: attempt to perform arithmetic on local 'amount' (a table value)
SCRIPT STACK
call_listeners() @mods/WolfHUD-master/lua/CustomHUD.lua:473 set_stamina() @mods/WolfHUD-master/lua/CustomHUD.lua:507 set_stamina() lib/managers/hudmanagervr.lua:560 update_stamina() lib/units/beings/player/playermovement.lua:324 @mods/BeardLib/Hooks/Fixes.lua:487
Callstack:
payday2_win32_release_vr (???) ???
payday2_win32_release_vr (???) ???
payday2_win32_release_vr (???) ???
payday2_win32_release_vr (???) zip_get_name
ntdll (???) RtlAllocateHeap
Current thread: Main
System information: Application version : 1.1.1 CPU : 12th Gen Intel(R) Core(TM) i5-12600K (8 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2 DirectX : 12.0 GPU : NVIDIA GeForce RTX 2060 SUPER [Video:3072,Sys:0,Shared:1023,Vendor:0x10de] Language : english Memory : 16125MB 376KB OS : 6.2.9200 () 0x300-0x1 (64 bits) Physics : threaded Renderer : DX11 threaded Sound : Oculus (Headphones (Oculus Virtual Audio Device))