Thread Rating:
  • 7 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Developing Bot
The most important thing is your village has to be zoomed out maximum, as all co-ordinate relies on that. The bot will do the zoom out itself, but sometimes it might fail to zoom out all the way, so better you zoom out first to reduce chance of error
I'm using the no wait version. So this is what happens when I use the bot. Looks pretty good!! Smile

After starting the bot it zooms out and finds my barracks (after I configured it) and trains troops. It starts searching for attacks, but it stops at the very first base it finds without meeting the gold and elixir requirements.

At the base, I get a message immediately on CoC "you cannot deploy troops in the red area".

No troops are sent out during the duration of the attack timer and it doesn't press next.

I wouldn't even know how to start making a bot Tongue , can't believe you guys are developing one. I'll continue to test and post my findings Smile

Thanks for all your hard work :D
here's the script: https://pastebin.com/ry8RJEqr
I did make sure to get all coord auto adjusted to BS resolution so you can try first see if it works for you. If you want to compile from the script you must make sure to have Tesseract.au3 and Tesseract-OCR in the right folder for it to run.
First of all thx for this bot Antidote .
i tested the .exe file ( without waiting)
my bluestack running on 860x720 resolution
After saving the coordinates for barracks it starting to find a enemy but always hangs up on first enemy he find and doing nothing

Its the same problem like geobyte have
(12-19-2014, 10:12 AM)Antidote Wrote:  @AtoZ: great, how did you do it? Last time I tried creating my own set of digits bmp from the game but still fails imagesearch. Seems like it's very picky with bmp not created by Autoit..

I was experimenting a lot of things before I was able to make it work. I even tried silly things like capturing image into a GUI window and see if it will locate. I also downloaded a lot of ImageSearch au3 and dll versions that I found. Up til now I did not know which made It work but probably it's the HBITMAP version of imagesearch dll along with au3.

I only managed to locate the gem values in the coc main screen in BMP and PNG format. It's really quite hard to use imagesearch as it is really picky on the image. Image size is also a big concern. I browsed again on the coc-en files and found out a lot of similar numbers of different sizes. Btw the folder is organized as per window or use (ex. battle, camp, troop donation). And another concern is the snowfall but we can lock image search in a loop.
 


Forum Jump:


Users browsing this thread: 6 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website