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.

Advertisement

Hello, visitor! These forums are run off of the revenue generated from these ads. If you'd like to support us, please whitelist us or consider donating:

#1 2015-02-12 17:08:49

Anch
Member
Joined: 2015-02-16
Posts: 5,446

So how to bots work?

So, bots connect to EE, but from then on, how does it control what happens in it? Like for example, simple as saying a chat message, how does it do that? What does it do to the server?
The pro haxors *cough* Atilla *cough* probably can explain this in 5 billion essays and say it's easy, but I want to be a programmar, so this would be good info for me.
P.S, don't write 5 billion essays.


a

Offline

#2 2015-02-12 17:08:48

Buzzerbee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 3,930
Website

Re: So how to bots work?

Bots actually work in a very simple, practical way: by sending and receiving messages.
For example, a bot receives a message that someone touched the crown, and the bot sends a "say" message, which is chat, saying someone touched the crown.
That's a very basic example, and before you take on programming EE bots (which is actually quite easy in the world of coding), you need to learn a .NET language (the most common of these being C#, C++, VB, and C). They each have their own advantages and disadvantages, but being .NET languages, can all do virtually the same things.
Of course there are many other languages, including Python and Java, but these all do different things and will not necessarily work for EE purposes as PlayerIO was catered for C# (and other .NET languages, but mainly C# if I recall correctly).

Last edited by BuzzerBee (Apr 23 2014 5:21:33 pm)


TdQRyz3.png

?type=online&name=BuzzerBee     ?type=location&name=BuzzerBee     ?type=lastlogin&name=BuzzerBee
thx lrussell https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#3 2015-02-12 17:08:47

Anch
Member
Joined: 2015-02-16
Posts: 5,446

Re: So how to bots work?

Ok thanks. But when you say it sens a "say" message, the coding system isn't specifcally made for ee, so how would you program it so it's made for ee?
And I already the if and then statements, but thanks anyway.
I'm thinking of learning C# but I have nowhere to learn from //forums.everybodyedits.com/img/smilies/smile


a

Offline

#4 2015-02-12 17:08:46

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

Re: So how to bots work?

It uses a playerio client and a playeruo.dll, which means that the playerio.dll is a little thing that you add and it has classes already in them. So it makes your life much easier.


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

Offline

#5 2015-02-12 17:08:45

Different55
Forum Admin
Joined: 2015-02-07
Posts: 15,947

Re: So how to bots work?

Rephrasing what ^ said without the vocab:

PlayerIO provides a file with all the functions needed to connect to any PlayerIO game built into it. All a program has to do is load that file to be able to connect to EE.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#6 2015-02-12 17:08:44

mrjawapa
Member
From: Ohio, USA
Joined: 2015-02-15
Posts: 4,951
Website

Re: So how to bots work?

Interesting... sounds like learning C# could be a fun little challenge //forums.everybodyedits.com/img/smilies/big_smile


mrjawapa,
Financial manager, web designer

St. Helen's
London, EC3
United Kingdom

Contact Claims ( 1-866-692-8482) when you:
-Need to make a new claim.
-Have an open claim and need answers to your questions.

For general inquiries, please call 1-800-387-4518.

Offline

#7 2015-02-12 17:08:43

XxAtillaxX
Member
From: Canada
Joined: 2015-11-28
Posts: 3,967

Re: So how to bots work?

It's interesting that someone posed this question, and it gives me the chance to write long technical essays! Weeee!
So yeah,
I've already wrote an open source EE bot that does not use PlayerIO DLL at all and instead connects through the basic fundamentals.
You can find it here.
For the technical explanation,
First, the Client is an abstract class, when initialized it will send the parameters (gameid, username/email, password) to PlayerIO's WebAPI (api.playerio.com) with said details.
The PlayerIO WebAPI will respond with either an error, or if you enter in the correct information it will give you a Protocol Buffer serialized message containing PlayerScale data (useless for EE), and importantly it will contain an AuthToken and a list of IP Addresses you can connect to.
In order to join the game, the Connection will send a byte (00) to the server, with another byte describing the connection type.
Afterwards, you will send a "join" packet containing the AuthToken and the server will know who you are.
Finally, you will typically send an "init" and "init2" packet, and the server will acknowledge you and broadcast an "add" message to people thereon.
Any received data gets deserialized and invoked onto the OnMessage event handler.


atill.gif

Offline

#8 2015-02-12 17:08:42

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

Re: So how to bots work?

If you really want to start programming, I will teach everything I know.


Everybody edits, but some edit more than others

Ne424Gj.png
Thanks to TundrumMax for the artistic depiction.

Offline

Wooted by:

#9 2015-02-12 17:08:41

Anch
Member
Joined: 2015-02-16
Posts: 5,446

Re: So how to bots work?

@The Docter: Thanks! In other posts, it sounds like you know alot
@Atilla: I barley understand a word you said, cause I know pretty much NOTHING about coding. I attempt, but it's hard when you have nothing to test it in (all I can do it html in notepad *cries*)
Packets sound awesome though. Are they like cookies? They send information?


