Farm Manager - Tribal Wars 2 Farmbot

release
tribal-wars-2

#91

In under an hour you resolved my problem ! thank you very much i can now use again my precious TW2 farm bot .


#92

Same problem here, the bot locates the village but cant make it active, maybe its becasue we use win 7 bot application?

@edit i tried all the previous version - no effect
im playing germany tw2


#93

What is the link to the session you observed this problem in? When I have the link to the session as displayed in the Bot App, I can take a look at it.


#94

after i read your reply i loaded newest .CS and eveything started to work just great! @.@ xD
idk if it was you or just luck but thanks anyway! Great bot i love it :smiley:


#95

seems broken…perhaps new update…


#96

Hi Viir. I use your bot but now and then i get a error during botting and it closes the browser. Its not good when it hapens over night and i dont farm at all :S Im a windows 7 user and i use the bot engine for windows 7 you posted in early reply’s. The linked one im main post does not work (does not open up the browser for me). Only the windows 7 one does. And i copyed and pasted the code for the bot with minor changes. break between cycles = 1 min to 5 min max, same reports to read to end cycle = 9999 and things like that to make it work all night and not stop. Im still testing and trying to find best setting to run the bot whole night long. Without too many breaks and with maximized farming/number of atacks sent in cycle. Below im enterig the log from the engine during crush. Also sometimes during botting there is a second matter. randomly an error pops up, but the bot still contoinues to work. Screen shoot of the work un-interupting error also below

Screen shoot of the error that doesnt stop the bot. but still anoying :stuck_out_tongue:

The “browser close” error log bellow


#97

And here is the log that couses the browser to close and stopes the bot from working:

09-49-29.844: Hey, I have seen a report with the same caption before! This has happened 3 consecutive times. This could be caused by the the bug in the Tribal Wars 2 Web App which breaks reports display (Bug In Tribal Wars 2 Web App - Broken Report Display). I start the process to recover from this bug.
09-49-29.847: I begin the process to restart the report UI and continue at report with time ‘09:49:05’.
09-49-31.680: I clicked the button to open the report list. Next, I set the page size to 100.
09-49-38.416: I parse the reports in there to find the best to continue with.
09-49-38.421: I parsed 0 report items.
09-49-38.421: I did not find a report item with time of ‘09:49:05’. I continue with the last report in the list.
09-49-38.422: RuntimeException: System.AggregateException: One or more errors occurred. —> System.AggregateException: One or more errors occurred. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
at Submission#0.<>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_0.b__4()
—> (Inner Exception #0) System.AggregateException: One or more errors occurred. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
at Submission#0.<>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
—> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
at Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
at Submission#0.<>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()<—
<—

09-49-38.422: status transition from Running to Failed.


#98

Thank you @kni4x for the report, I am investigating the problem.

This report indicates the problem happened at the following code location:

For some reason, the bot only read 0 reports in the report list before the crash. Not sure why this happened yet.
Maybe the list of reports was populated slower/later than expected by the bot. In this case, a fix could be having the bot wait longer here, or retry once if this number of reports is 0 in the first try.
:thinking:


#99

Hi this is kni4x again. Just woke up not long ago and as expected the bot stoped after an hour or two. I have some knowledge about programing but i didt code since years and forgot most. Could you provide me with some work around for this problem before you come up with an solution. Either by commenting some code lines that couse the error, or reducing in some point the functionality of the bot just to make it run whole night ? My silos where half empty when i woke up :stuck_out_tongue: Also have a question about credits. Does the bot eat credits if the browser closes but the bot engine is still open ? And during breaks between cycles? dot wanna lose all credits but im still gona try to run it at night. Would be nice if it could stay up till moring. Thanks ! Below another log after browser close error:

18-42-07.567: Hey, I have seen a report with the same caption before! This has happened 3 consecutive times. This could be caused by the the bug in the Tribal Wars 2 Web App which breaks reports display (Bug In Tribal Wars 2 Web App - Broken Report Display). I start the process to recover from this bug.
18-42-07.567: I begin the process to restart the report UI and continue at report with time ‘10:55:38’.
18-42-10.226: I clicked the button to open the report list. Next, I set the page size to 100.
18-42-17.103: I parse the reports in there to find the best to continue with.
18-42-17.178: I parsed 0 report items.
18-42-17.178: I did not find a report item with time of ‘10:55:38’. I continue with the last report in the list.
18-42-17.181: RuntimeException: System.AggregateException: Wystąpił przynajmniej jeden błąd. —> System.AggregateException: Wystąpił przynajmniej jeden błąd. —> System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
w Submission#0.<>d__0.MoveNext()
— Koniec śladu stosu z poprzedniej lokalizacji, w której wystąpił wyjątek —
w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
w Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- Koniec śladu stosu z poprzedniej lokalizacji, w której wystąpił wyjątek --- w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) w Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— Koniec śladu stosu wyjątków wewnętrznych —
w System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) w BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() w System.Threading.Tasks.Task1.InnerInvoke()
w System.Threading.Tasks.Task.Execute()
— Koniec śladu stosu wyjątków wewnętrznych —
w System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
w System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
w System.Threading.Tasks.Task.Wait()
w BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_0.b__4()
—> (Wyjątek wewnętrzny #0) System.AggregateException: Wystąpił przynajmniej jeden błąd. —> System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
w Submission#0.<>d__0.MoveNext()
— Koniec śladu stosu z poprzedniej lokalizacji, w której wystąpił wyjątek —
w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
w Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- Koniec śladu stosu z poprzedniej lokalizacji, w której wystąpił wyjątek --- w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) w Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— Koniec śladu stosu wyjątków wewnętrznych —
w System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) w BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() w System.Threading.Tasks.Task1.InnerInvoke()
w System.Threading.Tasks.Task.Execute()
—> (Wyjątek wewnętrzny #0) System.NullReferenceException: Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.
w Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
w Submission#0.<>d__0.MoveNext()
— Koniec śladu stosu z poprzedniej lokalizacji, w której wystąpił wyjątek —
w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
w Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- Koniec śladu stosu z poprzedniej lokalizacji, w której wystąpił wyjątek --- w System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() w System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) w Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()<—
<—

