altoclef icon indicating copy to clipboard operation
altoclef copied to clipboard

Bot puts ingredients into crafting table and right back out

Open ghost opened this issue 2 years ago • 9 comments

Steps to Reproduce (as best as you can)

Happens during normal play. Maybe something to do with alt tabbing? not sure.

Expected Behavior

Not get stuck in crafting table

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

Places items to craft something in my case a stone pickaxe then puts all the required items back in its inventory until I pick up the pickaxe from the crafting table slot to unstuck it.

Crashlogs and Screenshots (if applicable)

N/A

Other mods (if applicable)

N/A

Discord username (if you want updates)

Mafioso Landslide#3193

Developer Notes (leave this blank)

Difficulty: __ Estimated Time Required: __ Once development starts.

ghost avatar May 21 '22 21:05 ghost

I have seen this a few times and I am not sure what causes it yet.

Are you playing locally? Or on a server?

JamesGreen31 avatar May 21 '22 23:05 JamesGreen31

server

ghost avatar May 22 '22 18:05 ghost

will do testing to see if it can happen on a listen server

ghost avatar May 22 '22 18:05 ghost

ok now that im doing testing I can say it happens only on servers and its not only for crafting it can be for equipping armor aswell.

ghost avatar May 22 '22 18:05 ghost

a solution may be to just up the crafting delay in the settings (NOT CONFIRMED)

ghost avatar May 22 '22 19:05 ghost

Yeah it doesnt fix it lol

ghost avatar May 24 '22 00:05 ghost

Interesting. We will need a way of checking if the items are equipped server side.

The reason that this happens on servers is because the server holds the database of truth for your player. Altoclef can put the items on, but if the server doesn't register or doesn't allow it, then they will automatically dequip as soon as the player updates. Altoclef doesn't understand this behavior, so it attempts to put them on again and thus the loop.

At the moment, it is actually impossible to tell what the server will update the player with, so increasing the delay is the best bet. However, it could be that the server is refusing it because of altoclef in general.

Have you been able to replicate this in a local instance at all?

JamesGreen31 avatar May 25 '22 16:05 JamesGreen31

I have not been able to make this happen locally at all. But an idea to fix would be to increase all crafting delays by .1 every time it notices that its crafting action failed. Are there any temporary fixes you can suggest for me?

ghost avatar May 25 '22 17:05 ghost

Is this something you are considering working on because I want to run a server with butlers that people can use and this is a major problem that happens often enough to be an issue.

ghost avatar May 27 '22 13:05 ghost