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-09 23:46:21, last edited by SirJosh3917 (2016-06-09 23:46:37)

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[How To Guide] How to make a bot on a web page

No bots exist on a webpage. For now, all we can produce (we as in bot makers) are downloadable bots, that don't work anywhere.
Now I want to bring something to your attention: How was EE made, if it used PlayerIOClient? Flash.
But alas, flash is one of the answers, but the other answer, is what EE is porting to.
Unity! Since unity and flash are using PlayerIOClient, then so can we make a bot!
Therefore you would no longer need only windows or linux to download, it'll be availible to all OSes, just like EE!

All you have to do is know how to program in unity or flash.
Have fun guys!

(I'll try to make a webpage bot, but don't expect it.)

Offline

#2 2016-06-09 23:55:52

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

Re: [How To Guide] How to make a bot on a web page

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

Offline

#3 2016-06-10 00:20:30

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

Re: [How To Guide] How to make a bot on a web page

ninjasupeatsninja wrote:

No bots exist on a webpage. For now, all we can produce (we as in bot makers) are downloadable bots, that don't work anywhere.
Now I want to bring something to your attention: How was EE made, if it used PlayerIOClient? Flash.
But alas, flash is one of the answers, but the other answer, is what EE is porting to.
Unity! Since unity and flash are using PlayerIOClient, then so can we make a bot!
Therefore you would no longer need only windows or linux to download, it'll be availible to all OSes, just like EE!

All you have to do is know how to program in unity or flash.
Have fun guys!

(I'll try to make a webpage bot, but don't expect it.)

So, are you saying you plan on making a unity/flash "game" that's really a bot?
I guess I hadn't thought of that one. Have at ya!
I mean, most people iirc were talking about HTML/JS and some server magic, but you go man.

Offline

#4 2016-06-10 00:25:24

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

Re: [How To Guide] How to make a bot on a web page

I have made bots in Flash, this is nothing new nor clever.
Why don't people use Flash for their bots? Simple; Flash sucks, and nobody wants to use it.

HG wrote:

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

No, it isn't without a proxy (which sort-of defeats the point). I had attempted this already, and it won't work on most browsers because api.playerio.com does not have Access Control headers set in their server response headers.


signature.png
*u stinky*

Offline

#5 2016-06-10 19:39:07

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [How To Guide] How to make a bot on a web page

XxAtillaxX wrote:

I have made bots in Flash, this is nothing new nor clever.
Why don't people use Flash for their bots? Simple; Flash sucks, and nobody wants to use it.

HG wrote:

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

No, it isn't without a proxy (which sort-of defeats the point). I had attempted this already, and it won't work on most browsers because api.playerio.com does not have Access Control headers set in their server response headers.

You uhh... didn't mention anything about unity.

Offline

#6 2016-06-10 20:08:46

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

Re: [How To Guide] How to make a bot on a web page

ninjasupeatsninja wrote:
XxAtillaxX wrote:

I have made bots in Flash, this is nothing new nor clever.
Why don't people use Flash for their bots? Simple; Flash sucks, and nobody wants to use it.

HG wrote:

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

No, it isn't without a proxy (which sort-of defeats the point). I had attempted this already, and it won't work on most browsers because api.playerio.com does not have Access Control headers set in their server response headers.

You uhh... didn't mention anything about unity.

Unity doesn't have anything to do with HTML/PHP connections.

Offline

#7 2016-06-10 20:11:28

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [How To Guide] How to make a bot on a web page

HG wrote:
ninjasupeatsninja wrote:
XxAtillaxX wrote:

I have made bots in Flash, this is nothing new nor clever.
Why don't people use Flash for their bots? Simple; Flash sucks, and nobody wants to use it.

HG wrote:

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

No, it isn't without a proxy (which sort-of defeats the point). I had attempted this already, and it won't work on most browsers because api.playerio.com does not have Access Control headers set in their server response headers.

You uhh... didn't mention anything about unity.

Unity doesn't have anything to do with HTML/PHP connections.

No, my point was

XxAtalliaxX wrote:

Why don't people use Flash for their bots? Simple; Flash sucks, and nobody wants to use it.

Offline

#8 2016-06-10 20:29:52

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

Re: [How To Guide] How to make a bot on a web page

I don't think people want to install Unity either, and I don't know what/how Unity communicates with the API.


signature.png
*u stinky*

Offline

#9 2016-06-10 20:37:06

drunkbnu
Formerly HG
Joined: 2017-08-16
Posts: 2,306

