How do I get past this Visual Studio multiplayer error?

Get help using Construct 2

Post » Wed Nov 15, 2017 10:16 pm

Multiplayer/online functionality in my game works in Construct 2 preview, but Visual Studio 2017 Preview debugging for the UWP version of the app returns this error when connecting online:

Unhandled exception at line 111, column 13 in ms-appx://25608name.gamename/c2mp-peer.js 0xc004e00d - JavaScript runtime error: Could not complete the operation due to error c004e00d.
this.pc = new RTCPeerConnection({ "iceServers":this.mp.getIceServerList() }, { "optional": [{ "googIPv6": true }] });

Any help getting past the error would be appreciated.
B
13
S
5
G
1
Posts: 58
Reputation: 1,559

Post » Wed Nov 15, 2017 10:28 pm

Edge doesn't support WebRTC DataChannels, so you can't use Multiplayer in Edge or UWP apps either.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Thu Nov 16, 2017 2:37 pm

Ashley wrote:Edge doesn't support WebRTC DataChannels, so you can't use Multiplayer in Edge or UWP apps either.

But I thought UWP apps is how you make Xbox One apps? We've been working on an online multiplayer fighting game for Xbox One for years. How do you correctly do multiplayer on Xbox One?
B
13
S
5
G
1
Posts: 58
Reputation: 1,559

Post » Fri Nov 17, 2017 12:37 pm

Yes, and UWP apps run using the Microsoft Edge browser engine, so UWP apps support the same features as Edge. Since Edge doesn't currently support it, multiplayer is simply not supported. You could use something like websockets instead which Edge does support, but they aren't so good for real-time games, and you'll have to write a server since it can't work peer-to-peer. Alternatively you could wait for Microsoft to add DataChannel support, but there's no sign of when that will happen.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests