Hi there, first: GREAT job. Thank you for putting this all together and making it accessible.
Everything seems to be working fine until today. My ship warps to a belt with asteroids and it looks like it right clicks the nearest asteroid, but then pauses. It then re-right-clicks. It never clicks approach. If I manually approach, it takes over and works fine.
Thank you for sharing, I will reduce the default targeting range to 8 km to avoid such problems in the future.
People can always use the app-settings to adapt the targeting range, but the defaults should work for 99% of setups.
I like the idea. It seems simple and easy to implement. Will probably add this soon.
To count the unloads, we can look at the used capacity in the ore hold indicated by the capacity gauge in the game client’s user interface. Each time the used volume transitions to zero, we increment the counter.
This approach does not depend on remembering what the bot tried to do because it only watches what happens in the game client. The counting also works if another bot or a human do the unloading. Since we don’t need to depend on our actions for counting, this implementation is easy to transfer to other apps.