a

Offline

#10 2015-02-12 17:08:40

Different55
Forum Admin
Joined: 2015-02-07
Posts: 15,947

Re: So how to bots work?

Packets are little bits of information sent over the internet. On EE, packets containing events like messages, movement, block placement, and more are sent in packets.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#11 2015-02-12 17:08:39

Anch
Member
Joined: 2015-02-16
Posts: 5,446

Re: So how to bots work?

Oh! So it's like you have the thing you type the code in, then you add a thing (which the playerio client thing), then it like sends these variables (chat, blocks, whatever) that are set to a code? Then when you send the code, it has the playerio client thing attatched to it, like a dictionary so it can read the "words" (chat, blocks, whatever). If this is confusing, I'll make it more clear, sorry.


a

Offline

#12 2015-02-12 17:08:38

mrjawapa
Member
From: Ohio, USA
Joined: 2015-02-15
Posts: 4,951
Website

Re: So how to bots work?

@Different55/Atilla, So packets are like linking to a script source or style sheet?

I'm not seeing much difference between C# and javascript, except C# having more capabilities.


mrjawapa,
Financial manager, web designer

St. Helen's
London, EC3
United Kingdom

Contact Claims ( 1-866-692-8482) when you:
-Need to make a new claim.
-Have an open claim and need answers to your questions.

For general inquiries, please call 1-800-387-4518.

Offline

#13 2015-02-12 17:08:37

Different55
Forum Admin
Joined: 2015-02-07
Posts: 15,947

Re: So how to bots work?

Packets are not references.

Packets are like sending a postcard to the EE servers with a little bit of information on each one. For EE, that's position, movement, crowns and keys, chat, stuff like that. Packets are used to transfer small bits of information between you and the servers.
There's not much similarity between C# and javascript except some syntax similarities which are already nearly universal, like using semicolons to terminate lines, (parentheses to contain arguments and boolean stuff), and { curly brackets to contain blocks of code }. There are bigger similarities, I'm sure, but nothing comes to mind.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#14 2015-02-12 17:08:36

mrjawapa
Member
From: Ohio, USA
Joined: 2015-02-15
Posts: 4,951
Website

Re: So how to bots work?

Different55 wrote:

Packets are not references.

Packets are like sending a postcard to the EE servers with a little bit of information on each one. For EE, that's position, movement, crowns and keys, chat, stuff like that. Packets are used to transfer small bits of information between you and the servers.
There's not much similarity between C# and javascript except some syntax similarities which are already nearly universal, like using semicolons to terminate lines, (parentheses to contain arguments and boolean stuff), and { curly brackets to contain blocks of code }. There are bigger similarities, I'm sure, but nothing comes to mind.

Hmmm sounding a bit harder now, but still something interesting I might try

Last edited by JaWapa (Apr 26 2014 8:05:43 am)


mrjawapa,
Financial manager, web designer

St. Helen's
London, EC3
United Kingdom

Contact Claims ( 1-866-692-8482) when you:
-Need to make a new claim.
-Have an open claim and need answers to your questions.

For general inquiries, please call 1-800-387-4518.

Offline

#15 2015-02-12 17:08:35

Different55
Forum Admin
Joined: 2015-02-07
Posts: 15,947

Re: So how to bots work?

You don't really need to be able to understand packets in order to code. PlayerIO.dll takes care of all the network stuff for you, all you have to do is tell it the type of information you want to send (for example, "say" for chat messages) and the actual data to send.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#16 2015-02-12 17:08:34

mrjawapa
Member
From: Ohio, USA
Joined: 2015-02-15
Posts: 4,951
Website

Re: So how to bots work?

Different55 wrote:

You don't really need to be able to understand packets in order to code. PlayerIO.dll takes care of all the network stuff for you, all you have to do is tell it the type of information you want to send (for example, "say" for chat messages) and the actual data to send.

Oh I wouldn't make a bot for EE... I hate bots, but it has more uses than that. I may not make anything useful to people, but it's something new that could lead up to something better...


mrjawapa,
Financial manager, web designer

St. Helen's
London, EC3
United Kingdom

Contact Claims ( 1-866-692-8482) when you:
-Need to make a new claim.
-Have an open claim and need answers to your questions.

For general inquiries, please call 1-800-387-4518.

Offline

#17 2015-02-12 17:08:33

Different55
Forum Admin
Joined: 2015-02-07
Posts: 15,947

Re: So how to bots work?

What kind of thing are you thinking of making?


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#18 2015-02-12 17:08:32

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

Re: So how to bots work?

Maybe this will help you http://pastebin.com/w2Bk6cAF
All credits of this codes go to Doh.


Everybody edits, but some edit more than others

Ne424Gj.png
Thanks to TundrumMax for the artistic depiction.

Offline

#19 2015-02-12 17:08:31

Tako
Member
From: Memphis, Tennessee, USA
Joined: 2015-08-10
Posts: 6,663
Website

Re: So how to bots work?

