Bot crashing on alchemy tablet

Whenever I dismantle tablets into stones using phbot, the bot manages to do maybe 3-4 tablets before crashing entirely

phbot version : v27.8.5
i have tested it on 3 private vsro servers so far all of them same result

same result also on all tablet types

Is it actually crashing or is it freezing? I tested it on a private server with Str tabs and it works fine but I did notice the UI freezes when combining items after each stone. This should fix that particular issue.

It freezes infinitely, sending a pm for it it from another acc shows it disconnected.

I have attempted to fix an old plugin I had that dismantles tablets to stones, it works fine for the most part but it eventually crashes the bot entirely.

however this bug seems to be common between both methods
image

this amount at earth element is incorrect, it shows this also in bot inventory, which doesnt correspond to game inventory ( earth element max stack is 10k )

Eventually the bot will keep trying to dismantle tablets using wrong element slots ( bot thinks its 100k or something in that slot, while in reality its less than whats needed by a single tablet )
this leads to fuse failed in game until i teleport or restart to refresh bot inventory back to the correct stack values

this bug triggers more often if i attempt to use the clients " auto sort " feature, but it also happens on using both the tablet tab and the plugin i talked about ( which uses sort_inventory() periodically )

this works fine, no longer freezes, however the bug I sent a screen for is still there
image

the earth element count shown on the bot is equal to the total amount I have ,disregarding element’s max stack and current element supply slot.

(this happens with all elements not just earth)

It should actually be showing you all of your available elements so Earth is the only correct one in that case.

If the “crash” is fixed then I can just fix the element count which is pretty simple.

okay awesome then!
yes the freeze is fixed and the bot is working fine now thank you very much c:

1 Like

unfortunately this problem is still there @Ryan, but kind of different now, it freezes entirely until the char disconnects, forcing the combining to stop.

I managed to take this photo before char disconnects, the bot seems to cycle in and out of responsiveness every 10 secs ~ it seems to be trying infinitely to combine an element based on an incorrect element count

after the char disconnects and restarts, the bot seems to parse the correct value for element count,

then the problem repeats itself when i attempt to use the tablet tab

one work around that seemed to work for me is to simply remove all elements and leave only 1x stack such that it doesnt need to combine elements entirely.

See if you have an Error.txt file.

Error.txt (151.5 KB)
none of the error entry times seem to correspond this happening though

Let me know if this fixes the quantity.

still the same issue
(bot attempts to combine the same element multiple times, stops responding cycles in and out of responsiveness, inventory tab element count mismatching actual count in the client).

but the total element count in tablet tab is now working as intended (showing all element’s count)

1 Like

So the total count is now fixed but just an issue with combining them?

the total count here is working fine
image

the inventory tab of the bot, shows an incorrect number at one or more element slots as seen here


it attempts to combine it infinitely which leads to getting in/out of responsiveness eventually disconnecting the char.
A similar stack mismatch happens if i attempt to use the client’s auto sort function and check the bot’s inventory, it shows different values.

ok i take that back, this is also bugged


a teleport seems to fix it though

I’m not able to replicate this on my own server. I made 200 stones and didn’t have any problems. At what point does it lose track of the element count?

at element stack 10000 there doesnt seem to be a problem, at element max stack 25000 the problem seems to happen almost instantaneously, cant make upwards of 15 20 stones without it going into this cycle.

as for the total count failing as in this picture,


this seems to happen after I took elements from storage.

If you’d like I can stream it for you on discord perhaps?

I wonder if the max stack is wrong in the PK2 some how. That would cause it to lose track of where the elements are and how many are available.

to my understanding, that would also cause the client to stack the elements erroneously, which would be also fixed by a teleport, but that isnt happening here…
I did now check the pk2 also, the max stack in the itemdata there is 25000

So I have tried updating, and made a new folder for phbot just to clear anything up.
I also just got the same loop happening, but this time on a tablet combine rather than an element…


This actually happened on the very first stone it tried to make.
I was exchanging back and forth some stones and elements to clear out inventory, so this might have happened somewhere along the way that the bot missed something.
The stone i was trying to make is different than the stone it is trying to combine.
also the stone its trying to combine, has only 1 slot in my inventory, so it shouldnt be trying to combine it at all.

I have also noticed that you can reach this number mismatch between bot inventory tab and client player inventory without getting this loop at all, as long as it doesnt attempt and fail to combine them.

So perhaps you can from your end on your test server just try to refresh the bot inventory while spectating the inventory itself while making stones, at some point along the way this mismatch will happen, even if it doesnt fail to combine ( leading to this freeze loop).