Farm Manager - Tribal Wars 2 Farmbot (old version from 2018)

So today I tested this on Windows 7 and did some more reading. I found that on Windows 7, the implementation to connect to the webbrowser does not work with the current version.

@otremba, I made a new version for Windows 7, you can download it from https://botengine.blob.core.windows.net/blob-library/by-name/BotEngine.v2018-08-25-win7.exe

Does this work for you?

2 Likes

I sent you a PM for the configuration of multiple farming cycles.

Improving Efficiency - Support Quicker Completion Of The Farming Cycle

Today I added a new feature to reduce the time the bot needs to complete a farming cycle.

Often, you will have many more reports than farming villages, because you get a new report per farm every time you send troops for farming. This means that the bot should not attack again for each report, but only once for each combination of coordinates in a farming cycle.
Since the first version, the bot already supported this: It reads the coordinates of attacking and defending village, and decides to skip this report if it has already sent troops for these coordinates in the current farming cycle. In the log, you then see a message like this:

An attack from 478|518 to 497|536 has already been sent in this cycle. I skip this report and continue with the next one.

With the bot operating, the number of battle reports can quickly grow into thousands. To avoid having the bot spend all the time on reading past reports for the same villages, I updated the bot to detect if it has reached the end of the reports which contain new coordinates.
It now applies heuristics to decide whether to expect new coordinates for attacking or farming villages in the next reports. It then ends the current farming cycle when it looks like no new coordinates are to be discovered.
Then you will see a message in the log like this:

The last 31 reports I have seen contained combinations of attacking and defending village coordinates for which I have already sent attacks in this cycle. Because of this, I do not expect to find any more new farm coordinates in the next reports. I end this cycle.


For the developers among us, you can see the corresponding code changes at

Can this be set to auto run? When i ran it. It did the attacks then shut down window. Is this supposed to happen?

  • When the bot has opened the browser window, pause the bot by pressing the Pause Operation button in the Bot Operation App.

the web page does not open

Hey, you have to set yourself how many cycles to do! Change the “1” in this line
const int numberOfFarmCyclesToRepeatMin = 1;
to how many cycles you want!

3 Likes

Ahh i see thanks. Is there also a way you can set a delay between them also ? So it sends farms out every 1hr for example. Man i need to get back into python learning again. Thanks again mate

For the break duration change the 60 * 30 in this line
const int breakBetweenCycleDurationMinSeconds = 60 * 30;
now its set to 30mins to make it 1hr change to 60 * 60

1 Like

Hi thanks for your help. i just got home and had a look. now i see what you mean. will they be a feature that detects that its sent max amount ie 50 attacks and pause ?

You need to open the web page manually (at least the first time), in the browser window which has been opened by the bot. To open the web page, you can type tribal wars 2 server address in the address bar of the browser or you can use a bookmark.

If the browser window does not open:

  • I need the Bot Log to investigate the problem.
  • Also, what version of Windows are you using?

To decide this, I need to know a few things, for example:

  • What happens on the screen when you reach this max amount?
  • Why would pause be better than other alternatives of progressing?

Mine says this application was unable to start correctly when I actually press start bot operation

What do you see on the screen? Can you make a screenshot of the BotEngine app window?

не получается найти код помогите с ув

When you reach the 50 limit units movement you get this error on the bottom right of the screen Screenshot by Lightshot (sorry for the lang :stuck_out_tongue: )

Screenshot%20(1)

I do not understand this.
At the moment, I support only english, spanish and german.

In your post, I see a picture of a scaled down screenshot. It is to small for me to see what is happening. It looks promising, when we have the original screenshot, that might help me to find the cause of the problem. In case you are not sure how to upload images, you could use https://imgur.com for example.

hi,
the bot is working fine with me.
One of the problems in using these bots, after the early game, is that after a player has conquered a barbarian village the bot continues to send attacks to that village, this is a problem because we have to find the report in the middle of so many others . Is there any possibility of having the bot make sure the village is still barbaric and does not attack otherwise?

Thank you, dude! I have one question - why this bot doesn’t send attack from two villages? Works in my main village.