morerokk / IreNFist

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

Random crash on Panic Room on Death Sentence #69

Closed ghost closed 3 years ago

ghost commented 3 years ago

Tue Oct 13 21:27:00 2020

Application has crashed: C++ exception mods/IRE AND FIST REBORN/utils/coputils.lua:127: attempt to compare nil with number

SCRIPT STACK

func() @mods/IRE AND FIST REBORN/lua/playerstandard.lua:3400 _start_action_interact() @mods/base/req/core/Hooks.lua:268 _check_action_interact() lib/units/beings/player/states/playerstandard.lua:2272 _update_check_actions() lib/units/beings/player/states/playerstandard.lua:977 original() lib/units/beings/player/states/playerstandard.lua:435 update_original() @mods/base/req/core/Hooks.lua:188 original() @mods/VanillaHUD Plus/lua/VanillaHUD.lua:850 update_original() @mods/base/req/core/Hooks.lua:265 update() @mods/IRE AND FIST REBORN/lua/BurstFire.lua:350 original() lib/units/beings/player/playermovement.lua:271 @mods/base/req/core/Hooks.lua:265

It may be related to the cop cuffing attempt since I was trying to take a bunch of planks.

morerokk commented 3 years ago

Oh whoops, I just realized I made a subtle mistake in the code. My bad!

The crash is indeed related to cop cuffing, this crash can happen if you start interacting with something outside of assaults, and both HRT's and non-HRT's are nearby.

For now to stop the crashing, please disable Behavior Tweaks in the InF options. Once I push the next update, this should be fixed and safe to re-enable.

morerokk commented 3 years ago

Fixed, the feature should be safe to enable again.