Skip to content

Commit e35af09

Browse files
committed
* **V6.2**
* New *** Dock Mode *** for MEmu, BlueStacks, BlueStacks2 and Droid4X with Android Shield to protected Android from user mouse and keyboard input when bot is running Use Dock/Undock button to dock & undock or Bot Options / Auto Align "DOCK: Android into Bot" for persistent docking (Offset can be blank so no re-positioning happens) For Windows 8 and later shield layer marks Android screen when shield is active or inactive (with and without focus) using transparent overlay Upgrades during locate are marked with yellow circle * Add smart "idle" training time time management to reduce online time. Can close CoC and/or emulator while training based on shield status, troops train time remaining, spells wait time, and/or hero wait time. Bot checks Clan Castle remaining time till next donation and will reduce "close CoC" time to help keep CC full. Bot GUI controls are enabled when app or emulator are closed. * New and improved weak base search capabilties. Uses new ImgLoc image detection DLL and image library. Adds X-Bow, Inferno, and Eagle defense options. * Add new feature to allow users to create custom elixir and dark troop training order in GUI * Add upgrade, train, donate, and deploy support for all new troops/spells: Bowler[bowl], Baby Dragon[babyd], Miner[mine], Clone Spell[cspell], & Skeleton Spell[skspell]. * Add ability to enable random click button locations (ArmyTrainButton, AttackButton, FindMatchButton, NextBtn) * Add "Wait for Spells" search start filter (Based on MOD feature from @mikemikemikecoc) * Add Close CoC or emulator to Attack Scheduler feature * Add random time feature to disable attacks in Attack Scheduler feature * Add Daily Attack controls for user to limit attacks per day (Part of new Attack Scheduler) * Add estimated completion time data for all active upgrades in Upgrade Buildings tab * Add splash screen during bot initialization by @mikemikemikecoc * Updated barracks mode training and troop removal clicking to use existing GUI train click delay to allow users ability to reduce click speed for more human like troop training * Improve pause/stop button response during CSV attacks * Improve OCR on maintenance break time to include "hour" (or more) maintenance break messages * Fix Android True Background Mode screencap when temp. disabled due to errors (caused bot to stop working after Android reboot) * Fix pause behavior when stopped in pause state and started again * Fix drop CC Schedule to operate properly due missing enable check box * Fix Dead Base smart attack always enabled, now operates based on GUI setting * Fix "Restart Every" search limit GUI setting not enabled properly at first start * Fix Profile handling for fresh bot install and deleting existing profile * Improve bot log not changing font of existing logged text * Improve bot launch and close time * Improve GUI refresh of divider resizing general log and attack log * Improve Android Window arrangement by restoring last window position * Improve restarting Android when process terminates (now also check when taking screen shot from Android) * Improve error logs when Android instance not found as specified via command line arguments * Improve drop trophy cycle time when using hero to reduce damage received. Changed return home delay to dynamic loop, reversed hero drop order to optimize for TH10/11, and reduce delays between drop & activation. * Minor User Interface changes to Bot Options tab: Moved "Village Search Delay" to Search & Attack Options tab, Moved "Train Click Delay" to Train Army Options tab; as they seem better aligned with those tabs. * New scroll to waters and zoom-out ADB scripts for slower computer
1 parent e0e3886 commit e35af09

214 files changed