Re: [How To Guide] How to make a bot on a web page

Unity Engine cannot be installed on Unix-Like systems either. And I'm one of those using Unix-Like systems. I'm using Ubuntu and I won't migrate to Windows just to use your stuff.

Offline

#10 2016-06-10 20:38:35, last edited by Different55 (2016-06-10 20:39:41)

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

Re: [How To Guide] How to make a bot on a web page

Except it can

Firewatch is unity-based, EE is becoming unity-based, Hand of Fate appears to be Unity-based. All support linux.

Unity's editor even has a beta version out for linux that's getting rapid bug fixes. which is great, because it's pretty buggy.


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

Offline

#11 2016-06-11 02:07:22

Kaslai
Official Caroler
From: SEAͩT̓͑TLͯͥͧͪ̽ͧE͑̚
Joined: 2015-02-17
Posts: 787

Re: [How To Guide] How to make a bot on a web page

HG wrote:

Unity Engine cannot be installed on Unix-Like systems either. And I'm one of those using Unix-Like systems. I'm using Ubuntu and I won't migrate to Windows just to use your stuff.

Just because you use something doesn't mean you know everything there is to know about it. Unity has the ability to export native ELF binaries for Linux.

HG wrote:

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

If you were dedicated enough, you could actually re-implement the PlayerIOclient SDK in PHP and make a bot with it. It would be a bit of a pain, but it wouldn't be too hard. Using Javascript in the browser wouldn't be viable for multiple reasons, the main ones being the fact that you'd have CORS issues and the fact that Javascript in the browser can't make or use basic TCP connections. You could do it with Node.js, but then you have a dependency on Node, which is arguably more annoying than having to download an executable/Unity application.

Offline

#12 2016-06-11 10:29:42

Vitalijus
Member
From: Lithuania
Joined: 2015-02-15
Posts: 1,384
Website

Re: [How To Guide] How to make a bot on a web page

So much code and scripting just because you are too lazy to download a bot that takes like 10 seconds to download depending on bot size and your internet speed? No thanks.


wn7I7Oa.png

Offline

#13 2016-06-11 11:25:59

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

Re: [How To Guide] How to make a bot on a web page

Unity has the ability to run on the web (would have to use Firefox though as Chrome dropped support, dunno about IE, Edge and Safari).
The reason why a web bot would be nice, is for example when you have a gamemode, where the players can influence it, easy (and not too great) example:

You host a gamemode, and the room can have a custom background/theme.
Instead of players having to download a 2nd bot (1st being the game bot you run), they head to your website http://awesome-EE-Theme-Selector.bot.
From there they can vote for a change of theme or perhaps even have a nice and pretty votekick/ban system.

Now as I said, this is a bad example because obviously this is way too much trouble for such simple functionality, but the main reason is: if you want the players to be able to have influence on the bot, either have ugly and difficult commands, or create a new bot where it's way easier, where this bot is hosted and running online.

Offline

#14 2016-06-11 18:48:49, last edited by SirJosh3917 (2016-06-11 19:02:07)

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [How To Guide] How to make a bot on a web page

Please read all 3 spoilers.

Information
Conclusion
Replies

EDIT:
Even if unity web player is not depricated, it runs on windows and mac, and if EE bots have a revolution where all of the bots are online, the web player shouldn't be a problem to download

Unity web player runs on: Internet Explorer, Firefox, Safari, Opera - Windows & Mac

Offline

#15 2016-06-11 19:05:26

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

Re: [How To Guide] How to make a bot on a web page

ninjasupeatsninja wrote:

Ubuntu (/ʊˈbuːntʊ/ uu-BOON-tuu) is a Debian-based Linux operating system and distribution for personal computers, smartphones and network servers. It uses Unity as its default user interface.

Totally different unity. Unity3D is the name of a game engine we all know and don't really love. Unity is also the name of Ubuntu's default desktop environment that is based on Compiz 0.9 and is totally unrelated to the engine. The both have forks called Mutiny though which is kind of interesting.

ninjasupeatsninja wrote:

Unity web player runs on: Internet Explorer, Firefox, Safari, Opera

Opera is now based on chromium and like chromium doesn't support the web player. Version 12 did, but that was before they switched to being chromium-based. Now it has all the shortcomings of chrome.


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

Offline

Wooted by:

#16 2016-06-11 19:11:39

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [How To Guide] How to make a bot on a web page

Different55 wrote:
ninjasupeatsninja wrote:

