morerokk / IreNFist

A continuation/fix of the IreNFist mod for PAYDAY 2
MIT License
4 stars 2 forks source link

Crash with Vanilla Hud Plus 2 (Electric Crashaloo) #105

Closed Bwamo closed 3 years ago

Bwamo commented 3 years ago

Looks like I've found a new way to break IreNFist and VHP again and this time, it's through disabling Burst Mode in the hud mod. Having Burst Mode off spits this out, but leaving it on works perfectly fine

Application has crashed: C++ exception
mods/IRE AND FIST REBORN/lua/playerstandard.lua:1077: attempt to call method 'in_burst_mode' (a nil value)

SCRIPT STACK

_update_check_actions() lib/units/beings/player/states/playerstandard.lua:948
original() lib/units/beings/player/states/playerstandard.lua:435
original() @mods/base/req/core/Hooks.lua:188
update_original() @mods/base/req/core/Hooks.lua:265
update() @mods/VanillaHUD Plus/lua/VanillaHUD.lua:958
original() lib/units/beings/player/playermovement.lua:271
@mods/base/req/core/Hooks.lua:265
morerokk commented 3 years ago

Confirmed, will fix for next release.

Bwamo commented 3 years ago

looks like having new classic enemies even without vanilla hud plus will trigger the same exact error

morerokk commented 3 years ago

Looks like New Classic Enemies probably makes them use certain weapons that trigger the issue too. I've made a fix and will push it later today.

morerokk commented 3 years ago

Should be fixed.