Posts: 20
Threads: 0
Joined: Nov 2014
Reputation:
0
12-28-2014, 08:07 PM
(This post was last modified: 12-28-2014, 08:09 PM by ehsanslipknot.)
Hey guys
My bot work fine!
But after training complete,if lag or any error on search happen bot reset the game and stop!
I mean bot didnt repeat process(zoomout and start new village search..)
Sorry for my bad language
Posts: 131
Threads: 3
Joined: Dec 2014
12-28-2014, 08:14 PM
(This post was last modified: 12-28-2014, 08:17 PM by bushido-21.)
Posts: 68
Threads: 4
Joined: Dec 2014
Reputation:
0
12-28-2014, 08:54 PM
(This post was last modified: 12-28-2014, 09:03 PM by k3iroll.)
AtoZ
I got the below error while the bot is running:
Line 44 in ImageSearch.au3 file
if $result[0]="0" then return 0
if $result^ ERROR
Error: Subscript used on non-accessible variable
How do I solve this?
Posts: 129
Threads: 1
Joined: Dec 2014
(12-28-2014, 08:14 PM)bushido-21 Wrote: @AtoZ hi i'm not dev i just normal user i want to ask how can attach your zombie code to bot.002.au3 plz cant you explain..sorry for my bad english thanks for your all effort to make this bot perfectly keep it up guys thank's again
I tried compiling it to a separate au3 file but I couldn't make it work.. It always skip to zero. Whereas if it's within one file it doesn't fail detecting zombie.
Anyone here knows what are the only variables that should be included when separating autoit files? also what variables should be declared to the main file?
I guess we have to wait for Antidote and GKevinOD to incorporate the codes.
Posts: 129
Threads: 1
Joined: Dec 2014
12-28-2014, 10:24 PM
(This post was last modified: 12-28-2014, 10:27 PM by AtoZ.)
(12-28-2014, 08:54 PM)k3iroll Wrote: AtoZ
I got the below error while the bot is running:
Line 44 in ImageSearch.au3 file
if $result[0]="0" then return 0
if $result^ ERROR
Error: Subscript used on non-accessible variable
How do I solve this?
Is you computer 64bit? right click on the file and run it as 64bit. make sure to use 64bit imagesearch if your computer is 64bit.
Or compile it as 64bit and run the exe file
Posts: 131
Threads: 3
Joined: Dec 2014
(12-28-2014, 10:24 PM)AtoZ Wrote: (12-28-2014, 08:54 PM)k3iroll Wrote: AtoZ
I got the below error while the bot is running:
Line 44 in ImageSearch.au3 file
if $result[0]="0" then return 0
if $result^ ERROR
Error: Subscript used on non-accessible variable
How do I solve this?
Is you computer 64bit? right click on the file and run it as 64bit. make sure to use 64bit imagesearch if your computer is 64bit.
Or compile it as 64bit and run the exe file
if i comfile to 64bit do i need the GKevinOd.au3 after comfile to exe?
Posts: 129
Threads: 1
Joined: Dec 2014
(12-28-2014, 10:37 PM)bushido-21 Wrote: (12-28-2014, 10:24 PM)AtoZ Wrote: (12-28-2014, 08:54 PM)k3iroll Wrote: AtoZ
I got the below error while the bot is running:
Line 44 in ImageSearch.au3 file
if $result[0]="0" then return 0
if $result^ ERROR
Error: Subscript used on non-accessible variable
How do I solve this?
Is you computer 64bit? right click on the file and run it as 64bit. make sure to use 64bit imagesearch if your computer is 64bit.
Or compile it as 64bit and run the exe file
if i comfile to 64bit do i need the GKevinOd.au3 after comfile to exe?
make sure GKevinOd.au3 is within the same folder as your compiled bot003.
Posts: 131
Threads: 3
Joined: Dec 2014
(12-28-2014, 10:44 PM)AtoZ Wrote: (12-28-2014, 10:37 PM)bushido-21 Wrote: (12-28-2014, 10:24 PM)AtoZ Wrote: (12-28-2014, 08:54 PM)k3iroll Wrote: AtoZ
I got the below error while the bot is running:
Line 44 in ImageSearch.au3 file
if $result[0]="0" then return 0
if $result^ ERROR
Error: Subscript used on non-accessible variable
How do I solve this?
Is you computer 64bit? right click on the file and run it as 64bit. make sure to use 64bit imagesearch if your computer is 64bit.
Or compile it as 64bit and run the exe file
if i comfile to 64bit do i need the GKevinOd.au3 after comfile to exe?
make sure GKevinOd.au3 is within the same folder as your compiled bot003.
do i need to attach the zombie script to bot.003.au3 before convert to exe?
Posts: 68
Threads: 4
Joined: Dec 2014
Reputation:
0
AtoZ.
Thanks. It works now. I also found out I need to add the below declaration into the script, otherwise there'll be error.
Global $Lx[4]= [ 0, 400, 0, 400 ]
Global $Ly[4]= [ 0, 0, 265, 265 ]
Global $Rx[4]= [ 460, 860, 400, 860 ]
Global $Ry[4]= [ 325, 325, 590, 590 ]
Posts: 129
Threads: 1
Joined: Dec 2014
12-28-2014, 11:18 PM
(This post was last modified: 12-28-2014, 11:30 PM by AtoZ.)
(12-28-2014, 11:05 PM)k3iroll Wrote: AtoZ.
Thanks. It works now. I also found out I need to add the below declaration into the script, otherwise there'll be error.
Global $Lx[4]= [ 0, 400, 0, 400 ]
Global $Ly[4]= [ 0, 0, 265, 265 ]
Global $Rx[4]= [ 460, 860, 400, 860 ]
Global $Ry[4]= [ 325, 325, 590, 590 ]
Oh yeah.. I just checked.. wasn't in the installation notes. Good thing you noticed.. I think that was the problem of another person awhile ago.
btw, don't forget this:
#include <ImageSearch.au3>
#include <MsgBoxConstants.au3>
Also, the code doesn't detect zombies with lv8 and below collectors.