Is a parameter in the bot better than using the game user interface to disable the army presets for that village?
if I could have the option to have both implemented that be awesome. If I had to choose one, I’d go with parameter. Reason is if I plan not to farm on multiple villages, I’d rather add that in the bot to skip rather than disable the in-user interface because if someone is my Co-op it would look very strange for me not to have preset active on certain village. Makes it hard to detect someone botting.
This addition sounds reasonable and valuable. Now that you mention it, I see the problem. Implementing a configurable limit in the bot seems a good solution.
How should we name this setting?
Maybe “Limit-Outgoing-Commands”?
Last thing that came up to my mind for bot improvement is. Can we have to bot stop sending attacks on a village that has FULL warehouse. Would check every cycle, and skip if the warehouse is full.
For the new parameter “limit-outgoing-commands-per-village” is it possible to allow a range to be accepted like the breaking system “ex. 3-4”. This way it doesn’t look strange if all village are exactly 40 outgoing. If there’s a range we can apply it’ll vary each village making it looks less likely a bot is being used.
limit-outgoing-commands-per-village: The maximum number of outgoing commands per village before the bot considers the village completed. By default, the bot will use up all available 50 outgoing commands per village. You can also specify a range like 45-48. The bot then picks a random value in this range.
Where do I reach you for private bots? Question about the bot, when it sends the preset how does it send it? Is it using the preset hot key or do it click the attack with preset if it were like a real person?
The bot from this thread does not use a hotkey or click. It uses an interface specifically for web applications (such as TW2) and sends more direct instructions via the chrome browser’s automation API.
The linked bot uses a javascript snippet to trigger the sending.
Okay because the released a new Bot detection tool. Just wanted to see if the way the bot is sending farm preset can’t be detected as a bot on their side with the method.
Yes, I see the reactor is down, so running a bot in online mode fails. Sorry for the interruption. I am looking into it.
EDIT at 12:07 UTC
To summarize the discoveries of my investigation:
The state of the reactor was so messed up that I resorted to restoring a backup from yesterday around 8:30 UTC. As a result, we lost all progress on the reactor since that time yesterday.
So far, everything seems to work nominally again, including running bots.
(In case you were wondering, the redirects via to.botlab.org were also affected by today’s crash.)
Is there a way to get the bot to minimize the browser when a cycle is finish during the break duration? I notice when the browser is fully open it use up a lot of resources from the PC but when minimize CPU load goes from 87% down to 7%.
Interesting idea. Possible in theory, but at the moment, I don’t know of any bot which has implemented this already. It would require adapting a bot program first.
I have not yet looked into which API I would recommend for minimizing the browser window.
Would really help with PC stability (Assuming majority of users especially on laptops). Hopefully, there’s a way, only reason I had to move into a VM server due to it constantly putting my CPU load 80-95% when opened.
Probably there is a way. The question is which project we could or should take resources away from to look into this.
If there is a problem with stability, this sounds more important. If this affects more than one percent of users, it will have a higher priority to investigate.
What about having the bot close the browser window in that phase? Do you see a problem with that approach?
No, that’ll be perfect!
I also found a problem with the bot on certain Preset type. If I have a preset with multiple unit type (LC, Axe, MA, HC) and the village only has HC. It will assume that village has used up all it’s available unit and will not send. I can create & send a recording or data for this if it makes it easier to understand.