Hi,
I am new here. Im looking for some files.
where i can find COCBot64.dll?
Developing Bot
Started by Antidote · Dec 5, 2014
Í wanna also help to write Attack strategies.
This bot has many minnor attacks, then loot is in Storages in the middle of map.
I think that is possible locate half/full Storage, Town hall level and after decide to make barb/arch attack. On high level TH, walls are strong, and barbarian attack is not helpfull.
@GeoByte
Im speaking in the name of Antidote but you can wait for his answer for a couple of weeks if you wish to do so of course
Hi sorry I was inactive the last few days. I noticed it's becoming quite hard for developers and testors to communicate and collaborate on code so I created a new forum intended for the bot's development only. However, I spoke with the admin and he was very supportive to help us integrate new feature and dedicated sub-forums. So in the mean time I think we can just sticks to here and focus on development first. But if any of you guys prefer otherwise just let me know as I'm just one of the developers so don't count on me too much lol. Anw autoit syntax highlighting has been added and sub-forums will be added soon. Here's an example script to demo the GUI's modification I'm working on to avoid the hang/blank GUI problem.
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
GUIRegisterMsg($WM_COMMAND, "GUIControl")
GUIRegisterMsg($WM_SYSCOMMAND, "GUIControl")
Global $RunState
#Region ### START Koda GUI section ###
$sBotTitle = "COC Bot Pre-Alpha v5.3"
$frmBot = GUICreate($sBotTitle, 417, 392, 207, 158 )
GUISetOnEvent($GUI_EVENT_CLOSE, "Terminate")
$tabMain = GUICtrlCreateTab(8, 8, 401, 355)
$pageGeneral = GUICtrlCreateTabItem("General")
$txtLog = GUICtrlCreateEdit("", 16, 40, 385, 240, BitOR($ES_AUTOVSCROLL, $ES_NOHIDESEL, $ES_READONLY, $ES_WANTRETURN, $WS_VSCROLL))
GUICtrlSetBkColor(-1, 0xFFFFFF)
$Controls = GUICtrlCreateGroup("Controls", 16, 290, 185, 65)
$btnStart = GUICtrlCreateButton("Start", 30, 314, 75, 25)
GUICtrlSetOnEvent(-1, "Start")
$btnStop = GUICtrlCreateButton("Stop", 110, 314, 75, 25)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
;---------------------------------------------------
While 1
WEnd
#Region ### Button Section ###
Func GUIControl($hWind, $iMsg, $wParam, $lParam)
Local $nNotifyCode = BitShift($wParam, 16)
Local $nID = BitAND($wParam, 0x0000FFFF)
Local $hCtrl = $lParam
#forceref $hWind, $iMsg, $wParam, $lParam
Switch $iMsg
Case 273
Switch $nID
Case $GUI_EVENT_CLOSE
Exit
Case $btnStart
$RunState = True
GUICtrlSetState($btnStart, $GUI_DISABLE)
GUICtrlSetState($btnStop, $GUI_ENABLE)
Case $btnStop
$RunState = False
GUICtrlSetState($btnStart, $GUI_ENABLE)
GUICtrlSetState($btnStop, $GUI_DISABLE)
GUICtrlSetData($txtLog, @CRLF & "Bot Stopped" & @CRLF, -1)
EndSwitch
Case 274
Switch $wParam
Case 0xf060
Exit
EndSwitch
EndSwitch
Return $GUI_RUNDEFMSG
EndFunc
Func Start()
While 1
GUICtrlSetData($txtLog, "Bot Started" & @CRLF, -1)
$i = 1
While 1
If $RunState = False Then ExitLoop
GUICtrlSetData($txtLog, $i & " ", -1)
Sleep(100)
$i += 1
WEnd
GUICtrlSetData($txtLog, @CRLF, -1)
ExitLoop
WEnd
EndFunc
#EndRegion ### Button Section ###
Usage: [code*=autoit] put code here [/code]
(remove *)
Wow.. Nice... Does the code support scrolling... If not the forum will be spam with code... Lol...
@Antidote where can we find the new forum bud?
@dinobot: I haven't tested everything yet but there seems to be some syntax error. Anw I will request for file attachment so developers can attach files directly without having to use other file hostings (easier for users to download as well).
Also can someone help me sort out some common issues/unexpected behaviors so I can work on a fix one by one? Usually when I start working on this I'm quite sleepy already so it's a pain having to go through every post :deadtongue:
@Envyus: I can't publish it here (nothing much yet btw) but if you want to take a look pm me for details
antidote ate u gonna be active now? is there a new version coming out today?
I'm having more time now and can work on it for long hours but I just started working on the latest script I need maybe 1 or 2 days. Mostly to iron out current issues first. Also to give GkevinOD some rest as he has been working on it intensively the last few days. I appreciate bugs report and feature request but be patient guys. It's not possible to add new feature in 1 or 2 days as we need to test also, otherwise it very likely will scew up on you guys' machines
Btw we are looking for anyone interested to join development. Don't worry if you don't know Autoit as most dev here only have background in other language and started learning from scratch. As you can see with recent contributions from developers we made such huge progress in such a short time, so I hope we can keep up the spirit 😉