@kojometa: just tested out your script. The count down timer is neat, actually I did the same with TimerInit and TimerDiff, but I agree with vanadium, letting the script sleep through the whole time is quite counter intuitive, just a temporary measure til we can find better solut
Dec 21, 2014I'm still learning everything from scratch like many of you guys here (luckily Autoit has very smooth learning curve), so mistakes are here and there and I'm constantly updating the code if I find better ways to do it. Anw since many people contribute now, is there anyway we can
Dec 21, 2014@GkenvinOD: If you manage to optimize it to less than a second it would be a very valuable function (100% accuracy, independent of tesseract, image files,...). If you need any assisstance I'm happy to help 🙂 @AtoZ: Yes when I first started I wasn't fully familiar with coord, pixe
Dec 21, 2014It got stuck in function ReturnHome() I think. For now I can't figure out how to determine when battle ends so the bot just wait for a specific amount of time before click Return Home. I will try to fix that
Dec 20, 2014@kitsaboy: might be because you use a different resolution. change BlueStacks resolution to 860x720 and launch the game first @GkevinOD: I found that for numbers the script cannot match, changing x and y to +52, +93 helps it to match. And accuracy is always 100%. By alternating b
Dec 20, 2014@GkevinOD: just tested out your script. It won't work with all numbers for me but for certain numbers it get 100% accuracy consistently. I noticed numbers starting with 1,2,9 are more likely to match, while 6 or 4 is a bit tricky. After reading your script I figured this is how y
Dec 20, 2014sure, here's the script, i'll be updating this link with latest one so you guys can easily keep track https://pastebin.com/ry8RJEqr
Dec 20, 2014I've looked through all errors and make modifications to the code. Here's the latest installer: http://www22.zippyshare.com/v/55848174/file.html Source: https://pastebin.com/ry8RJEqr Basically what it does is extract Tesseract-OCR, BS-Resolution folders and Source.au3. I've inclu
Dec 20, 2014Sorry guys I've been caught up with work the last few days but finally have time to code now. Really happy to see lots of you guys contribute :D @AtoZ: How's your progress with imagesearch? I noticed all image file in coc-en folders with red background. Did you manage to use imag
Dec 20, 2014@MDMA: right I didn't think of that. Maybe I should switch back to absolute value instead of Pixelcheck as it's not reliable enough. @GeoByte: I think it's because your village hasn't been zoomed out completely. That's why you got the message "you cannot deploy troops in the red
Dec 19, 2014here'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
Dec 19, 2014@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..
Dec 19, 2014