Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
v 5.4.0
#91
Bugs that I encountered after running the bot for 2-3 hours:

1- Cannot locate next button, restarting bot, checking main screen - nothing happens. The bot just sits there doing nothing.

2- White screen
#92
White screen after a few hours as well.
#93
try this https://the.bytecode.club/showthread.php...19#pid2619
#94
Can people really try to read post before posting... also for bug reporting. Please use title format and post them in Bug Reporting Section.... So that every can keep track and see the solution easily...

Some has been doing so... thank you... rest please do so...
#95
[1:45:50 PM] ~~~~Welcome to COC Bot Pre-Alpha v5.4!~~~~
[1:45:50 PM] Au3 Script running on X64 system
[1:45:50 PM] Bot is starting...
[1:45:51 PM] Locating Barracks...
[1:46:08 PM] -Locating Complete-
[1:46:08 PM] -Barrack 1 = (467,179)
[1:46:08 PM] -Barrack 2 = (527,200)
[1:46:08 PM] -Barrack 3 = (604,229)
[1:46:08 PM] -Barrack 4 = (634,293)
[1:46:10 PM] Training Troops...
[1:46:12 PM] Barrack 1 is not available
[1:46:16 PM] Barrack 2 is not available
[1:46:19 PM] Barrack 3 is not available
[1:46:23 PM] Barrack 4 is not available
[1:46:24 PM] Training Troops Complete
[1:46:25 PM] ~~~Waiting for full army~~~
[1:46:56 PM] Training Troops...
[1:46:58 PM] Barrack 1 is not available
[1:46:58 PM] Bot has stopped
[1:47:01 PM] Bot has stopped
#96
#97
You can test this quick fix for locating train troop button issue (Barrack not available message)

Change this line in Func Train()
    AUTOIT Programming
  1. Local $TrainPos = _PixelSearch(390, 580, 665, 665, Hex(0x687DA1, 6), 10) ;Finds Train Troops button



Or refer to this post: https://the.bytecode.club/showthread.php?tid=236
#98
Dear GKevinOD & Antidote,
i have test your bot v 5.4.0
i have some issue that dropping tropies does not work in hide mode, as far just that the issue i get beside dead base search is also not working,
and also antidote fix is working like charm to my barracks when its not at boost mode,
and i also change vilagesearch() function to make it show for searching a dead base, but i think you can do better,
Code:
Func VillageSearch() ;Control for searching a village that meets conditions
While 1
SetLog("===============Searching For Base===============")
$SearchCount = 0
While 1
If _Sleep(1000) Or $RunState = False Then ExitLoop (2)
GetResources() ;Reads Resource Values
If $Restart = True Then ExitLoop (2)
If CompareResources() Then
If $iradAttackMode = 0 Then
;==================hervian
If $Hide = true Then
GUICtrlSetData($btnHide, "Hide")
WinMove("BlueStacks App Player", "", $botPos[0], $botPos[1])
;$Hide = true;"====
EndIf
;==============hervian
If ZombieSearch() Then
SetLog("~~~~~~~Dead Base Found!~~~~~~~")
If $Hide = true Then
GUICtrlSetData($btnHide, "Show")
$botPos[0] = WinGetPos("BlueStacks App Player")[0]
$botPos[1] = WinGetPos("BlueStacks App Player")[1]
WinMove("BlueStacks App Player", "", -32000, -32000)
$Hide = True
EndIf
ExitLoop
Else
SetLog("~~~~~~~Not dead base, skipping~~~~~~~")
Click(750, 500) ;Click Next
If $Hide = true Then
GUICtrlSetData($btnHide, "Show")
$botPos[0] = WinGetPos("BlueStacks App Player")[0]
$botPos[1] = WinGetPos("BlueStacks App Player")[1]
WinMove("BlueStacks App Player", "", -32000, -32000)
$Hide = True
EndIf
EndIf
Else
ExitLoop
EndIf
Else
Click(750, 500) ;Click Next
EndIf
WEnd
SetLog("===============Searching Complete===============")
ExitLoop
WEnd
EndFunc ;==>VillageSearch

i already that, its only show a sec then back to hide, maybe its distrubing, but still can use while browsing or something else,

Best Regrads,
Hervianzhou
#99
Locate Barracks and Train Troops are Fixed now.
But I found another problem about the "Hide" feature
When the bot is running, I tried to click the "Hide" button and then after few seconds click "Show"
Then, click one of my barracks, then "Boost all"
Then after, this happens on the bot.
The behavior of Bluestacks was like automatically minimizing the actual COC App in Bluestacks.
Then after few seconds, it maximize the COC Window.
Then after few minutes, the bot is NOT actually running.
That's why I decided to "Stop" the bot.
[9:07:53 PM] ~~~~Welcome to COC Bot Pre-Alpha v5.4!~~~~
[9:07:53 PM] Executable running on X64 system
[9:07:53 PM] Bot is starting...
[9:07:53 PM] Trying to get to main screen
[9:11:38 PM] Bot has stopped
[9:11:38 PM] Bot has stopped
In this case, I need to restart the BS and BOT.
I guess the problem was in Background feature.

---------
This is another scenario, hope you can reproduce this.
After I restarted the BS and Bot from the scenario above.
I ran the bot and bs normally.

Then, train() loops, full army, the village search and attack.
After returning home.
The problem above was happened again (Note: I didn't click the "Hide" button in this scenario)
[9:18:04 PM] Training Troops...
[9:18:24 PM] Training Troops Complete
[9:18:25 PM] ~~~Waiting for full army~~~
[9:18:55 PM] Training Troops...
[9:19:08 PM] Training Troops Complete
[9:19:10 PM] Trying to get to main screen
[9:22:48 PM] Bot has stopped
[9:22:51 PM] Bot has stopped

I think, it's better to report this to Bugs section. I'll make new thread for this.
tried implemented king drop and working but request trop not working.

here im attach if anyone want to use.

5.4 with king drop
 


Forum Jump:


Users browsing this thread: 2 Guest(s)

About The Bytecode Club

We're a community focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website