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 24, 2014#421

thank you!! have a nice time 🙂

no its not - just the training works in background

sounds are not implemented yet

Dec 24, 2014#422

JUST question.
Is it impossible to make the Bot run in background.

im not sure if all process can run in background, but i was using it and i put it in background, minimize the bot and let all do it alone. after a quite while the bot attack a few villages, but i dont get so much loot (arround 3k-9k) so, im not sure

Dec 25, 2014#423

Thanks antidote!
The bot is working awesome!
But I wondered why it doesn't deploy all the troops, I have 200 archers, it only deploy 120 and I have 80 more after match. just tested it btw. Will leave it running
HAPPY HOLIDAYS!

Dec 25, 2014#425

@mikipark: I believe for some reason it couldn't read value for you thus the constant skipping. A few people also face the same problems but I haven't been able to isolate the issue yet. Hope you will decide to give it another try in later version once we iron out all issues 😉

@korpsx: the higher one is the newer, so starts with 001, then 002,.. the one without number is the first I uploaded.

I just updated the code using GkevinOD's function to account for color variation accross different computers, which affects both zoom out and check full army function. It runs fine on both of my machines but I need to see if it works for you guys too. Hope it will fix the constant training and zoom out issue a few people are having. Also I add a folder Loots with screenshots of each of your raids as well. It was kojometa's idea and I find it pretty nice to take a look at all of your loots after letting it run for hours :D

Same link, Bot 002.au3 and Bot 002.exe: http://ge.tt/6Twq4O72

Bot 002 finally manages to recognize that the army is full and go to the attacking mode.

However, when I first started Bot 002, locate the 4 barracks and then it began to train. It clicks on the first barrack, rapidly clicking on Archer, and then suddenly the Barrack window closed, and it rapidly clicking on my wall. This happened on all 4 barracks - rapidly clicking on the Archer/Barbarian, and then suddenly the window closed and it's clicking on the wall.

But since all my barracks were full, the bot recognized that, then it went to attack. The attacking was OK. The Bot found the village, start dropping troops, wait for a while and then it went back home.

The weird things is, when the bot was home this time, and started to train, everything was OK, no wall clicking while training.

Dec 25, 2014#426

I've may or may not have fixed some of the issues, but I got it working pretty successfully for my computer and I was hoping some success in other computers aswell.

Download latest version here (Bot 003):
https://mega.co.nz/#!eEQCwJbC!hOv-uu5M1jn04CWYFcHYNV9DLRvdvRcnn7DXRXUaLeo

Tried Bot 003. Below are my reports:

1- Training for me is still hit and miss. Some time the clicking on the army is OK, but most of the time what happens is that during the rapid clicking of Archer/Barb the barrack window closed, but the rapid clicking is still there, hence it was rapidly clicking on my wall instead. I believe it is clicking on the same position of Archer/Barb, but due to the barrack window is not there, that's why it hit the wall.

2- Resource Collection is good. No issue for me.

3- After Army is full, it started attacking, dropping and finishing the raid, went back to home without any issue.

4- The attacking pattern need to be improved if we want to let the bot running on its own. The current pattern is not really good. I believe a good pattern is either dropping is V-shape ( 2 sides) or 4 sides all together in order to maximize the possibility of getting maximum loot possible and getting a star.

Dec 25, 2014#427

Guys and you can make an attack from two sides in lazpressing ???
First throws gigs then barbarians further archers and it would be great.

Dec 25, 2014#428

@k3iroll Thanks for the feedback. Regarding your issue of clicking on walls and such, have you tried to reset the barrack positions? You can do that by deleting the config.ini and restarting the bot. Make sure you click the barrack correctly. I will work on making the location of the barrack to be automatic in the near future.

I will also try to implement an attack pattern that attacks on all sides to maximize the loot.

Dec 25, 2014#429

@k3iroll Thanks for the feedback. Regarding your issue of clicking on walls and such, have you tried to reset the barrack positions? You can do that by deleting the config.ini and restarting the bot. Make sure you click the barrack correctly. I will work on making the location of the barrack to be automatic in the near future.
I will also try to implement an attack pattern that attacks on all sides to maximize the loot.

Thanks Kevin.
Just to let you know that I've added the "SoundPlay" code to notify once the enemy has been found. The sound file is one of the wav files that can be found an all Windows 7 OS media folder.

GUICtrlSetData($Results, "Enemy Found!" & @CRLF, -1)
SoundPlay(@WindowsDir & "\media\Festival\Windows Exclamation.wav", 1)

I'm just a noob in programming, if you are interested in implementing those sound , prolly you can add sound On/Off button to make it much better.

Dec 25, 2014#430

Gkevinod, may i know how to set the value for resolution of 800x600 using your getgold function?

This discussion is closed.