Socket.IO Plugin - Discussion

Discussion and feedback on Construct 2

Post » Mon Oct 06, 2014 4:08 pm

Hey man, i understand your worries.

I'll release it with MIT license as soon as somebody offers to maintain it. Are you interested?
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Post » Mon Oct 06, 2014 4:16 pm

@JohnnySheffield if you're interested in getting people to maintain it, I'd suggest asking around the Reddit, Facebook Group, and the forums. I can sign up, but I'm not sure how much I can actually do, heh.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Mon Oct 06, 2014 4:20 pm

DatapawWolf wrote:@JohnnySheffield if you're interested in getting people to maintain it, I'd suggest asking around the Reddit, Facebook Group, and the forums. I can sign up, but I'm not sure how much I can actually do, heh.


Cool! With your willing to sign up, you're the single best person i'll ever find. I'll upload the MIT license to the repo, and consider you the owner of this plugin. If you want to get read/write access to the repo, pm me any mail you have access to.


Cheers!
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Post » Mon Oct 06, 2014 4:25 pm

Congratulations! You're the copyright holder of the socket.io plugin for C2!

Download the repo again to get the latest changes.

Enjoy, and happy coding!

Cheers!
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Post » Mon Oct 06, 2014 11:48 pm

@JohnnySheffield so far I've downloaded it but haven't had time to test it out yet. I will, soon!
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Tue Oct 07, 2014 1:49 pm

I think this conversation is better continued here instead of the original place.
DUTOIT wrote:Read this with tone: I demand a tutorial on multiplayer from you :twisted:
Seriously, this is awesome.
I have the hosts screen be the game (pc screen / tv screen etc) and peers screens (mobile/tablet) are the analog controllers. My kid thinks its pretty fun. Still ironing out the kinks though. But love the multiplayer plugin. Damn hard sometimes, but very cool.
I enjoyed your proccess... taught me a few things ;)

I do have plan to create some tutorial, but I found that it requires a rather long explanation that my draft never been finished because I was too occupied with my current project as I am currently very productive at it. Probably I should be doing it in series instead, once I hit another wall of problem, to occupied procrastinated time :D .

The idea on PCscreen+2mobile control idea is BLOODY AWESOME IDEA! I love the fact that this is actually open up another possibility of exploiting C2 MP. Imagine street fighter or mortal combat or tekken skills executed based on gesture on touch screen and in mobile! This is one of the thing that makes webrtc triumph over other existing method (like socket.io). *hint *hint doing 10000 players playing pokemon is possible with C2 afterall :D . I'll keep this is mind for future projects, thanks a bunch on the idea though!

Some note on the process I used, there are more to it actually. Using the same process flow, you can implement "host's load balancing", automated instance dungeon creation, and "remote browser controller" as the game master which you can access from your pc instead of remote desktop connection into the server.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Tue Oct 07, 2014 2:34 pm

DuckfaceNinja wrote:I think this conversation is better continued here instead of the original place.
DUTOIT wrote:Read this with tone: I demand a tutorial on multiplayer from you :twisted:
Seriously, this is awesome.
I have the hosts screen be the game (pc screen / tv screen etc) and peers screens (mobile/tablet) are the analog controllers. My kid thinks its pretty fun. Still ironing out the kinks though. But love the multiplayer plugin. Damn hard sometimes, but very cool.
I enjoyed your proccess... taught me a few things ;)

I do have plan to create some tutorial, but I found that it requires a rather long explanation that my draft never been finished because I was too occupied with my current project as I am currently very productive at it. Probably I should be doing it in series instead, once I hit another wall of problem, to occupied procrastinated time :D .

The idea on PCscreen+2mobile control idea is BLOODY AWESOME IDEA! I love the fact that this is actually open up another possibility of exploiting C2 MP. Imagine street fighter or mortal combat or tekken skills executed based on gesture on touch screen and in mobile! This is one of the thing that makes webrtc triumph over other existing method (like socket.io). *hint *hint doing 10000 players playing pokemon is possible with C2 afterall :D . I'll keep this is mind for future projects, thanks a bunch on the idea though!

Some note on the process I used, there are more to it actually. Using the same process flow, you can implement "host's load balancing", automated instance dungeon creation, and "remote browser controller" as the game master which you can access from your pc instead of remote desktop connection into the server.

Would love to know more... heck even if you put it in the store, I'll buy it (tutorial, template, whatever)... ;)

Like the controllers, try this. I play poker every month (guys around a table smoking cigars). The river cards are on the table via tablet, and each of us holds our mobile which is our cards. Webrtc is unbelievable.
Only issue is how to package it. lol.
I have created an autologin, mulitplayer game save type deal. So it registers your mobile and auto logs you into the lobby and tells you waiting for (whomever else was in your unfinished game) once they join players are taken to the game and it is the same game you left unfinished.

Very exciting times... Now, I just got to get webrtc to work on mobile chorme on samsung S3, S4 (known bug) amongst a long list of nigglys lol.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,718

Post » Sun Oct 19, 2014 1:51 am

@JohnnySheffield hey FYI the Socket.IO plugin, server, and test project all worked successfully! The only thing was that using the newest version of Express which I downloaded removes the requirement of app.use,
the need to manually do app.use(app.router) has been removed.
. After that, as far as I know, everything is peachy with the newest version of Socket.IO, C2, and Express!
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,826

Post » Sun Oct 19, 2014 10:15 am

Great news!

Yes, i think i've used the 3.0 version of the express. Express is optional here and was used to serve static files (eg- our exported C2 project). You can serve your projects anyway you want. I would recommend running socket.io and express as separated processes/machines, just to keep our concerns apart. It's easier to scale. Distribute all the things! :)

I'll create a new thread for this plugin so it's best to continue there!

edit: plugin-socket-io-1-x_t117739
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests