Yet-another Multiplayer Demo

Show us your completed creations made in Construct 2

Post » Thu Apr 25, 2013 8:35 pm

[QUOTE=rexrainbow]@Velojet had made another multiplaye plugin + server for real time, you might try it.[/QUOTE]
@xoros
Here are my two multiplayer plugins:
- MultiPlayer
- PhotonClient

Let's know how you go with them.
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Thu Apr 25, 2013 9:14 pm

Will this method work for mobile devices as well, or is it a completely different process for multiplayer on android/ios devices?retrodude2013-04-25 21:15:20
B
18
S
4
G
3
Posts: 436
Reputation: 4,801

Post » Fri Apr 26, 2013 8:23 am

The method by rexraibow will work on mobile, but it depends on the browser.

@velojet - I will look into your plugin and let you know.xoros2013-04-26 08:27:50
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Fri May 17, 2013 3:37 pm

A question @rexrainbow about nodejs server:

Is it possible to log what's happening on the server, like player names room id's, how many players are online etc.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Fri May 17, 2013 4:07 pm

[QUOTE=xoros] A question @rexrainbow about nodejs server:

Is it possible to log what's happening on the server, like player names room id's, how many players are online etc. [/QUOTE]


Node is Javascript, so in your server side code just do:

[CODE]console.log("whatever you want to log here")[/CODE]

and it will be printed to the console whenever called.
B
8
Posts: 32
Reputation: 1,039

Post » Sat May 25, 2013 5:06 am

"XMLHttpRequest cannot load (.../socket.io) Credentials flag is true, but Access-Control-Allow-Credentials is not "true"."

Any idea?

EDIT: Tried to put everything together(same host) and got a Failed to load resource: the server responded with a status of 404 (Not found)... /socket.io/ ...

EDIT2: If anyone managed to get bottleneck working on his own server, please gimme some tips or even a how to.

Forget this, decided to build up my on chat using zackmod and its done by now.breackzin2013-05-25 20:19:48
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Sat May 25, 2013 11:05 pm

It looks like you have to figure out how to install socket.io library properly. Just try to do everything step by step: 1) first instal nodejs and test it with basic examples from officail page 2)than socket.io and test it 3) setup bottleneck plugin and test it with examples by rexrainbow.

I suggest to try it locally first. Note, that you have to change channels url's for bottleneck and lobby plugin like this "localhost:8099/game" and "localhost:8099/lobby". May be you have to change the port to something differrent.

I'm using this plugin a lot for my multiplayer prototypes testing and I must say it is brilliant and very easy to use, though it has some issues.
B
42
S
11
G
4
Posts: 505
Reputation: 7,267

Post » Sun May 26, 2013 12:04 am

@Xoros, thank you for all your help, but I want to use my own server code.
After trying lobby, game, changing ports, changing plugin, changing server... decided to build my own. It is already done now, got 3 hours or less on it, it is working great on preview, but imagine yourself that still I am getting some errors when trying it on dropbox.
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

Post » Sun May 26, 2013 2:13 am

@breackzin

I could not help you, sorry.
It will take me a lot of time since I had not made server side programming a long time.
B
97
S
22
G
178
Posts: 4,121
Reputation: 104,049

Post » Sun May 26, 2013 10:56 pm

Finally solved everything! thx Rex
B
7
S
3
G
1
Posts: 154
Reputation: 1,812

PreviousNext

Return to Completed Creations

Who is online

Users browsing this forum: No registered users and 6 guests