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
Jan 1, 2015#831

Tested V5 until V5.3.

By the way, what is the definition of dead base by the bot? Is it full collector? or something else?

The bot was skipping full collector bases when I'm using them.

Haven't got any hit of "dead base" so far.

Jan 1, 2015#832

happy new year to all..
thank you for this..

"this app is not install, please install the app and try again"

this message comes out when the bot detected that it was not on mainscreen..

i try to edit the script to the location of the clash of clan .lnk

"C:\Program Files (x86)\BlueStacks\HD-RunApp.exe" Android com.supercell.clashofclans com.supercell.clashofclans.GameApp"

but it will maximize bluestack..

please help thanks..

Jan 1, 2015#833

@shock Which version of the bot are you using because v5.3 fixes it I believe.

Jan 1, 2015#834

@GkevinOD im using v5.3 now, win7 64bit

that message will pop out when the bot detected its not on the mainscreen
im manually clicking the coc icon on bluestack and the bot will function again

Jan 1, 2015#835

So I tested the bot for about 45 minutes and there were some minor glitches. I had to watch and assist it but it was rather awesome watching the bot run.

  1. For some reason, when it was "training the troops" it kept bringing down the notification bar of Bluestack and i think it might have messed up finding the barracks as the logs kept saying Barrack 2 Not available etc.

2014-12-31 20:24:25 : Barrack 3 is not available
2014-12-31 20:24:30 : Training Troops Complete
2014-12-31 20:25:02 : Training Troops...
2014-12-31 20:25:15 : Training Troops Complete
2014-12-31 20:25:48 : Training Troops...
2014-12-31 20:26:01 : Training Troops Complete
2014-12-31 20:26:05 : ===============Searching For Base===============
2014-12-31 20:26:18 : Cannot locate Next button, Restarting Bot
2014-12-31 20:26:23 : Training Troops...
2014-12-31 20:26:36 : Training Troops Complete
2014-12-31 20:26:41 : ===============Searching For Base===============
2014-12-31 20:26:53 : Cannot locate Next button, Restarting Bot
2014-12-31 20:26:58 : Training Troops...
2014-12-31 20:27:10 : Training Troops Complete

  1. Also in the log above, after it trained the troops, it didnt find the "Attack" button so it had to reset itself because it couldnt find the "Next" button. It looped itself third times, so I just assisted it and hit Attack button first to start Searching for the base.

Suggestion.

I think TH detection would greatly help with the Bot. If it could detect TH, you could have a TH8 attack Th7, etc. (The Bully Mode)

Jan 1, 2015#836

Ran into an odd issue earlier. I was using v5.2 bots without a problem until a couple hours ago. It clicked each barracks without issue but failed to click the "Train Troops" button. It said Barrack is not available for each of them. After I went through the process of locating the barracks manually, it trained the troops fine however after attacking it again failed to train troops. I tried restarting the bot, deleting my config file, and restarting blue stacks to no avail. I even tried upgrading to v5.3, and downgrading to v5. I tried locating barracks after each but again couldn't fix the issue. Finally I restarted my computer which didn't solve the issue until I located the barracks manually again. It has been working absolutely fine since. It really isn't an issue since it was fixed with a restart but I thought I would let you know. I'll post if I run into it again and can identify what seemed to cause it.

Jan 1, 2015#837

@shock I'll find an approach to restarting the bot and running clash of clans that will work for everyone.

@korpsx Did you try to relocate your barracks? Also can you post your config.ini so I can see what may have caused the problem.
As for the bot unable to locate the Next button, I am confused of what you said. Does the bot click the buttons on the bottom left to find a match or does it just not locate the "Next" button? Also if it does find a match, please post a screenshot of when the bot starts to fail (when the next button is available.)

Jan 1, 2015#838

@GkevinOd

Here's the Config file you requested to see.
[search]
searchGold=100000
searchElixir=100000
searchDark=0
searchTrophy=0
conditionGoldElixir=1
conditionDark=0
conditionTrophy=0
[attack]
deploy=2
algorithm=0
mode=0
[troop]
composition=1
troop1=0
troop2=0
troop3=1
troop4=1
xBarrack1=176
yBarrack1=235
xBarrack2=213
yBarrack2=201
xBarrack3=247
yBarrack3=187
xBarrack4=273
yBarrack4=166
[general]
frmBotPosX=907
frmBotPosY=23
RandomFactor=0.1
MaxTrophy=3000

Also let me clarify on the last "Next" part.

So The Bot finishes training the Troops. The next sequence is to find the "Attack" Button on the left. But the boot jumps straight into Searching for a base. (The bot fails to search for a base in other words) It never has a chance to find the page with "Next". Only when I hit the Attack button to start searching for a base, the bot started to respond and locate the base with the loot specified.
I'm not sure if that makes more sense.

Jan 1, 2015#839

@GkevinOD sir, lfrobot i think using image or pixel search when coc lag or bluestack restart, their bot close first the running coc on the background and then start again coc.

Jan 1, 2015#840

Okay it happened again for me. No Idea what the issue is. I experienced the "Cannot locate Next button, Restarting Bot immediately" problem before it so I don't know if that has anything to do with it.

This discussion is closed.