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
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 )
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
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.
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)
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.
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,
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).