Farm Manager - Tribal Wars 2 Farmbot

For these parameters to be recognized, you need to add them to the bot-settings string.
Here is an excerpt from the description of 8e48898051:

When using more than one setting, start a new line for each setting in the text input field.

Followint that guide, I made this complete settings string for you:

number-of-farm-cycles = 3
break-duration = 20 - 40
open-website-on-start = https://example.com/path?param=5678

Here is a direct link to a script with these settings: https://reactor.botlab.org/catalog/8e4889805127fc2552c86e9422ddd407426d83c23a75c7fd91ea7836f129a5ad/configure-run-app/eyJvbmxpbmVTZXNzaW9uIjpmYWxzZSwiYm90U2V0dGluZ3MiOiJudW1iZXItb2YtZmFybS1jeWNsZXMgPSAzXG5icmVhay1kdXJhdGlvbiA9IDIwIC0gNDBcbm9wZW4td2Vic2l0ZS1vbi1zdGFydCA9IGh0dHBzOi8vZXhhbXBsZS5jb20vcGF0aD9wYXJhbT01Njc4IiwicGF1c2VCb3RLZXlzIjoiIiwic2Vzc2lvbkxlbmd0aExpbWl0IjoiIiwiZGV0YWlsZWRTZXNzaW9uUmVjb3JkaW5nIjoiIn0=

When you run this, you get this:

(In this case, we can also see easily that the parameters where propagated correctly, because 8e48898051 happens to print them in the status text.)


I also have an idea to make the process to discover working settings easier: Probably, there will be a text box in which you can type a settings string and get feedback within three seconds after changing the settings string. Then you could also see if the format works for the loaded bot and the whole response of the bot for this settings string.

1 Like

Great! That format works , thank you so much!

Anyone wants to share their best setup/preset & settings using the bot with villa of 20+?

Hello Michael,

Is there a farm bot for MacOS system ?

None that I am aware of.
The easiest way I know for macOS is to use a cloud PC like https://shadow.tech
The virtual PCs they offer are optimized for gamers and thus require nearly zero effort for setup.

Another option for macOS is using parallels: https://parallels.com

Wondering if this is still in the road map for this bot. Is it possible for it to skip a village that has a maxed warehouse? It would check every cycle when it tries to send a preset from that village. The game world are smaller than usual, so no a lot of Barbarian village to farm.

Example full warehouse is this
image

Hello @Drklord, thank you for sharing your experience.
Yes, I still think this feature makes sense. But this week, another improvement is in the pipeline for Tribal Wars 2. Recently someone shared a prototype for speeding up the finding of barbarian villages. Now I am looking into integrating the prototype code into the farmbot.

1 Like

We succeeded in integrating the map scanning speedup. The result is bot 600654cba5345f30

You can run it from https://catalog.botlab.org/600654cba5345f30

1 Like

Oh, wow this is way faster in searching for barb. Great update!

1 Like

Hi , I have a problem , when I start the bot in an online session , it goes through the first 2 cycles no problem but after the 2nd or the 4 th cycle the bot crashes and keeps opening and closing the browser until you shut it down. Can you help me with this thanks

Welcome Tom :wave:

Thank you for sharing your experience. I can look into that problem if you share a session recording from your setup.

Hi , how exacly do you want me to do that i can paste a screen shot of the session from reactor.botlab.org

Hi , i if the session fails i also get a screen like this
Uploading: image.png…

You can export the session from your system using this button labeled Download session recording archive:

You can enter the session summary view using the Enter Devtools button in the botlab UI: bots/how-to-report-an-issue-with-a-bot-or-request-a-new-feature.md at main · Viir/bots · GitHub

hi , as im trying to share the zipp file, anything i try to share in the chat here , says " Sorry, the file you are trying to upload is not authorised (authorised extensions: jpg, jpeg, png, gif, txt, cs)"

Yeah, this forum/chat does not support file sharing.
Many people use Google Drive to share files. (Example Eve Online mining bot not moving after load full ore - #3 by JAC)
Another popular option is attaching the ZIP file to a GitHub issue, as done for example at https://github.com/Viir/bots/issues/31#issuecomment-751731171
You can also send me the ZIP file via email to support@botlab.org

Hallo Michael,

ich bekomme folgende Fehlermeldung nach dem starten des Bots:

Failed message to host
Failed to decode response from http://localhost:7400/api/gui/request: The Json.Decode.oneOf at json[0] failed in the following 17 ways:

Die Meldung ist auch ziemlich lang um diese hier zu posten.
Kannst Du mir weiterhelfen?

Vielen Dank im Voraus,
Michael :grinning:

Hallo auch Michael, und Willkommen!

Es fehlen noch ein paar Informationen.
Ein Screenshot aus dem BotLab client posten sollte funktionieren.
Darin werden schon viele hilfreiche Infos drin sein um das Problem einzugrenzen.
Z.B. client version und bot id

Du kannst einen Screenshot vom aktuell im Vordergrund befindlichen Fenster mit der Tastenkombination Alt+Print machen.

Einfügen eines Screenshots/Bilds sollte hier aus der Windows Zwischenablage heraus in das Texteingabefeld funktionieren.

Hier die client version un bot id:
e521f262ed - Tribal Wars 2 farmbot version 2023-05-16

Hier die Fehlermeldung (leider nur teilweise, da sonst sehr lang):
runbot

Ich hoffe das ist ausreichend um das Problem einzugrenzen.

Danke für das Update, das hilft schon mal weiter.

Ganz genau kann ich es bisher leider nicht erkennen was die Ursache ist. Es kann sein das die Details dazu in dem Logfile in dem Verzeichnis %localappdata%/botlab/local-instance zu finden sind.
Schicke mir gerne mal das Log file aus dieser Session an support@botlab.org (Dieses File wird beim starten des tribal-wars-2-farmbot.exe erstellt, nicht erst mit einer play session)

Die Fehlermeldung könnte daher stammen das eine ältere Play Session nicht gelesen werden kann. Die Daten aus älteren Play Session sind jedoch hier nur für Vervollständigungsvorschläge, und damit nicht unbedingt nötig.

Du kannst diese Fehlermeldung einfach entfernen, durch klick aud das X auf der rechten Seite.
Er zeigt hier zwei Meldungen, daher werden zwei Klicks erforderlich sein.

Danach solltest du den Bot normal benutzen können.