Lines changed: 88295 additions & 4713 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,43 @@
1+
* **V6.2**
2+
* New *** Dock Mode *** for MEmu, BlueStacks, BlueStacks2 and Droid4X with Android Shield to protected Android from user mouse and keyboard input when bot is running
3+
Use Dock/Undock button to dock & undock or Bot Options / Auto Align "DOCK: Android into Bot" for persistent docking (Offset can be blank so no re-positioning happens)
4+
For Windows 8 and later shield layer marks Android screen when shield is active or inactive (with and without focus) using transparent overlay
5+
Upgrades during locate are marked with yellow circle
6+
* Add smart "idle" training time time management to reduce online time.
7+
Can close CoC and/or emulator while training based on shield status, troops train time remaining, spells wait time, and/or hero wait time. Bot checks Clan Castle remaining time till next donation and will reduce "close CoC" time to help keep CC full. Bot GUI controls are enabled when app or emulator are closed.
8+
* New and improved weak base search capabilties.
9+
Uses new ImgLoc image detection DLL and image library. Adds X-Bow, Inferno, and Eagle defense options.
10+
* Add new feature to allow users to create custom elixir and dark troop training order in GUI
11+
* Add upgrade, train, donate, and deploy support for all new troops/spells: Bowler[bowl], Baby Dragon[babyd], Miner[mine], Clone Spell[cspell], & Skeleton Spell[skspell].
12+
* Add ability to enable random click button locations (ArmyTrainButton, AttackButton, FindMatchButton, NextBtn)
13+
* Add "Wait for Spells" search start filter (Based on MOD feature from @mikemikemikecoc)
14+
* Add Close CoC or emulator to Attack Scheduler feature
15+
* Add random time feature to disable attacks in Attack Scheduler feature
16+
* Add Daily Attack controls for user to limit attacks per day (Part of new Attack Scheduler)
17+
* Add estimated completion time data for all active upgrades in Upgrade Buildings tab
18+
* Add splash screen during bot initialization by @mikemikemikecoc
19+
* Updated barracks mode training and troop removal clicking to use existing GUI train click delay to allow users ability to reduce click speed for more human like troop training
20+
* Improve pause/stop button response during CSV attacks
21+
* Improve OCR on maintenance break time to include "hour" (or more) maintenance break messages
22+
* Fix Android True Background Mode screencap when temp. disabled due to errors (caused bot to stop working after Android reboot)
23+
* Fix pause behavior when stopped in pause state and started again
24+
* Fix drop CC Schedule to operate properly due missing enable check box
25+
* Fix Dead Base smart attack always enabled, now operates based on GUI setting
26+
* Fix "Restart Every" search limit GUI setting not enabled properly at first start
27+
* Fix Profile handling for fresh bot install and deleting existing profile
28+
* Improve bot log not changing font of existing logged text
29+
* Improve bot launch and close time
30+
* Improve GUI refresh of divider resizing general log and attack log
31+
* Improve Android Window arrangement by restoring last window position
32+
* Improve restarting Android when process terminates (now also check when taking screen shot from Android)
33+
* Improve error logs when Android instance not found as specified via command line arguments
34+
* Improve drop trophy cycle time when using hero to reduce damage received. Changed return home delay to dynamic loop, reversed hero drop order to optimize for TH10/11, and reduce delays between drop & activation.
35+
* Minor User Interface changes to Bot Options tab: Moved "Village Search Delay" to Search & Attack Options tab, Moved "Train Click Delay" to Train Army Options tab; as they seem better aligned with those tabs.
36+
* New scroll to waters and zoom-out ADB scripts for slower computer
37+
138
* **V6.1.4**
239
* Improve Freeze, Poison, and Haste spell training detection
3-
* Improved donaton detection images for Healer, Barbarian, Lava Hound, Wizard, Poison, Earthquake, Haste.
40+
* Improved donaton detection images for Healer, Barbarian, Lava Hound, Wizard, Poison, Earthquake, Haste.
441
* Fix manual TH locate warning error creating confusion on proper button to choose
542
* Fix variable not declared error in attack planner
643
* Reduce (hopefully fixed) resource collection errors with new match images
@@ -10,6 +47,9 @@
1047
* Improve troop deploy click speed
1148
* Improve click speed for MEmu, Droid4X and Nox (adb.click.enabled now by default disabled (0) in config.ini, ensure mouse is not over Android Window!)
1249
* Improve Android Emulator launch by closing Windows WerFault AppCrash Window preventing launch of emulator
50+
* Improve bot stop not changing window focus
51+
* Fix Android infinite loop trying to start Android that cannot be launched
52+
* Fix BlueStacks 2.3.x relaunch when started as "BlueStacks App Player"
1353
* Fix "full barracks" pixel check fail that created minor troop train problems
1454
* Updated French language translation by @Boju
1555
* Improve text tips on new "search start if" features to reduce confusion with existing features
@@ -19,9 +59,6 @@
1959
* Fix upgrade building feature to properly read upgrade time when used on heroes
2060
* Fix continuous Hero upgrade feature stopping hero upgrades when lab needed elixir but code thought it needed DE
2161
* Fix unreliable detection on "Another Device Connecting" error in BlueStacks.
22-
* Fix Android infinite loop trying to start Android that cannot be launched
23-
* Fix BlueStacks 2.3.x relaunch when started as "BlueStacks App Player"
24-
* Improve bot stop not changing window focus
2562
* Fix detection issues on shield or guard that caused errors in PBT management and Unbreakable mode
2663
* Improve manual TH detection process to allow user to reset bot when locating TH due upgrade
2764
* Fix dark elixir spell training issues caused by pixel check issue
@@ -31,7 +68,7 @@
3168
* Add Language Bahasa Indonesia (@TheRevenor)
3269
* Update German.ini file (@Lindwurm2k/@Cosote)
3370
* Improve rage spell detection in training overview window when using BS medium Gfx mode
34-
* Adjust some default bot values. Some to help behave less like a bot: added 20ms to training click delay, others added random village search delay 1-4 seconds.
71+
* Adjust some default bot values. Some to help behave less like a bot: added 20ms to training click delay, others added random village search delay 1-4 seconds.
3572

