Farm Manager - Tribal Wars 2 Farmbot

Let’s take a look at your scenario: What do you see when the cycle is completed?
When the farm cycle is completed, we get a report that tells us how many villages were used.
What report did you get?

Here is an example of the report:

Completed fourth farm cycle 21 minutes ago with 48 villages (No preset: 2, Attack limit: 5, Out of units: 3, Out of farms: 38). Sent 1653 attacks in 103 minutes.

First of all thanks for this bot!!!

I successfully started the bot and it also works. My only problem is that i dont understand how to fix the issue that the bot closes itself after it finished his work. i read the previous posts on this thread and saw that you posted some “codes” that solves the problem but actually i dont understand what i have to do with those.

I would really appreciate it if you could help me with this problem.

i’m running a older version as it seems to be faster, but still same results, during farming it recognizes i have 40+ villages, it will read the status of them all but its almost like it needs some kind of trigger to check its running through village cycles properly

EDIT: ill run the latest version for 2 hours and share report to be more accurate

this is what i get

Hello Jakob!
Thank you for reporting this problem.

I tested this now and found a bug sneaked into version 2020-06-20 which causes this problem.
I repaired this and uploaded a new version here: https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot-2020-07-03.exe

The only thing you need to do is download from the link above and start the program by double-clicking on the file in Windows Explorer. With version 2020-07-03, the engine window will remain open even when the bot is finished.

@Viir

it works now thanks, but i have another question ^^. is there a way to set the bot to only attack villages where there are currently no attacks. because currently the bot always attacks the 1 village it sees, even if it is already under attack

Thank you for the screenshot, this helps :+1: I will investigate this. I will post here or send you a PM when I have news.

No easy way at the moment. This would require changing the app code, might take hours to develop.

Hey @Kawz!
With the information from your screenshot, I found a problem in the program code and fixed it.
This change should solve the problem of the bot not seeing all of our villages.

You can get the new version from FrontendWeb.Main

Does this work for you?

Hi!

This program is great! I have purchased credits and everything works fine. Can you please add feature:

‘farm-add-coordinates’

This way, I can also farm inactive player villages. Also, Can you please explain what triggers are in place to make this program read reports? So far I have been using it for a week and it has not read any report yet. This would make farming much more efficient. Thanks!

1 Like

Welcome, Gareth, and thank you for the feedback!

I do not yet understand this, have some questions:
What if another player conquers that village? Would it not be better the bot stops farming there automatically as soon as another player takes this village?

Given your description, I was wondering if the following approach would be better:
Have a setting player-to-farm to add the names of players whose villages should be treated the same as barbarian villages in farming.

What do you think of this alternative? Would this work for you?

The reading of reports is not yet implemented. Reading reports will need a change in the app code. The status text mentioning reports could be removed at the moment to clean up the interface and avoid confusion.

Yes, that alternative would work well and be a nice safe guard. Thanks for your response! Cannot wait to see this and the read report function in future updates!

1 Like

Nice! So I am going to add that player-to-farm setting.

1 Like

When will it be ready to use? Thank you!

It is ready to use now:
https://catalog.botengine.org/6672a6df4f510d0ea63f05e63e149277115ccaf847f75c7d748f33779a294f02

You can use the character-to-farm setting to add names of player characters to farm.

1 Like

A small update on the new setting introduced last week to select characters/players to farm: In the previous version, there was a bug in applying setting character-to-farm.
This bug was effective when the setting was used in combination with the other setting farm-barb-min-points. The points limit was also applied to the villages from selected characters, so the bot could farm less than the configured players villages in some cases.

I fixed this now, here is the new farmbot: FrontendWeb.Main

makes my life easier thnxs

Version 2020-08-22 of the Tribal Wars 2 farmbot fixes a problem that caused slow reading of the game map.

The reading of the map to find barbarian villages that happens in the first farm cycle had been much slower than usual. Today’s fix brings the reading rate back to about 2 Herz.

Besides this bug fix, there are two more improvements: First is the option to use line-breaks to separate individual settings in the app-settings string. Together with the recently expanded configuration editor, this new feature makes it easier to maintain good readability in your settings.

In case you missed it, here is a screenshot of the recently introduced configuration interface to support multi-line app-settings:

app configuration multi-line app-settings

Using the comma character for separation is still supported, so you can continue to use the same settings string as before.

The second improvement is a tweak to the status text to support monitoring the performance of the bot.

The new version displays statistics like this:

Session performance: attacks sent: 3461, coordinates read: 6138, completed farm cycles: 15

This format enables the automatic processing by standard tools so that these metrics become visible in the “App Metrics” section of your account at FrontendWeb.Main

You can get version 2020-08-22 of the farmbot from FrontendWeb.Main

Is there anyway to customize that preset string it’s looking for ? Rather than using “farm”

Yes, you can customize the preset string by replacing it in the app program code.
The string to use is defined as the value of farmArmyPresetNamePattern on this line:

If you are not yet familiar with editing the files, you can start the editor on Github using this pen button: