In under an hour you resolved my problem ! thank you very much i can now use again my precious TW2 farm bot .
Screenshot
Captured with Lightshot
In under an hour you resolved my problem ! thank you very much i can now use again my precious TW2 farm bot .
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
Same problem here, the bot locates the village but cant make it active, maybe its becasue we use win 7 bot application?
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.
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
seems brokenâŠperhaps new updateâŠ
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
Captured with Lightshot
The âbrowser closeâ error log bellow
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.Script
1.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.Task
1.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.Script
1.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.Task
1.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.Script
1.d__21.MoveNext()<â
<â
09-49-38.422: status transition from Running to Failed.
Thank you @kni4x for the report, I am investigating the problem.
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. [...]
This report indicates the problem happened at the following code location:
- var matchingReportItem =
- 0 < reportTimeToContinueAt?.Length ?
- parsedReportItems.FirstOrDefault(reportItem => reportItem.timeText?.Contains(reportTimeToContinueAt) ?? false)
- : null;
- var reportItemToContinueWith = matchingReportItem;
- if(matchingReportItem == null)
- {
- Host.Log("I did not find a report item with time of '" + reportTimeToContinueAt + "'. I continue with the last report in the list.");
- reportItemToContinueWith = parsedReportItems.LastOrDefault();
- }
- var reportItemToContinueWithText = GetHtmlElementInnerText(reportItemToContinueWith.htmlElement);
- Host.Log("Report item to continue with: '" + ReportCaptionTextInSingleLine(reportItemToContinueWithText) + "'");
- var parsedReportItemsUpToReportToContinueWith =
- parsedReportItems.Take(parsedReportItems.IndexOf(reportItemToContinueWith) + 1)
- .ToList();
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.
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 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.Script
1.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.Task
1.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.Script
1.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.Task
1.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.Script
1.d__21.MoveNext()<â
<â18-42-17.184: status transition from None to Failed.
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.botlab.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 âThe medieval online strategy game - Tribal Wars 2â). 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.
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
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.
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.Script
1.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.Task
1.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.Script
1.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.Task
1.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.Script
1.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
Could you provide me with some work around for this problem before you come up with an solution.
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:
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.
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?
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 ?
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?
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?
Credits are only consumed when the bot is Running
or is Paused
.
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.
Ok, that is some progress on the way of finding out what happens in your case
When the game has arrived in this state, how can you make it display the list of reports again?
Please if possible gimme some work-around before sleep (thats in 10h from now :P) so i dont lose another night
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?
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?
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?
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.botlab.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 âThe medieval online strategy game - Tribal Wars 2â). 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
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!
it stops after 1 session , how can i increese it ?
and it farms only with 1 village
how can i fix it ?
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.