[PLUGIN] Zack0Wack0's Construct 2 Plugins

Post your completed addons to share with the community

Post » Mon Dec 26, 2011 8:35 am

I put some variable into "" followed the minify rule.
Now it can connect to server, but the custom event (emit) is not correct, my server say it lose a parameter. I can not understand the code after C2 minify. Maybe there still other errors.

PS. I use Socket.IO.min.js build:0.8.7 in my plugin chat.rexrainbow2011-12-26 08:43:34
B
97
S
22
G
176
Posts: 4,108
Reputation: 103,019

Post » Mon Dec 26, 2011 12:14 pm

[QUOTE=rexrainbow] I put some variable into "" followed the minify rule.
Now it can connect to server, but the custom event (emit) is not correct, my server say it lose a parameter. I can not understand the code after C2 minify. Maybe there still other errors.

PS. I use Socket.IO.min.js build:0.8.7 in my plugin chat.[/QUOTE]
It doesn't use 0.8 yet.
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

Post » Tue Dec 27, 2011 1:53 pm

Hello, really nice job with the socket.io plugin! I am going to be messing around with it today. I see that they have done something similar with ImpactJS called impactConnect that uses socket.io and node.js.

Multiplayer Example Video:
http://www.youtube.com/watch?v=zEppdr0EX7s

Github: https://github.com/cdreier/impactConnect

My question would be is there any working .CAPX examples such as the video above for Construct 2 multi connection example?

Thanks!
B
9
S
2
G
5
Posts: 54
Reputation: 3,546

Post » Wed Dec 28, 2011 12:35 am

No, there's no examples like that, sorry.
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

Post » Fri Dec 30, 2011 3:51 pm

Incredible,even if i don't inderstand anything
but.. can you tell me how to use the Websocket plugin so i can make a multiplayer server ?
thank you very much
(you should make a tutorial about it , i am sure that your tutorials will be known from all of us)
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Sat Dec 31, 2011 6:13 pm

I'm looking forward to the release of the plugin in 0.8 ! I think I'll have a lot of fun working with it :)
B
7
S
3
G
3
Posts: 26
Reputation: 1,652

Post » Sat Dec 31, 2011 11:21 pm

I will probably ditch the WebSocket version of it altogether, as the socket.io version is the best one.
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

Post » Sat Jan 07, 2012 7:16 am

Bump! I updated the socket plugin with the latest socket.io release.

I haven't actually tested it, but I'm 90% sure it'll work (I don't have Construct 2 on this computer, and because of a problem with my internet I am currently unable to download it). So if someone could give it a try (the cross browser version), that would be good.

example_server.js inside the zip file contains a socket.io server. You will need to install node.js (and NPM - comes by default with node.js on the windows installer). Make a new .bat file, and put in:

[code]
npm install socket.io
node example_server.js
[/code]

And then it will be running, and the cap should connect to it. I will write the tutorial for it as soon as I can, I promise!
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

Post » Sun Jan 08, 2012 11:37 am

Thanks ! I'll give it a try :)

EDIT : It doesn't work for me. Your example server listens on port 80 whereas your example capx listens on port 8001, is it normal?

I can't get my client to connect to the server, and I have no way to find out why :/Morhaus2012-01-08 12:39:37
B
7
S
3
G
3
Posts: 26
Reputation: 1,652

Post » Tue Jan 10, 2012 12:16 pm

Thanks for testing it, I'll fix it when my internet is fixed (3 days). Also, it shouldn't be listening on different ports (accident on my part) so try changing it to 8001.
B
3
S
1
G
3
Posts: 49
Reputation: 1,148

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 5 guests