segabl / pd2-warframe-hud

A HUD mod inspired by Warframe
GNU General Public License v3.0
6 stars 7 forks source link

Crash when equipping mask in Payday 2 VR #26

Closed lnx00 closed 2 years ago

lnx00 commented 2 years ago

I don't know if you're interested in making the HUD compatible with the VR mode, but I've found a crash that occurs when putting on the mask during the stealth tutorial:

Application has crashed: C++ exception
mods/pd2-warframe-hud-master/lua/hudinteraction.lua:6: attempt to index local 'data' (a nil value)

SCRIPT STACK

remove_progress_timer() lib/managers/hudmanagervr.lua:803
_interupt_action_start_standard() lib/units/beings/player/states/playermaskoff.lua:328
_check_use_item() lib/units/beings/player/states/playermaskoff.lua:262
_update_check_actions() lib/units/beings/player/states/playermaskoff.lua:136
fs_original_playerstandard_update() lib/units/beings/player/states/playerstandard.lua:441
saw_original_playerstandard_update() @mods/Full Speed Swarm/lua/playerstandard.lua:6
__update_standard() @mods/Saw Helper/lua/playerstandard.lua:39
update() lib/units/beings/player/states/vr/playerstandardvr.lua:710
update() lib/units/beings/player/states/playermaskoff.lua:82
@mods/BeardLib/Hooks/Fixes.lua:484

-------------------------------

Callstack:

      payday2_win32_release_vr  (???)     ???                                                 
      payday2_win32_release_vr  (???)     ???                                                 
      payday2_win32_release_vr  (???)     ???                                                 
      payday2_win32_release_vr  (???)     zip_get_name                                        
                         ntdll  (???)     RtlAllocateHeap 
segabl commented 2 years ago

Thank you for the report, currently VR is not supported due to difficulty in testing and not enough of the HUD translating to VR very well. This specific crash should be avoidable by disabling world space interactions (VR does this anyways).