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

Because it attacks from the same villages as you do. When you only attack the farms from your main village, the bot does it the same way.

Dem Screenshot nach sah der entsprechende Bericht anders aus als erwartet, daher ging das lesen desselben schief. Sende mir mal das Bot Log zu, dann kann ich mir das anschauen.
Falls dieses Problem bei Berichten auftritt welche vorher erfolgreich gelesen wurden deutet das darauf hin das diese nun anders angezeigt werden als vorher. Vieleicht kann man die Anzeige der Berichte in der Konfiguration beinflussen, habe mir das noch nicht genau angeschaut.

Weiß nicht ob die Konfiguration der Anzeigeeinstellungen im Spiel dadurch zurückgesetzt werden. Vieleicht sind diese per Account gespeichert und überdauern solche Maßnahmen daher.

Yes, I made a new version of the bot to fix this crash. You can load it from https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot.v2018-08-31T14.cs

I made a new version of the bot to recover from the report display bug when the buttons to navigate between reports stop working:

As always, you can load this version by entering the bot address above in the 📂🌐 Load Bot From Web function of the BotEngine app.

The older versions of the bot would get stuck when the buttons in the Tribal Wars 2 UI stop working. This new version recovers from this state by reloading the report list and opening the last seen report. More details about the bug and the process to adapt the bot are found in the thread at Bug In Tribal Wars 2 Web App - Broken Report Display

1 Like

Hey Viir, looks like you have discovered a new bot! Thank you for sharing this with us!
I added a link to this bot to the bot catalog:
https://forum.botlab.org/t/bot-73571212-tribal-wars-2-farmbot-v2018-08-31/1468

1 Like

yes, that would be a good solution.

hi there i had used the bot for a day , and when i tried to used it again , i did not want to start again it said something about credits , can some1 help me?

The bot is not free… you need to buy credits to run it again! you can buy them here https://manage.botengine.org/credits/GetCredits

I told Viir if it possible to make it free like the old bot but…

How do I add more cycles?

Good, I will find a way to implement that.

You can add more cycles by downloading this file: https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot.v2018-09-02.add-more-cycles.cs
and then load your edited file into the app using the 📂 Load Bot From Local File button.
That file is edited to let the bot run 99 farm cycles unless you stop it.

Viir, I checked your code and I found a bug. When I have selected first village, your bot can’t selected as active second village - first village is active still. A round menu is activated but the bot doesn’t click on the ‘set as active village’ button. How can I fix it? Here is log text:

|Current active village location is xxx|xxx|
|Begin switching to village yyy|yyy.|
|active village after switching xxx|xxx|

There is a bug when i start the bot:
Failed to hover or click on attempt 1 with exception:
System.AggregateException: Mindestens ein Fehler ist aufgetreten. —> PuppeteerSharp.PuppeteerException: Node is detached from document
bei PuppeteerSharp.ElementHandle.d__26.MoveNext()
— Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde —
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei PuppeteerSharp.ElementHandle.d__24.MoveNext()
— Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde —
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei PuppeteerSharp.ElementHandle.d__11.MoveNext()
— Ende der internen Ausnahmestapelüberwachung —
bei System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
bei System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
bei System.Threading.Tasks.Task.Wait()
bei Submission#0.AttemptClickAndLogError(Func`1 getHtmlElement)
—> (Interne Ausnahme #0) PuppeteerSharp.PuppeteerException: Node is detached from document
bei PuppeteerSharp.ElementHandle.d__26.MoveNext()
— Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde —
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei PuppeteerSharp.ElementHandle.d__24.MoveNext()
— Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde —
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei PuppeteerSharp.ElementHandle.d__11.MoveNext()<—

This log text looks like you are not using the newest version of the bot. To fix this, I recommend using the newest version of the bot from bots/tribal-wars-2/tribal-wars-2-farmbot.cs at acb53c8af69d47f32f673df96f87ce15b7b3128e · Viir/bots · GitHub

When I have the complete Bot Log, I can take a look at the problem. Can you send me the complete Bot Log or the session ID?

@Remax132 discovered a case where reading a battle report failed. It turned out that some effects on the players account could prevent the bot from reading battle reports. I have adapted the bot to fix this.
The newest version of the bot is available at

1 Like

Hey Viir, looks like you have discovered a new bot! Thank you for sharing this with us!
I added a link to this bot to the bot catalog:
https://forum.botlab.org/t/bot-57d85ad8-tribal-wars-2-farmbot-v2018-09-10/1527

@xtalplus, I implemented this today, you can get the version of the bot which avoids attacking non-barbarian villages from https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot.v2018-09-11.cs

Jap Windows 7 … 20 zeichen erreicht…

Für Windows 7 braucht es derzeit eine spezielle Version der App. Du kannst diese laden von https://botengine.blob.core.windows.net/blob-library/by-name/BotEngine.v2018-08-25-win7.exe