18-42-17.184: status transition from None to Failed.


#100

Hello VIIR,
My bot will also only farm from 1 villa, while it actually has reports of 2 villas in the list.
Here is my log:
13-17-03.608: Bot operation started in session 2f6a1e7b2318f7a6.
13-17-05.734: Welcome! - ¡Bienvenido! - Bienvenue! ---- This is the Tribal Wars 2 Farmbot. I read your battle reports and send troops to your farms again. To learn more about how I work, see Testing The Tribal Wars 2 Farmbot 2018. In case you have any questions, feel free to ask at https://forum.botengine.org
13-17-33.395: Looks like opening the web browser was successful.
13-17-33.462: Starting cycle 0 of 1.
13-17-34.579: I did not find the button to open the report list. Maybe the game is still loading. (The location of the current page is ‘https://en.tribalwars2.com/page’). If you have not done this yet, please log in and enter the game in the web browser I opened when the script started. For now, I keep looking for that button to appear…
13-17-50.987: I did not find the button to open the report list. Maybe the game is still loading. (The location of the current page is ‘https://en.tribalwars2.com/game.php?world=en41&character_id=1064021’). If you have not done this yet, please log in and enter the game in the web browser I opened when the script started. For now, I keep looking for that button to appear…
13-18-07.181: Found the button to open the report list.
13-18-07.181: Please configure filtering in the reports list now. I will wait for 10 seconds before continuing. In case you need more time to configure the game, you can pause the bot.
13-18-17.187: Url without character id: ‘https://en.tribalwars2.com/game.php?world=en41&character_id
13-18-21.699: Found the button to open the report list. I click on this button…
13-18-39.419: Found at least one report item in the reports list.
13-20-52.642: Number of parsed report items: 100
13-20-52.642: Found a report in the report list. I click on it.
13-20-55.041: In the current cycle, I have looked at 0 reports and sent 0 attacks from 0 villages.
13-20-55.065: In this session, I have looked at 0 reports and sent 0 attacks from 0 villages.
13-21-03.046: Caption of the current open report: ‘Today at 6:11:39 PM - MFD A02 attacks ( Barbarian village )’
13-21-05.472: Parse the battle report details…
13-21-13.755: Battle report details:
{ “AttackerVillageLocation”: “521|504” , “DefenderVillageLocation”: “521|503” , “DefenderIsBarbarian”: “True” }
13-21-13.798: This report looks like I should attack here.
13-21-18.484: Current active village location is 519|504
13-21-18.502: Begin switching to village 521|504.
13-21-29.085: I clicked on the menu button to activate the village. Now I wait for the game to show 521|504 as the active village.
13-21-47.476: I failed to switch to the originally attacking village. I skip this report. If you see this happen all the time, make sure that the game is visible in the web browser.
13-21-50.370: I click on the button to navigate to the next report.
13-21-57.581: Caption of the current open report: ‘Today at 5:42:43 PM - MFD HQ attacks ( SheikiMitoGO’s village )’
13-21-59.124: Parse the battle report details…
13-22-01.321: status transition from None to Pausing.


#101

Viir What you are saying is possible. Often when i see the bot working, the report window shows no reports in it. Just a message “No reports to display with current filters” However its some game issue. I dont change the filters during the bot useage and the bot itself doesnt either as i presume. Probably a close and reopen reports window would help. At this moment the bot usually finishes a cycle when it cant see the reports. Thats why i set the cycle breaks so low so it will start working again after 1-5 min with new cycle. Maybe sometimes it just finishes cycle, and other times it crashes the browser, i dont know :S Please if possible gimme some work-around before sleep (thats in 10h from now :P) so i dont lose another night :slight_smile:


#102

Hello VIIR,

I tried again, and i can see that the bot tries to select the villa, but doesnt push the button to move it… could it be that the bot dont see the button to click?
Please let me know.If you want more info.


#103

It just happened again when i was watching. However i noticed it opens the Raport window and all reports where normaly visible, and then sudenly the browser closed.

20-13-46.557: I click on the button to navigate to the next report.
20-13-49.765: Caption of the current open report: ‘Dziś o 11:17:23 - xx atakuje: ( Wioska barbarzyńska )’
20-13-49.765: Hey, I have seen a report with the same caption before! I skip this report and continue with the next one. If you see this happen all the time, make sure that the game is visible in the web browser.
20-13-51.118: I click on the button to navigate to the next report.
20-13-54.335: Caption of the current open report: ‘Dziś o 11:17:23 - xx atakuje: ( Wioska barbarzyńska )’
20-13-54.336: Hey, I have seen a report with the same caption before! This has happened 3 consecutive times. This could be caused by the the bug in the Tribal Wars 2 Web App which breaks reports display (Bug In Tribal Wars 2 Web App - Broken Report Display). I start the process to recover from this bug.
20-13-54.336: I begin the process to restart the report UI and continue at report with time ‘11:17:23’.
20-13-56.090: I clicked the button to open the report list. Next, I set the page size to 100.
20-14-02.831: I parse the reports in there to find the best to continue with.
20-14-02.836: I parsed 0 report items.
20-14-02.836: I did not find a report item with time of ‘11:17:23’. I continue with the last report in the list.
20-14-02.838: RuntimeException: System.AggregateException: One or more errors occurred. —> System.AggregateException: One or more errors occurred. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
at Submission#0.<>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
— End of inner exception stack trace —
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_0.b__4()
—> (Inner Exception #0) System.AggregateException: One or more errors occurred. —> System.NullReferenceException: Object reference not set to an instance of an object.
at Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
at Submission#0.<>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()
— End of inner exception stack trace —
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at BotSharp.ScriptRun.ScriptRun.<>c__DisplayClass75_1.<Start>b__3() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
—> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
at Submission#0.ReloadAndEnterReportAtTime(String reportTimeToContinueAt)
at Submission#0.<>d__0.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.d__91.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.Script1.d__21.MoveNext()<—
<—

20-14-02.839: status transition from None to Failed.

For an overview of this session, see http://manage.botengine.org/operation-session/a3a2b50ab22fb737


#104

Sure, when we know what happens in your case, and what option you prefer, we can adapt the bot.
Last time I dug up some information about this case was here:

To continue, from there: How did the report list look like when the bot crashed on the same code location? Did the reports eventually show up there? If that is the case, a solution could be to wait longer. But if the reports do not show up in the list (quick enough), would you prefer to have the bot start from scratch?

Commenting out a known line is simple: A comment can look like this:

// Text on this line is not interpreted as program

So what lines couse the error?

Credits are only consumed when the bot is Running or is Paused.

Ok, that is some progress on the way of finding out what happens in your case :+1:
When the game has arrived in this state, how can you make it display the list of reports again?


#105

Sure, I made a version of the Farmbot which is adapted to your case. You can download it from https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot.v2018-12-09.cs

How does this version work for you?


#106

Maybe it works when the bot waits more time before attempting the click, or clicks another time if the first try fails.
I adapted the bot to try this, you can download this version of the bot from https://botengine.blob.core.windows.net/blob-library/by-name/tribal-wars-2-farmbot.v2018-10-12.cs

What log do you get with that version?


#107

Hello VIIR,

Still the same… i can see he goes to the map to select the villa but the button to activate the villa is not pressed…or activated…

20-21-01.321: Bot operation started in session 29e320994a612864.
20-21-09.675: Welcome! - ¡Bienvenido! - Bienvenue! ---- This is the Tribal Wars 2 Farmbot. I read your battle reports and send troops to your farms again. To learn more about how I work, see Testing The Tribal Wars 2 Farmbot 2018. In case you have any questions, feel free to ask at https://forum.botengine.org
20-21-22.171: Looks like opening the web browser was successful.
20-21-22.237: Starting cycle 0 of 1.
20-21-23.353: I did not find the button to open the report list. Maybe the game is still loading. (The location of the current page is ‘about:blank’). If you have not done this yet, please log in and enter the game in the web browser I opened when the script started. For now, I keep looking for that button to appear…
20-21-38.791: I did not find the button to open the report list. Maybe the game is still loading. (The location of the current page is ‘https://en.tribalwars2.com/page’). If you have not done this yet, please log in and enter the game in the web browser I opened when the script started. For now, I keep looking for that button to appear…
20-21-53.852: I did not find the button to open the report list. Maybe the game is still loading. (The location of the current page is ‘https://en.tribalwars2.com/game.php?world=en41&character_id=1064021’). If you have not done this yet, please log in and enter the game in the web browser I opened when the script started. For now, I keep looking for that button to appear…
20-22-02.589: Found the button to open the report list.
20-22-02.590: Please configure filtering in the reports list now. I will wait for 10 seconds before continuing. In case you need more time to configure the game, you can pause the bot.
20-22-12.597: Url without character id: ‘https://en.tribalwars2.com/game.php?world=en41&character_id
20-22-14.437: Found the button to open the report list. I click on this button…
20-22-22.112: Found at least one report item in the reports list.
20-23-30.461: Number of parsed report items: 100
20-23-30.461: Found a report in the report list. I click on it.
20-23-32.709: In the current cycle, I have looked at 0 reports and sent 0 attacks from 0 villages.
20-23-32.738: In this session, I have looked at 0 reports and sent 0 attacks from 0 villages.
20-23-38.038: Caption of the current open report: ‘Today at 1:20:53 AM - MFD A02 attacks ( Barbarian village )’
20-23-39.214: Parse the battle report details…
20-23-42.473: Battle report details:
{ “AttackerVillageLocation”: “521|504” , “DefenderVillageLocation”: “521|503” , “DefenderIsBarbarian”: “True” }
20-23-42.501: This report looks like I should attack here.
20-23-43.390: Current active village location is 519|504
20-23-43.401: Begin switching to village 521|504.
20-23-50.140: I clicked on the menu button to activate the village. Now I wait for the game to show 521|504 as the active village.
20-24-01.993: I failed to switch to the originally attacking village. I skip this report. If you see this happen all the time, make sure that the game is visible in the web browser.
20-24-04.037: I click on the button to navigate to the next report.
20-24-09.468: Caption of the current open report: ‘Today at 1:12:13 AM - MFD HQ attacks ( Kurenai Yuki’s village )’
20-24-10.339: Parse the battle report details…
20-24-13.509: Battle report details:
{ “AttackerVillageLocation”: “519|504” , “DefenderVillageLocation”: “492|493” , “DefenderIsBarbarian”: “True” }
20-24-13.534: This report looks like I should attack here.
20-24-14.773: Current active village location is 519|504
20-24-14.787: Try to find and click the button to attack again.
20-24-16.803: status transition from None to Pausing.

I will wait for your reply
Thanks


#108

I don’t know if u guys were with the same problem as I was, but when the bot was trying to switch villages, he couldn’t do it. I realize it was chat’s fault (The village was too close to the chat, and the bot was probably conflicting). I closed the chat and the bot work perfectly.

Hope it help!


2018 in Review
#109

it stops after 1 session , how can i increese it ?
and it farms only with 1 village
how can i fix it ?


#110

For the second case try to follow the instructions in my commentary above.
For the first case change this on the script:

const int numberOfFarmCyclesToRepeatRandomAdditionMax = 0;

if you scroll through commentaries you’ll find with more details how to proceed.