Ubuntu (/ʊˈbuːntʊ/ uu-BOON-tuu) is a Debian-based Linux operating system and distribution for personal computers, smartphones and network servers. It uses Unity as its default user interface.

Totally different unity. Unity3D is the name of a game engine we all know and don't really love. Unity is also the name of Ubuntu's default desktop environment that is based on Compiz 0.9 and is totally unrelated to the engine. The both have forks called Mutiny though which is kind of interesting.

ninjasupeatsninja wrote:

Unity web player runs on: Internet Explorer, Firefox, Safari, Opera

Opera is now based on chromium and like chromium doesn't support the web player. Version 12 did, but that was before they switched to being chromium-based. Now it has all the shortcomings of chrome.

Thank you for correcting me, I got the informatin from the Unity3D page, and apparently that information was outdated.

ninjasupeatsninja wrote:

Ubuntu (/ʊˈbuːntʊ/ uu-BOON-tuu) is a Debian-based Linux operating system and distribution for personal computers, smartphones and network servers. It uses Unity as its default user interface.

My point here is Debian-based Linux operating system

Offline

#17 2016-06-11 19:17:02

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

Re: [How To Guide] How to make a bot on a web page

Okay but how does being debian-based change anything?


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

Offline

Wooted by:

#18 2016-06-17 03:52:52

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [How To Guide] How to make a bot on a web page

Different55 wrote:

Okay but how does being debian-based change anything?

well i thought it'd just be good to mention that little tidbit, the mainly main part is linux operating system.

Offline

#19 2016-06-17 09:49:41

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

Re: [How To Guide] How to make a bot on a web page

ninjasupeatsninja wrote:

the mainly main

The manly man

Sorry, couldn't help it.

Offline

Wooted by: (4)

#20 2016-06-20 14:10:52

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [How To Guide] How to make a bot on a web page

Kaslai wrote:
HG wrote:

It is possible to run PlayerIO connections via JavaScript, a language that I don't know yet. I can perfectly use PHP, which would be better for me at the moment of making a connection to any server.

If you were dedicated enough, you could actually re-implement the PlayerIOclient SDK in PHP and make a bot with it. It would be a bit of a pain, but it wouldn't be too hard. Using Javascript in the browser wouldn't be viable for multiple reasons, the main ones being the fact that you'd have CORS issues and the fact that Javascript in the browser can't make or use basic TCP connections. You could do it with Node.js, but then you have a dependency on Node, which is arguably more annoying than having to download an executable/Unity application.

https://github.com/Yonom/playerio-php ?


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#21 2016-06-20 14:22:03

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

Re: [How To Guide] How to make a bot on a web page

Hey since you brought it up
Does that actually work?

thx

Offline

#22 2016-06-20 14:24:22

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [How To Guide] How to make a bot on a web page

I'll have a go later, but will try out Proc's Javascript one first.


Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#23 2016-06-20 22:15:13, last edited by den3107 (2016-06-20 22:15:23)

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

Re: [How To Guide] How to make a bot on a web page

Weren't both of those still missing a couple things?

Offline

Wooted by:

#24 2016-06-22 17:35:07, last edited by Koya (2016-06-23 20:12:20)

Koya
Fabulous Member
From: The island with those Brits
Joined: 2015-02-18
Posts: 6,310

Re: [How To Guide] How to make a bot on a web page

den3107 wrote:

Weren't both of those still missing a couple things?

I have not tested either yet...

Edit:

<Proc> playerio.js works a bit
<Proc> it can connect to worlds
<Proc> but the other one? not at all

Po9cnQh.png

PLNQVL8.png
Thank you eleizibeth ^

1SYOldu.png

I stack my signatures rather than delete them so I don't lose them
giphy.gif

WfSi4mm.png

Offline

#25 2016-06-22 21:50:02

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

Re: [How To Guide] How to make a bot on a web page

Koya wrote:
den3107 wrote:

Weren't both of those still missing a couple things?

I have not tested either yet...

Haven't tried them out as I obviously didn't need to, but I assume myself that basic functionality is there (receiving and sending normal messages).
I think stuff like the payvault and such just aren't implemented yet, or partially.
Again, haven't tried it myself, just an assumption.

Offline

den31071467324139610654

Board footer

Powered by FluxBB

[ Started around 1732431697.9996 - Generated in 0.163 seconds, 12 queries executed - Memory usage: 1.84 MiB (Peak: 2.13 MiB) ]