Multiplayer in r176

Bugs will be moved here once resolved.

Post » Wed Aug 06, 2014 7:33 pm

Problem Description
Multiplayer is acting strange in version r176

Attach a Capx
Multiplayer game example.capx


Description of Capx
Unmodified Multiplayer example

Steps to Reproduce Bug
  • Step 1 Start Construct, Open the 3rd multiplayer example (real time game).
  • Step 2 Press the Run Layout Button (for me default is Firefox)
  • Step 3 Type "Foo" into the text box and start the server
  • Step 4 Run the layout in a new tab in Firefox by typing in the URL "LocalHost:5000"
  • Step 5 Type "Fred" into the text box and connect to the server

Observed Result
The game proceeds to the 2nd layout, and the user is presented with a pop up box that informs them that:
Javascript error!
Error: RTCPeerConnection constructor passed invalid RTCConfiguration - missing url
http://localhost:50000/c2mp-peer.js, line 127 (col 35)

This is likely a bug in Construct 2 or a third party plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console


In the background you can see that the networking text box says:
Connected Logging in...
Logged in with alias: Fred (AEEP)
Joining Room...
Kicked (either could not connect to host or host quit)

The host's game does not appear to change in any way, they can still move and shoot and there are no new messages or peers.

Expected Result
Before updating, I would have a networked game.

Affected Browsers
  • Chrome: Cannot connect to Firefox or visa versa, but can connect to a Chrome host.
  • FireFox: YES
  • Internet Explorer: Does not support multiplayer

Operating System and Service Pack
Windows 7 ultimate

Construct 2 Version ID
Construct 2 r176 (64 bit) beta
You do not have the required permissions to view the files attached to this post.
B
11
S
3
G
1
Posts: 98
Reputation: 1,062

Post » Thu Aug 07, 2014 3:19 pm

Getting the exact same error (in firefox only).
B
28
S
8
G
5
Posts: 429
Reputation: 7,007

Post » Fri Aug 08, 2014 11:10 am

I tried my new game in preview mode in firefox and got this one when joining a room (chrome as host, firefox as peer & firefox as host + firefox peer):
Javascript error!
Error: RTCPeerConnection constructor passed invalid RTCConfiguration - missing url
http://192.168.1.101:50000/c2mp-peer.js, line 127 (col undefined)
This is likely a bug in Construct 2 or a third party plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console.

its not happening in chrome+chrome
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
56
S
17
G
6
Posts: 748
Reputation: 9,420

Post » Fri Aug 08, 2014 12:38 pm

Darn it. +1 to this thread.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Post » Sat Aug 09, 2014 2:12 pm

Also I got this while trying to sync an array:

Javascript error!Uncaught TypeError: undefined is not a functionhttp://localhost:50000/Multiplayer_plugin.js, line 519 (col 12)This is likely a bug in Construct 2 or a third party plugin or behavior - please report it to the developer. Subsequent errors will be logged to the console.

It's only one specific array, all the other work fine. I'll try to get a bug report, but it's only this one array in a huge project that I am unable to recreate in a small one. So, it will take a lot of time.

It should be noted this is the first new object I have tried to sync since the update (176).
B
28
S
8
G
5
Posts: 429
Reputation: 7,007

Post » Mon Aug 11, 2014 2:42 pm

Thanks, should be fixed in next build. r176 accidentally broke support for Firefox, but Chrome should be unaffected.

@Tobye - that sounds unrelated, please post a separate report following all the guidelines
Scirra Founder
B
399
S
236
G
89
Posts: 24,519
Reputation: 195,361


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 9 guests