3673
* **V6.1.2**
3774
* Add taiwan language translation by @flowclouds

COCBot/GUI/MBR GUI Control Attack Standard.au3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ EndFunc ;==>chkRandomSpeedAtkDB
5151

5252
Func chkSmartAttackRedAreaDB()
5353
If GUICtrlRead($chkSmartAttackRedAreaDB) = $GUI_CHECKED Then
54-
$iChkRedArea[$LB] = 1
54+
$iChkRedArea[$DB] = 1
5555
For $i = $lblSmartDeployDB To $picAttackNearDarkElixirDrillDB
5656
GUICtrlSetState($i, $GUI_SHOW)
5757
Next
5858
Else
59-
$iChkRedArea[$LB] = 0
59+
$iChkRedArea[$DB] = 0
6060
For $i = $lblSmartDeployDB To $picAttackNearDarkElixirDrillDB
6161
GUICtrlSetState($i, $GUI_HIDE)
6262
Next

COCBot/GUI/MBR GUI Control BOT Options.au3

Lines changed: 22 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ Func cmbLanguage()
5757
MsgBox("", "", GetTranslated(636, 71, "Restart Bot to load program with new language:") & " " & $aLanguageFile[$sLanguageIndex][1] & " (" & $sLanguage & ")")
5858
EndFunc ;==>cmbLanguage
5959

60+
Func chkUseRandomClick()
61+
If GUICtrlRead($chkUseRandomClick) = $GUI_CHECKED Then
62+
$iUseRandomClick = 1
63+
Else
64+
$iUseRandomClick = 0
65+
EndIf
66+
EndFunc ;==>chkUseRandomClick
67+
68+
Func chkUpdatingWhenMinimized()
69+
$iUpdatingWhenMinimized = (GUICtrlRead($chkUpdatingWhenMinimized) = $GUI_CHECKED ? 1 : 0)
70+
EndFunc ;==>chkUpdatingWhenMinimized
71+
72+
Func chkHideWhenMinimized()
73+
$iHideWhenMinimized = (GUICtrlRead($chkHideWhenMinimized) = $GUI_CHECKED ? 1 : 0)
74+
TrayItemSetState($tiHide, ($iHideWhenMinimized = 1 ? $TRAY_CHECKED : $TRAY_UNCHECKED))
75+
EndFunc ;==>chkHideWhenMinimized
76+
6077
Func chkScreenshotType()
6178
If GUICtrlRead($chkScreenshotType) = $GUI_CHECKED Then
6279
$iScreenshotType = 1
@@ -219,65 +236,12 @@ Func chkdebugOCRDonate()
219236
SetDebugLog("chkdebugOCRDonate " & ($debugOCRdonate = 1 ? "enabled" : "disabled"))
220237
EndFunc ;==>chkdebugOCRDonate
221238

