Kamikaze94 / WolfHUD

Payday 2 HUD
483 stars 236 forks source link

(PAYDAY 2 VR) Heist crashes on load: attempt to perform arithmetic on local 'amount' (a table value) #960

Open WildChargerTV opened 1 year ago

WildChargerTV commented 1 year ago

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

  1. Start PAYDAY 2 VR
  2. Choose any heist in Crime.net Offline
  3. 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

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))