morerokk / IreNFist

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

Crash after getting incapacitated by a Cloaker #61

Closed ghost closed 3 years ago

ghost commented 3 years ago

Wed Oct 07 23:24:20 2020

Application has crashed: C++ exception [string "lib/units/beings/player/states/playerarrested..."]:210: attempt to index a nil value

SCRIPT STACK

_check_action_interact() lib/units/beings/player/states/playerincapacitated.lua:174 _update_check_actions() lib/units/beings/player/states/playerincapacitated.lua:147 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/IRE AND FIST REBORN/lua/BurstFire.lua:350 update() lib/units/beings/player/states/playerincapacitated.lua:94 original() lib/units/beings/player/playermovement.lua:271 @mods/base/req/core/Hooks.lua:265

ghost commented 3 years ago

This occurred on Death Wish in Golden Grin Casino

morerokk commented 3 years ago

So you got cloaked while interacting with an object? That probably caused the crash. Interesting, I'll try and see if I can reproduce this locally.

ghost commented 3 years ago

I think I was trying to dominate and convert a cop, so it could be the reason why it crashed. But I vaguely remember. I also did check if The Fixes mod caused this issue, but I had no luck with that.

morerokk commented 3 years ago

Don't worry about testing this further (this is practically impossible for a regular user to test anyway), I've got a fix ready for tonight. This indeed happens if you get cloaked while interacting. Easy fix, I just need to let the melee attack go through if it's from a cloaker.

morerokk commented 3 years ago

I can't really reproduce this and I don't have confidence that the fix works, looking into it further. This might be a vanilla bug.

morerokk commented 3 years ago

I have been unable to reproduce this, and the log points to vanilla game code. If this happens again notify me and I'll provide a "debug mod" that will give me a clearer crash log.