222-
Func sldMaxVSDelay()
223-
$iMaxVSDelay = GUICtrlRead($sldMaxVSDelay)
224-
GUICtrlSetData($lblMaxVSDelay, $iMaxVSDelay)
225-
If $iMaxVSDelay < $iVSDelay Then
226-
GUICtrlSetData($lblVSDelay, $iMaxVSDelay)
227-
GUICtrlSetData($sldVSDelay, $iMaxVSDelay)
228-
$iVSDelay = $iMaxVSDelay
229-
EndIf
230-
If $iVSDelay = 1 Then
231-
GUICtrlSetData($lbltxtVSDelay, GetTranslated(603,7, "second"))
232-
Else
233-
GUICtrlSetData($lbltxtVSDelay, GetTranslated(603,8, "seconds"))
234-
EndIf
235-
If $iMaxVSDelay = 1 Then
236-
GUICtrlSetData($lbltxtMaxVSDelay, GetTranslated(603,7, "second"))
237-
Else
238-
GUICtrlSetData($lbltxtMaxVSDelay, GetTranslated(603,8, "seconds"))
239-
EndIf
240-
EndFunc ;==>sldMaxVSDelay
241-
242-
Func sldVSDelay()
243-
$iVSDelay = GUICtrlRead($sldVSDelay)
244-
GUICtrlSetData($lblVSDelay, $iVSDelay)
245-
If $iVSDelay > $iMaxVSDelay Then
246-
GUICtrlSetData($lblMaxVSDelay, $iVSDelay)
247-
GUICtrlSetData($sldMaxVSDelay, $iVSDelay)
248-
$iMaxVSDelay = $iVSDelay
249-
EndIf
250-
If $iVSDelay = 1 Then
251-
GUICtrlSetData($lbltxtVSDelay, GetTranslated(603,7, "second"))
252-
Else
253-
GUICtrlSetData($lbltxtVSDelay, GetTranslated(603,8, "seconds"))
254-
EndIf
255-
If $iMaxVSDelay = 1 Then
256-
GUICtrlSetData($lbltxtMaxVSDelay, GetTranslated(603,7, "second"))
257-
Else
258-
GUICtrlSetData($lbltxtMaxVSDelay, GetTranslated(603,8, "seconds"))
259-
EndIf
260-
EndFunc ;==>sldVSDelay
261-
262-
263-
Func sldTrainITDelay()
264-
$isldTrainITDelay = GUICtrlRead($sldTrainITDelay)
265-
GUICtrlSetData($lbltxtTrainITDelay, GetTranslated(636, 32, "delay") & " " & $isldTrainITDelay & " ms.")
266-
EndFunc ;==>sldTrainITDelay
267-
268-
#cs
269-
Func cmbGUIstyle()
270-
MsgBox("", "", GetTranslated(636, 71, "Restart Bot to load new GUI style"))
271-
EndFunc ;==>cmbGUIstyle
272-
#ce
273-
274-
275239
Func btnTestTrain()
276240
Local $currentOCR = $debugOcr
277241
Local $currentRunState = $RunState
278242
_GUICtrlTab_ClickTab($tabMain, 0)
279243
$debugOcr = 1
280-
$RunState = 1
244+
$RunState = True
281245
ForceCaptureRegion()
282246
DebugImageSave("train_")
283247
SetLog(_PadStringCenter(" Test Train begin (" & $sBotVersion & ")", 54, "="), $COLOR_BLUE)
@@ -293,15 +257,13 @@ Func btnTestTrain()
293257
$RunState = $currentRunState
294258
EndFunc
295259

296-
297-
298260
Func btnTestDonateCC()
299261
Local $currentOCR = $debugOcr
300262
Local $currentRunState = $RunState
301263
Local $currentSetlog = $debugsetlog
302264
_GUICtrlTab_ClickTab($tabMain, 0)
303265
$debugOcr = 1
304-
$RunState = 1
266+
$RunState = True
305267
$debugsetlog = 1
306268
ForceCaptureRegion()
307269
;DebugImageSave("donateCC_")
@@ -320,9 +282,9 @@ Func btnTestDonateCC()
320282
Return False
321283
EndIf
322284
Setlog("Detecting Troops...")
323-
DetectSlotTroop($eLava)
285+
DetectSlotTroop($eBowl)
324286
Setlog("Detecting Spells...")
325-
DetectSlotTroop($eHaSpell)
287+
DetectSlotTroop($eSkSpell)
326288
SetLog(_PadStringCenter(" Test DonateCC end ", 54, "="), $COLOR_BLUE)
327289
Run("Explorer.exe " & $LibDir & "\debug\ocr\" )
328290

@@ -338,7 +300,7 @@ Func btnTestAttackBar()
338300
_GUICtrlTab_ClickTab($tabMain, 0)
339301

340302
$debugOcr = 1
341-
$RunState = 1
303+
$RunState = True
342304
ForceCaptureRegion()
343305
SetLog(_PadStringCenter(" Test Attack Bar begin (" & $sBotVersion & ")", 54, "="), $COLOR_BLUE)
344306

0 commit comments

Comments
 (0)