Multiplayer: host question

Discussion and feedback on Construct 2

Post » Fri Mar 14, 2014 4:14 pm

I am doing some tests with the new multiplayer support, using multiple browsers on my computer.

Firefox and Chrome are my browsers of choice atm.

Testing the ghost shooter.
Using firefox as host, it works all the time when a chrome client connects.

But when a firefox connects to a chrome host, the host leaves right after it joined.

In chrome there is this in the error log:

Code: Select all
Error parsing message as JSON for peer '5MTM', host kicking: 
SyntaxError
message: "Unexpected token "
stack: (...)
get stack: function () { [native code] }
set stack: function () { [native code] }
__proto__: Error
 c2mp-peer.js:679
Peer.doOnMessage c2mp-peer.js:679
String that failed to parse from previous error:  c2mp-peer.js:687
Error parsing message as JSON for peer 'HUUP', host kicking: 
SyntaxError
 c2mp-peer.js:679
Peer.doOnMessage c2mp-peer.js:679
String that failed to parse from previous error:  c2mp-peer.js:687
[Construct 2] Suspending


Any ideas ?
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Mar 14, 2014 7:11 pm

Anyone else experiencing this ?

Kinda looking forward to continueing, but atm its stopping me from going further.


@ashley Any idea, or should I move this question to the bug section ?
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Mar 14, 2014 7:19 pm

No yeah I'm having a similar issue. I cannot connect host/peers from Chrome to Firefox or vice versa. However, I can connect any number of same-browser clients/host to eachother.

Very confused.
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,836

Post » Fri Mar 14, 2014 7:21 pm

i did try that, hosted with chrome, joined with firefox, same issue, first the chrome host disconnects then the firefox user gets kicked. funny thing is, after i did that, it doesnt work on either browser, not even the other way arround
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Fri Mar 14, 2014 7:37 pm

Does this even work with node-webkit? I'm interested to see if it would work with it, since it's a natural candidate for a host in a client-host architecture.
B
36
S
8
G
8
Posts: 532
Reputation: 6,903

Post » Fri Mar 14, 2014 7:53 pm

@Fimbull

Initially I tested all browsers from the list,including webkit.
Other browsers decently showed it did not support.


I expected webkit to work as it is chrome, but behaved different then expected.

After some quick tests on my end:

When webkit connects as client to either a firefox, or Chrome: the host (firefox or chrome) shows both players, but on the client there are no players (on webkit), and the webkit client gets booted after short time from the host game.

When the webkit is host it will show both the firefox and chrome players, but the clients show no players (not for firefox or on chrome)

In short: it seems when a connection with the webkit is involved, the host only shows the players.


edit: this is tested on 1 computer, I wonder how much that will make a difference ? (port issues perhaps ?)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Mar 14, 2014 8:40 pm

Same here on 1 pc
webkit host -> chrome client - 2 players seen on webkit, 0 in chrome
chrome host -> webkit client - 2 players on chrome, 0 on webkit

For other pcs it doesn't work for me at all (shooter and chat examples). Tried with two computers with chrome and firefox, and with samsung galaxy S3.
If one of these devices is Host others can't connect. Doesn't matter if host is firefox, chrome or chrome on android. For few seconds it shows that 2 peers have connected but nothing more. No "joins" to room.
I can only connect and play using 2 chromes on same computer.
ImageImageImageImage
B
158
S
67
G
43
Posts: 2,603
Reputation: 35,968

Post » Fri Mar 14, 2014 10:26 pm

Hmm, Im experiencing now that I can not connect to the signalling server anymore xD

23:24:32.024 Firefox can't establish a connection to the server at wss://multiplayer.scirra.com/. c2mp.js:293
23:24:32.025 "Signalling server error: [object Event]"


Error message on signalling error gives: [object Event]
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Mar 14, 2014 10:59 pm

Hmm, Im experiencing now that I can not connect to the signalling server anymore xD

Same. Beta is beta I guess :)
B
34
S
9
G
3
Posts: 517
Reputation: 5,246

Post » Fri Mar 14, 2014 11:04 pm

Is multiplayer out? Is the new update complete?
B
37
S
14
G
3
Posts: 263
Reputation: 4,280

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests