[Multiplayer] Several instances

Discussion and feedback on Construct 2

Post » Fri Mar 14, 2014 10:11 pm

Hi have a question about the multiplayer functionality.

I made the chat tutorial and added something similar to my own game, and there doesn't seem to be any problem connecting as host. However I was wondering if it is possible to start up several C2 and run several projects to test it locally. The reason I ask is because im not sure if it works correctly. When I do it, I can see that it register that someone connected, but it wont write the peer name for the peer client when it connect, however works for the host client, which can see the client name. Furthermore I cant send messages between them. Some times both client and host will show both names connected in the client list and sometimes they wont. (Mostly its the client that doesn't show the host)

Im testing using the nodekit.

So just wondering if its possible to even test it using several instances of C2 or is it expected to behave weird. If that's the case are there any good way to test if it works locally, using just one computer?
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Sat Mar 15, 2014 1:20 am

To test it you just need 2 windows open. Each window is it's own session.

If you test the chat demo without modifying it (or modify just the game name to make your own private room), you can verify if it works for you or not.
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Sat Mar 15, 2014 1:29 am

This works for browsers only. You can open only one instance of your project in node webkit.
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868

Post » Sat Mar 15, 2014 2:16 pm

Thanks for that, can see it works in Chrome, at least my first tests so that's good.

Just hope they add it so it also works in nodekit, as I hate testing in browsers, there are always something that doesn't look right :D
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848


Return to Construct 2 General

Who is online

Users browsing this forum: NECRONOMICRON, Yahoo [Bot] and 9 guests