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 2015-02-12 16:09:37

Assossa
Guest

Bot creation Tutorial

I recently noticed that there are no tutorials on the forum about how to make a bot. So I decompiled some of the more complicated bots and found how they work. (Moderators: If this is in the wrong section, feel free to move it //forums.everybodyedits.com/img/smilies/big_smile)
Tutorial:
The first thing you have to do is put the player.io dll with your bot, so first download it (link coming soon) then open up visual c#. This tutorial will assume you already have c# programming experience and have created the form for your bot. Now right-click the references in the solution explorer, click add references, then go to to the Browse tab and navigate to the player.io dll and hit ok. Now go to the top part of your code and anywhere in the using statments type this in:

using PlayerIOClient;

Then, after

public partial class Form1 : Form {

Type in

             public Client client;         private bool connected = false;         public Connection connection;         private string[] username;

This code just sets all the variables for the bot, whenever you need a new variable just put it in that chunk of code. Make sure on your form you have at least a email, password, and world id text-boxes and a login button. Double-click the login button and type the following code:

try             {                 this.connect();                 this.connection.Send("init", new object[0]);                 this.connection.Send("init2", new object[0]);                 this.connected = true;             }             catch (Exception)             {                 MessageBox.Show("Can't connect.");             }

All this does is trys to connect and if it doesn't it pops up an error message. Now if you notice, c# gives you and error for the this.connect(); Thisis because its a custom function that we haven't defined yet. So, right after the connect button clicked function put:

private void connect()         {             this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text);             this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>());         }

Now, replace the email.Text and the password.Text with the two names of your email and password text boxes plus .Text
If you run your application, it should run. Then type in your email, password, and world id(if its not your world use a diffrent account then yours) and hit connect. You should see that playe connect to the world!

Last edited by Assossa (Jun 20 2012 5:36:26 am)

#2 2015-02-12 16:09:36

abcdfgt
Guest

Re: Bot creation Tutorial

thx

#3 2015-02-12 16:09:35

soccerfreak006
Guest

Re: Bot creation Tutorial

WOW! I use Visual Basic a bit but, I also have C# thank you SO MUCH. +rep

#4 2015-02-12 16:09:34

jemhun
Guest

Re: Bot creation Tutorial

Thanks!
It helped me a lot!
+rep //forums.everybodyedits.com/img/smilies/wink

#5 2015-02-12 16:09:33

capasha
Moderation Team
Joined: 2015-02-21
Posts: 3,940
Website

Re: Bot creation Tutorial

The code have so many variables that is not needed... Are you a programmer or just a skid?

Offline

#6 2015-02-12 16:09:32

Assossa
Guest

Re: Bot creation Tutorial

I'm a programmer, but I was copying this from my bot, so I will edit out the unused veriables for this tut.

#7 2015-02-12 16:09:31

capasha
Moderation Team
Joined: 2015-02-21
Posts: 3,940
Website

Re: Bot creation Tutorial

Even the connection code looks bad in my eyes. I don't know why.
Maybe I like my code to use delegates and be more compact.

Offline

#8 2015-02-12 16:09:30

Krock
Guest

Re: Bot creation Tutorial

looks like the decompiled gbot on pastebin... :/

#9 2015-02-12 16:09:29

abcdfgt
Guest

Re: Bot creation Tutorial

wer to put :

private void connect()         {             this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text);             this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>());         }

#10 2015-02-12 16:09:28

capasha
Moderation Team
Joined: 2015-02-21
Posts: 3,940
Website

Re: Bot creation Tutorial

abcdfgt wrote:

wer to put :

private void connect()         {             this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text);             this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>());         }

Somewhere in your project.

Offline

#11 2015-02-12 16:09:27

Zumza
Member
From: root
Joined: 2015-02-17
Posts: 4,559

Re: Bot creation Tutorial

Assossa wrote:
try             {                 this.connect();                 this.connection.Send("init", new object[0]);                 this.connection.Send("init2", new object[0]);                 this.connected = true;             }             catch (Exception)             {                 MessageBox.Show("Can't connect.");             }
Code: private void connect()         {             this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text);             this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>());         }

^this code is only for connect...
Theach people how to put blocks snake or dig and I rep+ you...

Last edited by The Doctor (Jun 19 2012 9:31:56 am)


Everybody edits, but some edit more than others

Offline

#12 2015-02-12 16:09:26

jemhun
Guest

Re: Bot creation Tutorial

