Farm Manager - Tribal Wars 2 Farmbot

release
tribal-wars-2

#51

How do I add more cycles?


#52

Good, I will find a way to implement that.


#53

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.


#54

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|


#55

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()<—


#56

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 https://github.com/Viir/bots/blob/acb53c8af69d47f32f673df96f87ce15b7b3128e/tribal-wars-2/tribal-wars-2-farmbot.cs


#57

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?


#58

@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


Bot 57D85AD8 - /* Tribal Wars 2 Farmbot v2018-09-10
#59

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:


#60

@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


#61

Jap Windows 7 … 20 zeichen erreicht…


#62

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


#63

hmm jetzt sagt er mir das : also nen compiler error

habs vom local file gestartet…


#64

Thank you. I’ve tested it and it works great.
It’s the best bot I’ve ever used.

It may be difficult to implement but another useful function would be to prevent the bot from launching attacks when the number of troops in the barracks is less than required in the report.
when the attacks are sent away and do not return before the new cycle, the bot sends the amount that exists, sometimes encounter several attacks with only 1 unit.


#65

Nachdem was ich auf dem Screenshot sehe ist beim laden des Bot vom File etwas schiefgelaufen.
Ich empfehle folgendes:

Siehst du dann folgenden Text?

✓ Successfully loaded the bot with ID 57D85AD811D1B77FE90386D0A69B5D889ED201EC


#66

Looks like the game gives us some information to check this:

By comparing those number to the ones in the report, we could check if there are enough troops left.
The screenshot is from the window we already use to attack, so adding the check should be possible without making any additional inputs to the game UI.


#67

Hey i tried to change the script and wanted to know if this config was good for repeating " infinite " time and without stopping AZEAZE


#68

I see a screenshot there, but no text for the configuration. As far as the screenshot looks, I see no problem there. :+1:


#69

Thank you very much , the script is well working i just tested it for about 3 hours and everything is working well ! x’)


#70

i was realy satisfected with the boot whi have help me to farm more, but also have severous problems whith metodic to done this. If we have a opition to imput coordenades to atack farms, that will be done better than we do now