The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Developing Bot

Started by Antidote · Dec 5, 2014

1,033 replies21,297,466 viewsLocked
Dec 23, 2014#251

Hello sorry it took so long, I manage to find the problem and fixed it.
I actually rewrote some of Antidote's functions:

http://pastebin.com/0aYtn4G4

This should fix the problem!

TYVM... is now working will test a little longer but looks to be great!!

Dec 23, 2014#253

for the current version you dont need any exe files anymore.
just the bot.au3 and the GkevinOD.au3 thats all.

Tesseract has been removed so no exe anymore. if u wanna run the bot you need autoit though to either compile it or run it out of autoit!

Dec 23, 2014#254

@kojometa When you compile it to an EXE file, do you need AutoIT installed to be able to use it? Or will it run entirely by itself, or will it need the au3 files?

Dec 23, 2014#255

@GkevinOD, i think i was able to run the exe way before (when Antidote provided it) without having autoit installed.

Dec 23, 2014#256

@GkevinOD, i think i was able to run the exe way before (when Antidote provided it) without having autoit installed.

Did you need to have the au3 files or could you have run it without it?

Dec 23, 2014#257

anyone of you guys got problem here:
"$Pixel = PixelGetColor(351*$x_ratio, 455*$y_ratio, $HWnD)
If $Pixel = 13645880 OR $Pixel = 13645881 OR $Pixel = 13645888 OR $Pixel = 13645889 OR $Pixel = 13645890 OR $Pixel = 13645891 Then"
my bot is recognize the background pixel, not popup barrack pixel... :
i have camp fire full, and still training forever.

Dec 23, 2014#258

@GkevinOD Can confirm, your addition to the code has fixed the no DE village idle problem. Great work!

Dec 23, 2014#259

@warrockblack Try and change it from

  $Pixel = PixelGetColor(351*$x_ratio, 455*$y_ratio, $HWnD)
 If $Pixel = 13645880 OR $Pixel = 13645881 OR $Pixel = 13645888 OR $Pixel = 13645889 OR $Pixel = 13645890 OR $Pixel = 13645891 Then
$FullArmy = True
 EndIf

to

  $Pixel = PixelSearch(351*$x_ratio, 455*$y_ratio, 351*$x_ratio, 455*$y_ratio, 13645880, 20, 1, $HWnD)
 If IsArray($Pixel) Then
$FullArmy = True
 EndIf
Dec 23, 2014#260
  $Pixel = PixelSearch(351*$x_ratio, 455*$y_ratio, 351*$x_ratio, 455*$y_ratio, 20, 1, $HWnD)
 If IsArray($Pixel) Then
$FullArmy = True
 EndIf

sorry, but why color is 20 ?

This discussion is closed.