The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

🧱 5.4.2.5.2 - Better Troops Deployment (LF Style), Fixed Train Troops

Started by safar46 · Jan 25, 2015

546 replies7,799,713 viewsLocked
Feb 2, 2015#381

👍

@safar46 another great release ..
Two littles issues .
1- Func LocateCollectors()  -> if you don´t have config.ini that func enter in loop and don´t save , just remove "while 1" and it´s Ok

 Func LocateCollectors()
SetLog("Locating Collectors...")
Local $MsgBox
While 1
For $i = 0 To 16

2 - PrepareAttack() or DropCC-> don´t work for me  , this photo it´s from previous version but i have the same error today with last version. Don´t detect the Clan Castle , but try to deploy but nothing .... in IdentifyTroopKind() i think it´s everthing ok ....

i resolved the issue CC ..

It´s not in PrepareAttack() or DropCC()  is in Func algorithm_AllTroops() i change :

dropCC($BottomRight[3][0], $BottomRight[3][1], $CC)

put this :

 If $CC <> -1 Then dropCC($BottomLeft[3][0], $BottomLeft[3][1], $CC)

Idea about Barcher attack algorithms
After drop first wave of barbarians (in top left) then we need to drop first wave archers (in same side) and do it again for another. I think this much better than current algorithms 🙂

U can do it  and test 😉
Find the function All Troops

Func algorithm_AllTroops()
.
.
.
 ========= Feel free to experiment something else ===============================
.
.

@safar46 THANKS FOR ALL NEW FEATURES AND UPDATES   👍

Feb 2, 2015#382

How the bot determines which bases are deadbase or not ?
Sometimes it skips inactives ( full collectors)  n sometimes get false positive. Most of the time works ok though.
From my observation if there are upgrading collectors it can skips the base evn if dead and if there is on full collector in middle of base n all others empty it can attack it as db.

After comparing determines images on the folder \images\ and village found , Func ZombieSearch() and checkDeadBase Variables.
@AtoZ has made an effort to improve , follow this topic :
https://the.bytecode.club/showthread.php?tid=213

Feb 2, 2015#383

guyz, how the new feature "wait for 10 mins when another device open the village"?

because when i trying it to open on my other device it does not wait 10 mins . it just reloading and reloading and i cant open my coc whenever i want to visit my coc on my phone when i left it botting on my pc.

Can anyone help me ?

i GUESS ITS NOT WORKING THIS FEATURE. please . can someone check this ? :"(

Feb 2, 2015#384

guyz, how the new feature "wait for 10 mins when another device open the village"?

because when i trying it to open on my other device it does not wait 10 mins . it just reloading and reloading and i cant open my coc whenever i want to visit my coc on my phone when i left it botting on my pc.

Can anyone help me ?

i GUESS ITS NOT WORKING THIS FEATURE. please . can someone check this ? :"(

"another device function not available now, because its buggy"

Answer : https://the.bytecode.club/showthread.php?tid=441&pid=5587#pid5587

Feb 2, 2015#385

tnx for informing me . i hope it fix

Feb 2, 2015#386

@safar46 can you make the troops just attacking the outside th? after that the bot make stop itself or end battle?
sorry for my bad english.

@Safar46 please help us 🙁

Feb 2, 2015#387

@load66 They will 🙂
Func checkObstacles() looks good  , maybe anotherdevice.bmp to comparte  .... i will try change dthe image.

Func checkObstacles() ;Checks if something is in the way for mainscreen
;~ _CaptureRegion()
;~ If _ImageSearchArea($AnotherDevice, 0, 163, 298, 568, 364, $Anotherx, $Anothery, $Tolerance1+30) Then ;Check for another device use
;~  SetLog("Another device is logging in, wait for 10 minutes...")
;~ If _Sleep(300*2000) Then Return ; 10 Minutes
;~ Click(416, 399)
;~ Return True
;~ EndIf
Feb 2, 2015#388

hiimwalker wrote:

Karino wrote:

@safar46 can you make the troops just attacking the outside th? after that the bot make stop itself or end battle?
sorry for my bad english.

@Safar46 please help us 🙁

Guys... can you imagine that @safar46 has a normal life too?!
He has weigh enough to do... He gives us even more than one or two updates a day...
Stay calm and be thankful for what u have!!!

@safar46
Tested your version 5.4.2.4.2 all night long... No bugs for me (without background function and just farming using BArch)!
Just an awesome work and incredible fast development!!! Thank you so much!

Feb 2, 2015#389

somesome know how to solve set collector continue after set until 17 collect back again to collect 1 how to stop it thanks advance

Feb 2, 2015#390

DrImmo wrote:

hiimwalker wrote:

Karino wrote:

@safar46 can you make the troops just attacking the outside th? after that the bot make stop itself or end battle?
sorry for my bad english.

@Safar46 please help us 🙁

Guys... can you imagine that @safar46 has a normal life too?!
He has weigh enough to do... He gives us even more than one or two updates a day...
Stay calm and be thankful for what u have!!!

@safar46
Tested your version 5.4.2.4.2 all night long... No bugs for me (without background function and just farming using BArch)!
Just an awesome work and incredible fast development!!! Thank you so much!

this.

This discussion is closed.