Zumza123 wrote:
Assossa wrote:
try             {                 this.connect();                 this.connection.Send("init", new object[0]);                 this.connection.Send("init2", new object[0]);                 this.connected = true;             }             catch (Exception)             {                 MessageBox.Show("Can't connect.");             }
Code: private void connect()         {             this.client = PlayerIO.QuickConnect.SimpleConnect("everybody-edits-su9rn58o40itdbnw69plyw", emailtext.Text, passwordtext.Text);             this.connection = this.client.Multiplayer.CreateJoinRoom(worldtext.Text, "public", true, new Dictionary<string, string>(), new Dictionary<string, string>());         }

^this code is only for connect...
Theach people how to put blocks snake or dig and I rep+ you...

The topic is about creating the basic bot, like how to connect to everybody edits.
Not to create snakes and all the worthless bots that are spreading all over the forum.

And that's what Assossa mentioned in his first post if you haven't read it.

#13 2015-02-12 16:09:25

Assossa
Guest

Re: Bot creation Tutorial

Krock, I did decompile gbot myself and looked at the source code to learn how to make bots but, all this code is my own code. And I will add things on this tut like snakes, and placing blocks, and such...

#14 2015-02-12 16:09:24

capasha
Moderation Team
Joined: 2015-02-21
Posts: 3,940
Website

Re: Bot creation Tutorial

Assossa wrote:

Krock, I did decompile gbot myself and looked at the source code to learn how to make bots but, all this code is my own code. And I will add things on this tut like snakes, and placing blocks, and such...

Don't do that. Just let this be like it is. You are only feeding the C&P kids.

Offline

#15 2015-02-12 16:09:23

Assossa
Guest

Re: Bot creation Tutorial

Ok, Doh I wont continue this tut

#16 2015-02-12 16:09:22

5exyboy
Guest

Re: Bot creation Tutorial

can i make bot with JAVA?

#17 2015-02-12 16:09:21

Gaming_Guy
Guest

Re: Bot creation Tutorial

Not a really useful guide. It doesn't really tell you what every single code there does in detail. I'd suggest learning from another source if you're desperate.

#18 2015-02-12 16:09:20

capasha
Moderation Team
Joined: 2015-02-21
Posts: 3,940
Website

Re: Bot creation Tutorial

GamingGuy wrote:

Not a really useful guide. It doesn't really tell you what every single code there does in detail. I'd suggest learning from another source if you're desperate.

I know. I created one on a pastebin with some comments. But that code is on another forum.

Offline

#19 2015-02-12 16:09:19

STD
Formerly BenWanted
From: Binary by 0 and 1
Joined: 2015-08-19
Posts: 1,109

Re: Bot creation Tutorial

Thanks. I never knew how to get my bot to connect to EE. Thanks for the help. //forums.everybodyedits.com/img/smilies/big_smile


random-pictures-316.jpg

Offline

#20 2015-02-12 16:09:18

BmanGameFreaker
Guest

Re: Bot creation Tutorial

I have no idea what a bot is so...... CAN SOMEONE PLEASE EXPLAIN IT TO ME!!

#21 2015-02-12 16:09:17

Gaming_Guy
Guest

Re: Bot creation Tutorial

BmanGameFreaker wrote:

I have no idea what a bot is so...... CAN SOMEONE PLEASE EXPLAIN IT TO ME!!

511423984_5223488684_no_answer_2_answer_2_xlarge.jpeg

#22 2015-02-12 16:09:16

Skyler
Guest

Re: Bot creation Tutorial

GamingGuy wrote:
BmanGameFreaker wrote:

I have no idea what a bot is so...... CAN SOMEONE PLEASE EXPLAIN IT TO ME!!

http://images.sodahead.com/polls/001565 … large.jpeg

Totaly with you on that one Gamingguy //forums.everybodyedits.com/img/smilies/big_smile

#23 2015-02-12 16:09:15

planecool
Member
From: SN2006gy
Joined: 2015-02-17
Posts: 304
Website

Re: Bot creation Tutorial

Cool, i like this +rep.


* CYPH1E > YOU: [I'm] half bot pig man bear.

yEe4NdJb.jpg

50 dollars + salvaged computer parts.

Offline

#24 2015-02-12 16:09:14

Cyral
Member
From: United States
Joined: 2015-02-15
Posts: 2,263

Re: Bot creation Tutorial

Its worthless unless you show how to send the Init message and decode with derot. Or else you cant do anything.


Player Since 2011. I used to make bots and stuff.

Offline

#25 2015-02-12 16:09:13

Garfield2436
Guest

Re: Bot creation Tutorial

IMO this isn't enough to help you with making a bot. You're definitively going to really learn java/python/C++ etc. on your own, esspecially when coding/writing a program is pretty complicated.

Assossa 1423753777207655

Board footer

Powered by FluxBB

[ Started around 1601402522.8959 - Generated in 0.061 seconds, 10 queries executed - Memory usage: 1.57 MiB (Peak: 1.78 MiB) ]