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-03-17 19:46:37

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

[Challenge] PlayerIO Message

This should be a challenge for any experienced programmers willing to participate.
With this complete, it will be possible to port PlayerIOClient to multiple languages. (Woo, cross-platform bots without dependencies!)

I've managed to call the API from PHP, and Python, and create a working bot without PlayerIOClient in C#.

Years ago, I've went through the ugly decompiled PlayerIOClient Message class code and somehow made it work.
This was accomplished years ago, with the release of EEDecode.
However, considering it uses goto heavily, it's messy and not very fun to implement at all.

Which is why I'm issuing this as a fun and potentially productive challenge: creating a working Message serializer and/or deserializer without goto statements.
Feel free to participate and leave replies in here with code snippets.


signature.png
*u stinky*

Offline

Wooted by: (3)

#2 2016-03-17 19:59:59, last edited by drunkbnu (2016-03-17 20:03:47)

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

Re: [Challenge] PlayerIO Message

I'd really like to have the Python API in hand, because I can handle the language to the perfection. I've been just too lazy to do these kind of projects. I could just learn C# anyways, so whatever.

Offline

#3 2016-03-17 20:17:40, last edited by XxAtillaxX (2016-03-17 20:18:13)

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

Re: [Challenge] PlayerIO Message

HG wrote:

I'd really like to have the Python API in hand, because I can handle the language to the perfection. I could just learn C# anyways, so whatever.

Here you go. Python source.
It's not a full implementation, as noted above, it still needs a working Message serializer/deserializer.

Best of luck.


signature.png
*u stinky*

Offline

#4 2016-03-17 20:40:30

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

Re: [Challenge] PlayerIO Message

^^ Because C# is too mainstream.


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

Offline

#5 2016-03-17 20:43:29

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

Re: [Challenge] PlayerIO Message

We could just write it in C and bind it to all the different languages, rather than doing all that work to do a full port to every language.

Offline

#6 2016-03-17 20:48:11

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

Re: [Challenge] PlayerIO Message

Kaslai wrote:

We could just write it in C and bind it to all the different languages, rather than doing all that work to do a full port to every language.

Definitely. At this point, it would be very good to have a working implementation in any language.


signature.png
*u stinky*

Offline

#7 2016-03-18 01:36:07

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Challenge] PlayerIO Message

If you're just interested in using PlayerIO in a different language, and aren't worried about the dependencies, could you just run a C# playerio "server" and just have a thin python interface to interact with the local server?

Offline

#8 2016-03-18 01:40:46

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

Re: [Challenge] PlayerIO Message

Hexagon wrote:

If you're just interested in using PlayerIO in a different language, and aren't worried about the dependencies, could you just run a C# playerio "server" and just have a thin python interface to interact with the local server?

Mixing two languages just to add support to one for a server would be a complete mess up. The important thing is the client and a multi-language API instead, would not be a mess up.

Offline

#9 2016-03-18 02:10:46

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

Re: [Challenge] PlayerIO Message

Hexagon wrote:

If you're just interested in using PlayerIO in a different language, and aren't worried about the dependencies, could you just run a C# playerio "server" and just have a thin python interface to interact with the local server?

That's how my first midi bot worked and it was a horrible mess. From the end user's standpoint, it's a lot more headache than it's really worth.

Offline

Kaslai1458263446589256

Board footer

Powered by FluxBB

[ Started around 1732438395.5501 - Generated in 0.078 seconds, 14 queries executed - Memory usage: 1.5 MiB (Peak: 1.65 MiB) ]