The Bytecode Club - Reverse Engineering Forum
Developing Bot - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Lobby (https://the.bytecode.club/forumdisplay.php?fid=1)
+--- Forum: Game Cheating, Botting & Reverse Engineering (https://the.bytecode.club/forumdisplay.php?fid=97)
+--- Thread: Developing Bot (/showthread.php?tid=155)



RE: Developing Bot - Antidote - 12-24-2014




RE: Developing Bot - harshil0014 - 12-24-2014

is anyone willing to help via teamviewer pls ? would be my best Christmas


RE: Developing Bot - Antidote - 12-24-2014

I'm not very comfortable doing teamviewer lol but can you tell me what your problem is?


RE: Developing Bot - harshil0014 - 12-24-2014

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


RE: Developing Bot - mikypark - 12-24-2014

(12-24-2014, 09:32 PM)Antidote Wrote:  @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)


RE: Developing Bot - Antidote - 12-24-2014

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

Code:
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 Smile


RE: Developing Bot - mikypark - 12-24-2014

(12-24-2014, 10:02 PM)Antidote Wrote:  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

Code:
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 Smile

it's already 75

Code:
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



RE: Developing Bot - harshil0014 - 12-24-2014

http://i.imgur.com/4i4eV1T.jpg

This is my problem pls help.


RE: Developing Bot - Antidote - 12-24-2014

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


RE: Developing Bot - harshil0014 - 12-24-2014

[Image: 4i4eV1T.jpg]