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 2, 2015#901

@cryzies

the config i use is

[search]
searchGold=100000
searchElixir=80000
searchDark=0
searchTrophy=0
conditionGoldElixir=1
conditionDark=0
conditionTrophy=0
[attack]
deploy=2
algorithm=0
mode=0
[troop]
composition=0
troop1=0
troop2=0
troop3=1
troop4=1
xBarrack1=472
yBarrack1=175
xBarrack2=564
yBarrack2=207
xBarrack3=246
yBarrack3=275
xBarrack4=423
yBarrack4=438
[general]
frmBotPosX=935
frmBotPosY=12
RandomFactor=0.1
MaxTrophy=1400

To my knowledge, Out of Sync error is not the bot's fault. I use to get this error, then I unistalled CoC from my phone or any device that can get updates so that only BlueStacks has CoC. Should stop Out of Sync mostly, I still get it sometimes though.

Cryzies

Jan 2, 2015#902

I used to get out of sync errors using old version of bluestacks. I updated to the latest version of bluestacks a couple weeks ago, and I haven't had any out of sync error yet up until today.

Jan 2, 2015#903

malicious wrote:

goondar wrote:

anhchang1102 wrote:

I get white window after run bot 1h. I use win 8.1 64bits and use Compiled x64

harshil0014 wrote:

Manually Barracks Located (check)
Screen Resolution from  bot file (check)

Not sure what else am missing,My Lappy is Slow.And bot is too much fast process for me.

Please help

As far as i can tell the bot can't handle less than 1000 throphy, it will keep dropping if u are below 1000,
it happens to me too with my second lvl 5 th base.
No problem at all with my TH9 base.

i did for the TH3, it work well. Try set the max trophy to what u have right now.

Worked fine, thanx!

Jan 2, 2015#904

Added dropping king and sometimes queen. (Can only drop queen if king is restored).

Script:
https://mega.co.nz/#!nc4U0Y7A!HZiaHDZN1yUUCTM34hXOESRHhD1Rsc2LsmLIb5VQu2w

Exe x32:
https://mega.co.nz/#!qNpgyISD!b9C56-f4igVhnx_Xr30HGy97Wma2wc5ecpC6lxSk1Kw

Awesome, Thank you, i will test it later 🙂 ''sometimes hihi 🙌 '' - ok Thats a good Choice dropping queen only when is king aviable 🙂

And what is with the collectors? No answer 🙁 Is that aviable or not? I think not or? (so i click self np 😉)

Jan 2, 2015#905

too bad i cant test it right now, im at work -.-
can u also make request troops and deploy please?

Jan 2, 2015#906

Added dropping king and sometimes queen. (Can only drop queen if king is restored).

Script:
https://mega.co.nz/#!nc4U0Y7A!HZiaHDZN1yUUCTM34hXOESRHhD1Rsc2LsmLIb5VQu2w

Exe x32:
https://mega.co.nz/#!qNpgyISD!b9C56-f4igVhnx_Xr30HGy97Wma2wc5ecpC6lxSk1Kw

@cryzies how to set trophy without lossing trophy bcoz bot attacking base dropping 1 troop and then surrender..plz help me to setup the bot without lossing trophy thanks my TH4 and my trophy before 790+ and now 691..thanks 🙂 sorry for my bad english

Jan 2, 2015#907

bushido-21 wrote:

cryzies wrote:

Added dropping king and sometimes queen. (Can only drop queen if king is restored).

Script:
https://mega.co.nz/#!nc4U0Y7A!HZiaHDZN1yUUCTM34hXOESRHhD1Rsc2LsmLIb5VQu2w

Exe x32:
https://mega.co.nz/#!qNpgyISD!b9C56-f4igVhnx_Xr30HGy97Wma2wc5ecpC6lxSk1Kw

@cryzies how to set trophy without lossing trophy bcoz bot attacking base dropping 1 troop and then surrender..plz help me to setup the bot without lossing trophy thanks my TH4 and my trophy before 790+ and now 691..thanks 🙂 sorry for my bad english

Check on other setting for Max trophy : set your limit there.

@cryzies : the king drop work flawlessly. thanks.

Jan 2, 2015#908

@GKevinOD

OutofSync errors may be due to Bluestacks Version like this one that doesn't work on 0.87 Bluestacks as recommended by other Commercial Robots like LF. They don't have the -p & -a so this will work:

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

However just like K3iroll, I updated my bluestacks - BlueStacks Rooted Version 0 9 6 4092 Modded ENGLISH =Dubs= - and found out the shortcut link was the same as yours so this worked:

Run($RunApp & " -p com.supercell.clashofclans -a com.supercell.clashofclans.GameApp")

And regarding the imagesearch files, unfortunately I couldn't find combined architypes. However, I checked version Bot Alpha v5.3 and found out that there might be complications on the structure used:

  If IsString($findImage) Then
   $result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
   If IsArray($result) = False Then $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
   Else
   $result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
   If IsArray($result) = False Then $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
   EndIf

This code may have called the 64bit dll first before it passed to 32bit thus creating errors for 32bit systems, I think.

So we may try something like this:

Switch @OSArch
   Case "X64"
 If IsString($findImage) Then
   $result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
 Else
   $result = DllCall("COCBot64.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
 EndIf
   Case "X86"
 If IsString($findImage) Then
   $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage,"ptr",$HBMP)
 Else
   $result = DllCall("COCBot32.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"ptr",$findImage,"ptr",$HBMP)
 EndIf

EndSwitch

I'm not sure but I hope it works. I couldn't test it because I don't have a 32bit pc with me.

Moreover about bluestacks menu, here is the imagesearch files including locating Bluestacks on desktop:
https://www.dropbox.com/s/05o9n4wln99b4ch/COCImgSearchRestart.rar?dl=0

Also about the zombiesearch update, I haven't finished it yet. I'll let you know.

Jan 2, 2015#909

after botting for more than 6 hours. lol xD

Jan 2, 2015#910

malicious wrote:

bushido-21 wrote:

cryzies wrote:

Added dropping king and sometimes queen. (Can only drop queen if king is restored).

Script:
https://mega.co.nz/#!nc4U0Y7A!HZiaHDZN1yUUCTM34hXOESRHhD1Rsc2LsmLIb5VQu2w

Exe x32:
https://mega.co.nz/#!qNpgyISD!b9C56-f4igVhnx_Xr30HGy97Wma2wc5ecpC6lxSk1Kw

@cryzies how to set trophy without lossing trophy bcoz bot attacking base dropping 1 troop and then surrender..plz help me to setup the bot without lossing trophy thanks my TH4 and my trophy before 790+ and now 691..thanks 🙂 sorry for my bad english

Check on other setting for Max trophy : set your limit there.

@cryzies : the king drop work flawlessly. thanks.

can i set to max 2000 or 1500 ? thanks

This discussion is closed.