Kamikaze94 / WolfHUD

Payday 2 HUD
483 stars 236 forks source link

Crash clicking on CONTRACT_BROKER #952

Open KAIWYAS opened 1 year ago

KAIWYAS commented 1 year ago

Current Behavior

The game crashes as when i click in the Contract_Broker(Online and Offline) but when i remove the mod it works just fine.

Failure Information (for bugs)

Application has crashed: C++ exception [string "lib/managers/jobmanager.lua"]:502: attempt to compare nil with number

SCRIPT STACK

heat_to_experience_multiplier() lib/managers/jobmanager.lua:523 get_job_heat_text() @mods/WolfHUD-master/lua/ContractHeat.lua:43 init() @mods/WolfHUD-master/lua/ContractHeat.lua:12 new() core/lib/utils/coreclass.lua:35 _setup_jobs() lib/managers/menu/contractbrokergui.lua:1166 setup() lib/managers/menu/contractbrokergui.lua:135 init() lib/managers/menu/contractbrokergui.lua:76 new() core/lib/utils/coreclass.lua:35 create() lib/managers/menu/menucomponentmanager.lua:5351 set_active_components() lib/managers/menu/menucomponentmanager.lua:493 set_active_components() @mods/base/lua/MenuComponentManager.lua:18 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:888 update() @mods/base/req/core/Hooks.lua:288 update() lib/setups/menusetup.lua:358 update() @mods/base/lua/MenuSetup.lua:5 core/lib/setups/coresetup.lua:559


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        
                     ntdll  (???)     RtlAllocateHeap

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. turn the game on
  2. go to play online or play offline
  3. click on "CONTRACT_BROKER"

BLT log

Please include the contents of your BLT log around the time the bug appeared.
You can find the BLT log inside your games "/mods/logs/" folder.

BLT Log [2023_01_08_log.txt](https://github.com/Kamikaze94/WolfHUD/files/10369557/2023_01_08_log.txt)

Crash log(s)

If the bug is causing a crash, please provide the contents of your crashlog.
You can find your crashlog in "%localappdata%/Payday 2/crash.txt"

Crash.txt [crashlog.txt](https://github.com/Kamikaze94/WolfHUD/files/10369558/crashlog.txt)