This bot farms barbarian villages in Tribal Wars 2.
It automatically detects barbarian villages, available troops and configured army presets to attack.
Easy to Configure
- Automatically reads the required information from the game: Locations of farms, available units, army presets, current attacks per village, etc.
- Use the in-game army presets to configure which villages should attack and which units to use.
- Supports multiple army presets per village to make the best use of your troops.
- Takes into account the limit of 50 attacks per village.
- Fast enough to send 800 attacks per hour.
- Option to avoid barbarian villages under a certain amount of points.
- Avoid having your troops die at remaining walls: Option to avoid barbarian villages with specific coordinates.
- Supports random breaks between farming cycles.
- Uses a normal web browser to interact with the game server for maximum security.
- Stops the farming when the configured time limit is met to avoid perpetual activity on your account.
Starting the Farmbot
This video shows the process of starting the farmbot and setting up your Tribal Wars 2 account:
To start the farmbot, download the executable file from https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot-2020-05-07.exe and then run it.
The first time you start the bot, it will download a web browser component. This can take some time, depending on your internet connection.
When the browser download is finished, the bot opens a ‘chromium’ web browser window, which is a variant of googles chrome web browser. In the Windows taskbar, it appears with an icon that is a blueish version of the google chrome logo:
In the browser window opened by the bot, navigate to the Tribal Wars 2 website and log in to your world so that you see your villages.
Then the browsers address bar will probably show an URL like https://es.tribalwars2.com/game.php?world=es77&character_id=12345
Now the bot will probably display a message like this:
Found no army presets matching the filter ‘farm’.
Or, in case your account has no army presets configured at all, it shows this message:
Did not find any army presets. Maybe loading is not completed yet.
In any case, we need to configure at least one army preset before the bot can start farming.
Configuring Army Presets
The bot only uses an army preset if it matches the following three criteria:
- The preset name contains the string ‘farm’.
- The preset is enabled for the currently selected village.
- The village has enough units available for the preset.
If multiple army presets match these criteria, it uses the first one by alphabetical order.
If no army preset matches this filter, it switches to the next village.
You can use the in-game user interface to configure an army preset and enable it for villages:
Besides the army presets, no configuration is required.
The bot searches for barbarian villages and then attacks them using the matching presets. You can also see it jumping to the barbarian villages on the map.
In the console window, you can read about the number of sent attacks and what the bot is currently doing:
[...] Sent 129 attacks in this session, 129 in the current cycle. Checked 1413 coordinates and found 364 villages, 129 of wich are barbarian villages. Found 3 own villages. Current activity: + Currently selected village is 871 (482|523 'Segundo pueblo de skal'. Last update 6 s ago. 537 available units. 11 outgoing commands.) ++ Best matching army preset for this village is 'farm beta'. +++ Farm at 567|524. ++++ Send attack using preset 'Farm 1'. [...]
When all your villages are out of units or at the attack limit, the bot stops with this message:
Finish session because I finished all 1 configured farm cycles.
When asking for help with the bot, include the complete text from the console window or a screenshot. Make sure screenshots are well readable. Don’t try to insert a screenshot directly into the forum, as it will be compressed and unreadable. When posting on the forum, you can link screenshots hosted at other sites like Github or imgur.