altoclef icon indicating copy to clipboard operation
altoclef copied to clipboard

Bot gets stuck when it is holding an item and inventory is full

Open me-rgb opened this issue 2 years ago • 4 comments

Steps to Reproduce (as best as you can)

Use latest release, and it will get stuck. If you open your inventory, it is holding something while its inventory is full, which causes it to get stuck.

Expected Behavior

Throw out unneeded items or throw out item that it is holding

Actual Behavior (What lead to the bot getting permanently stuck)

Does not throw out items, causing the bot to be stuck.

Crashlogs and Screenshots (if applicable)

2022-06-08_23 03 31

Other mods (if applicable)

Discord username (if you want updates)

[]me24345#7751

Developer Notes (leave this blank)

Difficulty: Unkown Estimated Time Required: ?

We don't know exactly how to replicate this issue yet so a score cannot be evaluated.

me-rgb avatar Jun 09 '22 03:06 me-rgb

Sorry to get to this so late.

Do you know how to replicate this for sure everytime? I need to know the exact cause. run @gamer isn't really a cause since we don't know if that for sure will cause it.

Something liike "start with X in your inventory, and then do Y and then the bug will happen". Something I can replicate in just a few minutes.

If you can find out the reproducible steps, I can solve this for you.

JamesGreen31 avatar Jul 28 '22 17:07 JamesGreen31

To replicate this in a few minutes, fill your inventory up with everything you would acquire from running the @gamer command. Eventually it will get stuck holding items (that it should drop) and cannot move on to the next chained event.

johnnybpena1989 avatar Mar 18 '23 08:03 johnnybpena1989

https://github.com/gaucho-matrero/altoclef/issues/300

JamesGreen31 avatar Mar 22 '23 16:03 JamesGreen31

The issue was caused by player interaction task chain incorrectly allowing a cursor slot to be clicked. A check was added to prevent this behavior. A potential refactor would include re-working the way slots work, but this is great for now.

JamesGreen31 avatar Jan 23 '24 20:01 JamesGreen31