
E Bug Fix
Tentatively attempts to fix a bug that prevents you from interacting with anythingDetails
What is E bug?
E bug is what I call a bug where, suddenly, your E key essentially stops working. You can't interact with boxes, doors, place mines, revive people, pick up your sentry, etc. anymore.
This mod tentatively tries to offer a solution based off of a specific set of reproduction steps. I do not promise it will fix all cases of it, as I've never had the bug myself, and I don't know for sure if the reproduction steps I found cause the exact same issues as the times that I've seen it happen.
What this specifically for sure fixes
Specifically, it for sure solves a case where, if you're reviving a player and they disconnect while being revived, you can no longer interact with anything.
To be more specific (if you aren't a plugin nerd, feel free to skip), the PlayerInteraction
class stores the last best IInteractable
to use for your player, and if that gets destroyed, then there's a problem where the actual object itself is destroyed, but the interface stored in the class doesn't get set to null. So now it's nullref'ing while trying to unselect itself, and so can't actually get far enough to get unselected before erroring. This mod just sets the stored interface to null if it's not already and the underlying object is null.
You can still have the bug for up to 3 seconds
This plugin checks every 3 seconds for if you have E bug, and if you do, fixes it. So you feasibly could notice not being able to interact for 3 seconds before you suddenly can again.
If you get E bug while having this mod, please get your player log and contact me!
Please grab your Player.log
file located in %LocalAppData%Low\10 Chambers Collective\GTFO
and save it somewhere, then find me on discord in the modding server and let me know, and maybe I'll be able to figure it out. Maybe not, it's worth a shot though.