Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2016-06-07 07:05:40

koozing
Member
Joined: 2015-10-01
Posts: 16

Bot automatically disconnects

So i have some code that fills in the whole map with 1 block like this:
http://prntscr.com/bdazqa

But i ran to a problem: after executing the for loops at around 7000-7500 times on a 200x200 world, the bot simply just stops working, it also disappears from the minimap. Also i can't connect him back unless i exit the .exe file and reopen it. Same goes for compiling the codes.

Does anyone have any idea what is causing this problem? And a solution if possible would be very welcomed too.

Offline

#2 2016-06-07 08:30:09

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Bot automatically disconnects

After the bot disconnects, put a breakpoint somewhere in the loop and see if it actually breaks there.

Offline

#3 2016-06-07 08:50:44

koozing
Member
Joined: 2015-10-01
Posts: 16

Re: Bot automatically disconnects

I already did, it doesn't stop at all

Offline

#4 2016-06-07 13:23:59

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Bot automatically disconnects

so
this threading issue comes up quite often.

why don't we ever remember that?

Offline

#5 2016-06-07 14:42:18

koozing
Member
Joined: 2015-10-01
Posts: 16

Re: Bot automatically disconnects

so by not using another thread for the task i flooded my eventhandler ?

Offline

#6 2016-06-07 15:02:38

Jabatheblob1
Member
Joined: 2015-03-01
Posts: 856

Re: Bot automatically disconnects

Just start another thread or use timers.


If you would like me to make a bot for you, go here.

Offline

#7 2016-06-07 18:41:27

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: Bot automatically disconnects

koozing wrote:

so by not using another thread for the task i flooded my eventhandler ?

interesting. ironic, even. How much experience do you have with bots again?
I mean, the community didn't know the problem, but you've just about got this figured out.

oh well. gg /thread

jk, jab's right. threads are easier, but timers are apparently better. there was a discussion here a while ago

Offline

#8 2016-06-07 19:50:46

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: Bot automatically disconnects

This was exactly what I wrote to you on TV. Still you make a thread about it..

Offline

Wooted by:

#9 2016-06-07 21:09:58

Tomahawk
Forum Mod
From: UK
Joined: 2015-02-18
Posts: 2,847

Re: Bot automatically disconnects

Please use the search feature; this issue has come up at least twice.

Previous answer: http://forums.everybodyedits.com/viewto … 45#p559445


One bot to rule them all, one bot to find them. One bot to bring them all... and with this cliché blind them.

Offline

Tomahawk1465330198605491

Board footer

Powered by FluxBB

[ Started around 1732749306.6989 - Generated in 0.053 seconds, 12 queries executed - Memory usage: 1.46 MiB (Peak: 1.58 MiB) ]