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 Before February 2015

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

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.

Offline

#2 Before February 2015

Buzzerbee
Forum Admin
From: Texas, U.S.A.
Joined: 2015-02-15
Posts: 4,566

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
https://wiki.everybodyedits.com/images/5/5d/135_bee

Offline

#3 Before February 2015

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

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

Offline

#4 Before February 2015

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 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

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 Before February 2015

mrjawapa
Corn Man 🌽
From: Ohio, USA
Joined: 2015-02-15
Posts: 5,840
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


Discord: jawp#5123

Offline

#7 Before February 2015

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

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.


signature.png
*u stinky*

Offline

#8 Before February 2015

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

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

Offline

Wooted by:

#9 Before February 2015

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

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?

Offline

#10 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

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 Before February 2015

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

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.

Offline

#12 Before February 2015

mrjawapa
Corn Man 🌽
From: Ohio, USA
Joined: 2015-02-15
Posts: 5,840
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.


Discord: jawp#5123

Offline

#13 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

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 Before February 2015

mrjawapa
Corn Man 🌽
From: Ohio, USA
Joined: 2015-02-15
Posts: 5,840
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)


Discord: jawp#5123

Offline

#15 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

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 Before February 2015

mrjawapa
Corn Man 🌽
From: Ohio, USA
Joined: 2015-02-15
Posts: 5,840
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...


Discord: jawp#5123

Offline

#17 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,572

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 Before February 2015

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

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

Offline

#19 Before February 2015

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 Before February 2015

mrjawapa
Corn Man 🌽
From: Ohio, USA
Joined: 2015-02-15
Posts: 5,840
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.


Discord: jawp#5123

Offline

#21 Before February 2015

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

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

Offline

#22 Before February 2015

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

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

Offline

#23 Before February 2015

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

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: 1,025

Re: So how to bots work?

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

Offline

capasha1563040878754860

Board footer

Powered by FluxBB

[ Started around 1711714125.8584 - Generated in 0.206 seconds, 12 queries executed - Memory usage: 1.7 MiB (Peak: 1.93 MiB) ]