mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
[GH-ISSUE #184] Spam clicking a tree fast enough will D/C everyone. #7732
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JetF0x on GitHub (Nov 15, 2019).
Original GitHub issue: https://github.com/2006-Scape/2006Scape/issues/184
@mrextremez commented on GitHub (Nov 15, 2019):
Add a simple timer when clicking the tree to prevent this
@Gptaqbc commented on GitHub (Nov 15, 2019):
Players can still abuse it.
@Gptaqbc commented on GitHub (Nov 15, 2019):
Most likely an out of bound shitty error. @dginovker can you provide any error message about this?
@dginovker commented on GitHub (Nov 15, 2019):
Leveling up an acc for oak trees right now. On normal trees, you get this message though, just no logs or EXP:
@Gptaqbc commented on GitHub (Nov 15, 2019):
mmmm I've had this message on my localhost too when cutting logs.
@Gptaqbc commented on GitHub (Nov 15, 2019):
Is this happening when cutting a tree that gets cut by another account before you can finish cutting it on the first account?
@dginovker commented on GitHub (Nov 15, 2019):
Nope I'm only one in area.
@Gptaqbc commented on GitHub (Nov 15, 2019):
Is it clicking the tree more than once then?
@dginovker commented on GitHub (Nov 15, 2019):
Yup, spam clicking it. You should be able to reproduce locally
@Gptaqbc commented on GitHub (Nov 15, 2019):
It seems like it's sending actions to do when it doesnt have to. Maybe it's sending a packet to cut the tree but it just got cutted.
@Gptaqbc commented on GitHub (Nov 17, 2019):
When clicking a tree, before doing an action, check if the action is already what the player is doing. Don't send packet or something if the action is already been done. This would resolve the packet spam issue I think.
@Gptaqbc commented on GitHub (Nov 17, 2019):
Launching this:
only when it's not already what the player is doing.
@dginovker commented on GitHub (Nov 17, 2019):
I actually added that code in my last PR, @Gptaqbc . It fixes the spam clicking oaks gives infinite logs bug, it may have actually also solved this. The reason we hash "WoodcuttingEvent", is so when it goes into the EventHandler it removes any previous instance of this.
If this is what your idea of fixing it was, it may already work and this issue is ready to close. Don't get confused thinking that code was already there and this issue was still reported with it O_O
@Gptaqbc commented on GitHub (Nov 17, 2019):
Yeah I know but it didnt solve this I just tried. Server crashes at 3000ish clicks. I saw when this code was pushed :P
@Gptaqbc commented on GitHub (Dec 7, 2019):
The 300ms restriction that was added earlier last week shoulkd have fixed this issue. I tried to replicate and I was unable to.