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#261

warrockblack wrote:

GkevinOD wrote:

  $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 ?

Oops I forgot the color:

$Pixel = PixelSearch(351*$x_ratio, 455*$y_ratio, 351*$x_ratio, 455*$y_ratio, 13645881, 20, 1, $HWnD)
Dec 23, 2014#262

samething @GkevinOD.
i think he still dont recognize popup window barrack.... only background pixels.

Dec 23, 2014#263

@warrockblack I don't understand what you mean by "background pixels".

So the bot trains the troops even though your camp is full? Does it open the barracks and starts clicking on the troops?

Dec 23, 2014#264

background i mean when a barrack pop appear, so background is the main screen.
When barrack pop appear the bot only ''see'' main screen pixels, he didint see pixel on popup, he cant target any color on popup just on main screen.
can u understand now ? :x (sry 4 bad english)
//
when camp is full, he still training, opening barracks and training... never stop.

Dec 23, 2014#265

Hi Guys,

I am able to setup the bot to runs without problem. The bot starts to zoom up and train the troops until the army camp is full. then, it starts to search for bases. here comes the problem, the bot search for first base and it just stops and idling without dropping any troops.

it always stops at first base, regardless the base has dark elixir or not. what is the error causing it?

I am using below script:
http://pastebin.com/0aYtn4G4

Dec 23, 2014#266

Hi Guys,

I am able to setup the bot to runs without problem. The bot starts to zoom up and train the troops until the army camp is full. then, it starts to search for bases. here comes the problem, the bot search for first base and it just stops and idling without dropping any troops.

it always stops at first base, regardless the base has dark elixir or not. what is the error causing it?

I am using below script:
http://pastebin.com/0aYtn4G4

I think your problem is exactly pixel search, on Gkevin script.

make sure you bs window is on 800x600 ?
u have GKevinOD.au3 on your folder (Include) or on folder on bot is compiled ?
maybe one of 2 steps can solve your problem.

Dec 23, 2014#267

warrockblack wrote:

fly3r01 wrote:

Hi Guys,

I am able to setup the bot to runs without problem. The bot starts to zoom up and train the troops until the army camp is full. then, it starts to search for bases. here comes the problem, the bot search for first base and it just stops and idling without dropping any troops.

it always stops at first base, regardless the base has dark elixir or not. what is the error causing it?

I am using below script:
http://pastebin.com/0aYtn4G4

I think your problem is exactly pixel search, on Gkevin script.

make sure you bs window is on 800x600 ?
u have GKevinOD.au3 on your folder (Include) or on folder on bot is compiled ?
maybe one of 2 steps can solve your problem.

i had the GKevinOD.au3 in the folder and the BS is 800x600 in size

Dec 23, 2014#268

Okay I will work on recoding Antidote's code to make it more efficient and with less errors due to new discoveries of new code that will help lessen the errors.
I will take in regards the @warrockblack and @fly3r01's problems first.

Dec 23, 2014#269

Oh I think I figured out the problem for both of yours, change the BlueStacks resolution to 860x720 because that is what the bot is set to.

Dec 23, 2014#270

wow. thanks all for making this bot working, i tested it just now, all is working great on windows 8.1 64bit, the problem is the bot will surrender the battle even when loot or attacking in progress, but for me its working great 🙂 thanks all and may GOD bless u all

This discussion is closed.