@goondar: I meant the train button position when you click on boosted barracks but nvm, I've tested on my barracks and change the train button slightly to the overlap between boost and non-boost. It should be clicking fine for both now. Can you download the newer one (Bot 001) and see if it's able to train now?
@mikypark: yes I know this a known bug, the bot fails to read values once in a while (5% in my experience) thus it was stuck in the check loop. Have you tried the latest one on 1st page? What I did is implement a walk around such that it will skip to next base if fails to read value for 15 seconds. We need to wait for GkevinOD's fix for this. But for now, I figured a functional bot with 99% accuracy is better than 100% accuracy with possible error.
@DiviniT3a: yes G+E+T option would be easy, actually the current combination is just my own perference, if you guy can suggest better combinations (G+E+T, E+D, D+T, ...) I will update it in the code.
I will update newest one in the same link with numbering from 001 onwards (what is the standard convention?). Bot 001 fix issue with boosted barrack and edit search function a bit (lower waiting time before clicking next)
In this version if you noticed the bot output message "Out of Sync Error. Restart" but it's actually not out of sync or vice versa, Let me know so I will redo the timing
Developing Bot
Started by Antidote · Dec 5, 2014
is anyone willing to help via teamviewer pls ? would be my best Christmas
I'm not very comfortable doing teamviewer lol but can you tell me what your problem is?
My apologies if you feel that way.My screen resolution is as mentioned in this thread,also 2d rendering enabled,locations of barracks are set,but problem is when i click on start its trains troops,once troops are ready it dont attack,just keep repeating training troops loop,Any help is much appreciated
@mikypark: yes I know this a known bug, the bot fails to read values once in a while (5% in my experience) thus it was stuck in the check loop. Have you tried the latest one on 1st page? What I did is implement a walk around such that it will skip to next base if fails to read value for 15 seconds. We need to wait for GkevinOD's fix for this. But for now, I figured a functional bot with 99% accuracy is better than 100% accuracy with possible error.
I have the lastest version,now i tried again and the bot just skipped 40 times villages (5 with good resources)
Maybe 10 seconds is a bit too soon.. If you don't mind editing inside the code, just go to the code and looks for this part
Func CheckSearch()
Sleep(2000)
$GoldCheck = ""
$i = 0
While $GoldCheck = ""
$i += 1
If $i = 50 Then
If CheckScreenChange(0.25,0.25,0.75,0.75,500) Then
ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
$i = 0
Change "If $i = 50" to "If $i = 75" (it will wait for 15 seconds instead of 10). It'd be great if you can update me on how it does so I can update it in the main code for everyone 🙂
Maybe 10 seconds is a bit too soon.. If you don't mind editing inside the code, just go to the code and looks for this part
Func CheckSearch()
Sleep(2000)
$GoldCheck = ""
$i = 0
While $GoldCheck = ""
$i += 1
If $i = 50 Then
If CheckScreenChange(0.25,0.25,0.75,0.75,500) Then
ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
$i = 0
Change "If $i = 50" to "If $i = 75" (it will wait for 15 seconds instead of 10). It'd be great if you can update me on how it does so I can update it in the main code for everyone 🙂
it's already 75
Func CheckSearch()
Sleep(2000)
$GoldCheck = ""
$i = 0
While $GoldCheck = ""
$i += 1
If $i = 75 Then
If CheckScreenChange(0.25,0.25,0.75,0.75,500) Then
ControlClick ($HWnD, "","", "left", "1", 715*$x_ratio, 405*$y_ratio) ;Click Next
$i = 0

This is my problem pls help.
Can you describe what it does so I know exactly where the problem is? Did it constantly clicking next without outputting resource value?
