Morning all,
I'm writing my first DreamBot work, having botted on hacky DIY Runelite injections for a couple of years. I've been experimenting with simple stuff, looking to get to grips with the functionality. I've found that DreamBot has some pretty advanced failure detection, and this is a great safety net, but it is also hard to debug!
When mining, I issue a targetRock.interact(), and my mouse tracks to a getSuitablePoint(), and clicks. Most of the time this clears. Sometimes the interact fails, and I issue a move command to the tile. When this happens, DreamBot makes a spirited effort to correct itself, issuing three or four subsequent clicks, waving the camera about. This failure tends to compound, issuing repeated movements rather than the intended interact.
How much control can I take of this process? Are there settings which would simply return failure so that I can handle errors on my end? Is there a way I can collect logs, for example logging button state, hover state, et cetera. Can I insert a getHullBounds().contains(mouse) check?
Many thanks,
Q