simon-wh / PAYDAY-2-BeardLib

PD2 Library for easier script file manipulation and mod creation
http://modworkshop.net
MIT License
86 stars 41 forks source link

Vanilla crime spree data causes crashing in Beardlib? #738

Open PoofyPieX opened 1 month ago

PoofyPieX commented 1 month ago

Describe the crash After playing vanilla Payday 2, some players crash when trying to join Crime Spree lobby.

These same player's lobbies can be joined by the non-crashing players, however.

Attempted solutions:

We found only one solution online that finally worked, but the issue still seemed worth reporting.

It was only able to be fixed by using the "Crimespree Reset" mod by Sora: https://modworkshop.net/mod/23618

So, maybe something about vanilla crime sprees gets "corrupted" in some kind of way that Beardlib can't handle... to the point that mods have to be used to completely reset all crime spree data.

To Reproduce Steps to reproduce the behavior:

  1. With at least two real players, play vanilla Payday 2 until Crime Spree is unlocked.
  2. Install SuperBLT and Beardlib.
  3. Start playing Crime Spree for the first time with these same players.
  4. Some players may (or may not) crash with the following crashlog when trying to join the crime spree lobby (even with no weapon skins, no other mods, and a crime spree score of 0). The players that do crash will crash every time they try to join. However, other players can still join their lobbies instead, without crashing.

Crashlog Application has crashed: C++ exception [string "lib/managers/menu/crimespreemissionsmenucompo..."]:791: attempt to compare nil with number

SCRIPT STACK

update_info_text() lib/managers/menu/crimespreemissionsmenucomponent.lua:679 init() lib/managers/menu/crimespreemissionsmenucomponent.lua:464 new() core/lib/utils/coreclass.lua:35 _setup() lib/managers/menu/crimespreemissionsmenucomponent.lua:93 init() lib/managers/menu/crimespreemissionsmenucomponent.lua:31 new() core/lib/utils/coreclass.lua:35 create() lib/managers/menu/menucomponentmanager.lua:5123 original() lib/managers/menu/menucomponentmanager.lua:520 set_active_components() @mods/base/req/core/Hooks.lua:260 core/lib/managers/menu/coremenulogic.lua:89 _execute_action_queue() core/lib/managers/menu/coremenulogic.lua:54 update() core/lib/managers/menu/coremenulogic.lua:64 update() core/lib/managers/menu/coremenumanager.lua:155 update() lib/managers/menumanagerpd2.lua:20 original() lib/setups/setup.lua:909 update() @mods/base/req/core/Hooks.lua:260 original() lib/setups/menusetup.lua:363 update() @mods/base/req/core/Hooks.lua:260 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


System information: Application version : 1.143.243 CPU : Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz (4 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2 DirectX : 12.0 GPU : NVIDIA GeForce RTX 3060 / nvldumd.dll[32.0.15.5612] Language : english Memory : 16276MB 152KB OS : 6.2.9200 () 0x300-0x1 (64 bits) Physics : threaded Renderer : DX9 threaded Sound : CREATIVE (Speakers (Sound Blaster Z))