The Bytecode Club
Log inJoin the club
Video Game Reverse Engineering

Developing Bot

Started by Antidote · Dec 5, 2014

1,033 replies21,297,466 viewsLocked
Dec 28, 2014#521

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

Dec 28, 2014#522

@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 🙂

Dec 28, 2014#523

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?

Dec 28, 2014#524

@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.

Dec 28, 2014#525

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

Dec 28, 2014#526

AtoZ wrote:

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?

Dec 28, 2014#527

bushido-21 wrote:

AtoZ wrote:

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.

Dec 28, 2014#528

AtoZ wrote:

bushido-21 wrote:

AtoZ wrote:

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?

Dec 28, 2014#529

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 ]

Dec 28, 2014#530

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.

This discussion is closed.