The Doctor wrote:

Maybe this will help you http://pastebin.com/w2Bk6cAF
All credits of this codes go to Doh.

WOW, this is ANCIENT.   I mean, it probably still works, but that was quite the throwback.   I used this code when I first started programming for EE, and I distinctly remember bugging Bash (Bass5098) about every function and every message that I didn't know.
And also, I'm generally not a fan of advertising, but if you're interested in creating a bot, I made the process a little bit simpler (at least, better documented) with Skylight.   I'd recommend you check it out.   That is, if Atilla's rewrites don't tickle your fancy.   If anything, you will understand how it works with the in/out system (which is called "pull" and "push" in the topic).


Yeah, well, you know that's just like, uh, your opinion, man.

Offline

#20 2015-02-12 17:08:30

mrjawapa
Member
From: Ohio, USA
Joined: 2015-02-15
Posts: 4,951
Website

Re: So how to bots work?

Different55 wrote:

What kind of thing are you thinking of making?

Idk yet, I need to get a computer I can write C# on.

The Doctor wrote:

Maybe this will help you http://pastebin.com/w2Bk6cAF
All credits of this codes go to Doh.

Thanks, just in case I do decide to make an EE bot then this will be handy.

TakoMan02 wrote:
The Doctor wrote:

Maybe this will help you http://pastebin.com/w2Bk6cAF
All credits of this codes go to Doh.

WOW, this is ANCIENT.   I mean, it probably still works, but that was quite the throwback.   I used this code when I first started programming for EE, and I distinctly remember bugging Bash (Bass5098) about every function and every message that I didn't know.
And also, I'm generally not a fan of advertising, but if you're interested in creating a bot, I made the process a little bit simpler (at least, better documented) with Skylight.   I'd recommend you check it out.   That is, if Atilla's rewrites don't tickle your fancy.   If anything, you will understand how it works with the in/out system (which is called "pull" and "push" in the topic).

Hmmm i'll look more into this when I have a computer I can do it on and know some stuff about C# thanks.


mrjawapa,
Financial manager, web designer

St. Helen's
London, EC3
United Kingdom

Contact Claims ( 1-866-692-8482) when you:
-Need to make a new claim.
-Have an open claim and need answers to your questions.

For general inquiries, please call 1-800-387-4518.

Offline

#21 2015-02-12 17:08:29

Anch
Member
Joined: 2015-02-16
Posts: 5,446

Re: So how to bots work?

TakoMan02 wrote:

And also, I'm generally not a fan of advertising, but if you're interested in creating a bot, I made the process a little bit simpler (at least, better documented) with Skylight.   I'd recommend you check it out.   That is, if Atilla's rewrites don't tickle your fancy.   If anything, you will understand how it works with the in/out system (which is called "pull" and "push" in the topic).

I remember you making a topic about this. It's interesting //forums.everybodyedits.com/img/smilies/tongue


a

Offline

#22 2015-02-12 17:08:28

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

Re: So how to bots work?

Pretty good for you. It's more easy to code with it, enoth flexibility and open source.


Everybody edits, but some edit more than others

Ne424Gj.png
Thanks to TundrumMax for the artistic depiction.

Offline

#23 2015-02-12 17:08:27

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

Re: So how to bots work?

TakoMan02 wrote:
The Doctor wrote:

Maybe this will help you http://pastebin.com/w2Bk6cAF
All credits of this codes go to Doh.

WOW, this is ANCIENT.   I mean, it probably still works, but that was quite the throwback.   I used this code when I first started programming for EE, and I distinctly remember bugging Bash (Bass5098) about every function and every message that I didn't know.
And also, I'm generally not a fan of advertising, but if you're interested in creating a bot, I made the process a little bit simpler (at least, better documented) with Skylight.   I'd recommend you check it out.   That is, if Atilla's rewrites don't tickle your fancy.   If anything, you will understand how it works with the in/out system (which is called "pull" and "push" in the topic).

I'd recommend Skylight, I've looked at it and from what I can tell you did a great job with it.


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

Offline

#24 2019-07-09 06:48:17

TapPineapple
New Member
Joined: 2019-07-08
Posts: 3

Re: So how to bots work?

Ok time to revive this forum. @mrjawapa you said you can send different packets and say is an example. What are the other packets I can send?


Still don't know how to code //forums.everybodyedits.com/img/smilies/tongue

Offline

#25 2019-07-09 17:41:55

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 996

Re: So how to bots work?

https://github.com/capasha/EverybodyEditsProtocoll
I believe this one is most up-to-date.


Current project: Thinking of/finding/requesting projects...
?type=registered&name=den3107     ?type=itemsbought&name=den3107
user.php?id=den3107&hideoffline=true    user.php?id=den3107bot&hideoffline=true

Offline

capasha1563040878754860

Board footer

Powered by FluxBB

[ Started around 1566082263.3826 - Generated in 0.070 seconds, 10 queries executed - Memory usage: 1.57 MiB (Peak: 1.82 MiB) ]