Quote:
As promised here is the Auto-Updater for the bot.
Just place this updater into it's own folder and execute it.
This bot will function as it did before nothing special added as of yet.
I'm going to be fully merging billy's code and mine together, and then I'll be working in functions similar to Blue-Eye Macro only in AutoIt for everyone xD and mainly for fun ! I do not use this bot myself and I don't play Eden that often, but I enjoy bot making and will try and keep everything up to date. Just remember it's for everyone here at Elitepvpers !! With that having been said this has only been tested using a Windows XP Virtual Machine, and my Windows 7 OS both of which ran it fine with no complications.
F10 = Starts/Stops the bot.
F11 = Set Zoom Limit (camera functions for auto-routing being worked in soon)
F9 = Exit bot
There is two other functions but they aren't going to be needed to run the bot, was things I was working on. (that's if you're browsing source code).
Now to the Updater.
It'll download and retrieve the file autodownload.dlc (downloadable content)
if the EEAutoPilot.settings file exists previously within the same directory (like if you update a previous source code).
if EEAutoPilot.settings does NOT exist then it will download and retrieve the file install.dlc and then fresh install to that directory all of the needed files !
This is full source code that I was attempting to merge between billy and I's code, so two config files will be needed and in the correct place.
Billy places his at config\user.ini, and mine is in the same directory as EEAP.exe.
The update rwill set it all up for you :)
As promised here is the source code for the auto-updater. This is what does the magic. Or you can use the weblink inside it to go and manually download the files. There is just more in there than for Eden Eternal, but not much :P Just know what you are looking for.
Code:#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_icon=..\..\..\Icon Entry_1.ico #AutoIt3Wrapper_outfile=EEBot_Installer-Updater.exe #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_Add_Constants=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;Migrated code for AutoIt version 3.3.1.x (and above) #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <ProgressConstants.au3> #include <WindowsConstants.au3> #include <File.au3> #include <Array.au3> #include <String.au3> HotKeySet("{ESC}","Form1Close") global $ary,$fname,$dlc, $Progress1 global $content Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("EE Auto-Pilot Updater", 294, 50, 192, 124) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") $Progress1 = GUICtrlCreateProgress(8, 8, 275, 20) $Button1 = GUICtrlCreateButton("Update", 117, 48, 75, 20, 0) GUICtrlSetOnEvent(-1, "Button1") GuiCtrlSetState($Button1,$GUI_HIDE) $label1 = GuiCtrlCreateLabel("Working..",8,28,280,17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### if not FileExists(@WorkingDir & "\config\") Then DirCreate(@WorkingDir & "\config\") EndIf if not FileExists(@WorkingDir & "\EEAutoPilot.settings") Then download("http://eeautopilot.site90.com/install.dlc", @workingDir & "\install.dlc", $Progress1) $content = "install.dlc" Button1() else $app_version = INIRead(@WorkingDir & "\EEAutoPilot.settings","settings","version","") download("http://eeautopilot.site90.com/autoupdate.dlc", @WorkingDir & "\autoupdate.dlc", $Progress1) sleep(1*1000) $version = INIRead(@WorkingDir & "\autoupdate.dlc","version","enc","") ;~ MsgBox(0,"",StringTrimLeft($version,StringLen($version) - 3) & " : " & $app_version) ;~ exit 0 ;string = "1.2.002" If int(StringTrimLeft($version,StringLen($version) - 3)) <> Int(StringTrimLeft($app_version,StringLen($app_version) - 3)) then MsgBox(0,"","Application Needs Updated") $content = "autoupdate.dlc" Button1() Else MsgBox(0,"","AutoPilot up to date") EndIf endif While 1 Sleep(100) WEnd func Button1() Button1Click($content) EndFunc Func Button1Click($content) $dlc = @WorkingDir & "\" & $content _FileReadToArray($dlc,$ary) ;~ _ArrayDisplay($ary) $aStr = _ArrayToString($ary,"|") $sp = StringSplit($aStr,"|") for $i = 2 to $sp[0] $ap = StringSplit($sp[$i],"/") $fname = @WorkingDir & "\" & $ap[$ap[0]] download($sp[$i], $fname, $Progress1) Next if FileExists(@WorkingDir & "\user.ini") Then FileCopy(@WorkingDir & "\user.ini",@WorkingDir & "\config\user.ini") FileDelete(@WorkingDir & "\user.ini") EndIf GUICtrlSetData($label1, " Update Complete !!!") EndFunc Func Form1Close() FileDelete(@WorkingDir & "\install.dlc") FileDelete(@WorkingDir & "\autoupdate.dlc") Exit 0 EndFunc func download($url, $target, $progress) $size =InetGetSize($url) $hDownload = InetGet($url, $target, 1, 1) ;1 = Forces a reload from the remote site, 1 = Return immediately and download in the background $ab = StringSplit($url,"/") $a = $ab[$ab[0]] While Not InetGetInfo($hDownload, 2) ;2 = Set to True if the download is complete, False if the download is still ongoing. GUICtrlSetData($progress,Ceiling((InetGetInfo($hDownload, 0)/$size)*100)) GUICtrlSetData($label1,$a & ": " & InetGetInfo($hDownload, 0) & "/" & $size & " : " & Ceiling((InetGetInfo($hDownload, 0)/$size)*100) & "%") ;0 = Bytes read so far (this is updated while the download progresses). Wend InetClose($hDownload) endfunc
do i need to download other file for this to work?