Multiplayer + chat example not working correctly

  • Hello!

    I'm wondering if the multiplayer still works as it should with construct 2? I know construct 2 is being phased out, so I'm wondering if the signaling server is not working correctly?

    I was working away on a project and noticed I couldn't send messages from the peer to the host, so I decided to test the chat example without modifications, and it seems like its not working either. I open two Firefox browser tabs and log in to the chat example. In each tab it only lists one user which is the one I logged in with for the specific tab. Then after a few seconds, the host one that I opened up first suddenly gets kicked out.

    So any info on this Ashley?

  • The same signalling server is used for both C2 and C3, and it's still actively supported and will be for the foreseeable future.

    I would guess you're having unrelated connectivity issues. Try changing the room name in case someone else is in the room as host who you can't connect to.

  • Right, so I also updated to the latest beta version since I hadn't done that already, then I changed the game instance name to be unique and tried again. This time I joined as host the first time in one tab. The second tab I entered as a peer, but again, no other peer present, I was the only one listed in there. Same in host tab, the peer didn't show up in the list.

    After a few seconds, I got kicked from the peer tab. The host tab kept running.

    I don't know what the unrelated connectivity issue there could be to be honest. My internet connection is working fine, maybe I accidentally set some setting somewhere.

    EDIT: The messages shows I connected to the chat room both times, one time as host and one time as peer. But for some reason none of them shows up in eachothers lists and no messages are shown for the other user when typing them in and sending them.

    Thanks.

  • I just checked the browser console log and saw this error message:

    "WebRTC: ICE failed, add a TURN server and see about:webrtc for more details".

    Hopefully it's helpful someway.

  • Looking at about:webrtc in the browser show a log with some errors. No clue what they mean so hopefully someone else does:

    (registry/INFO) insert 'ice' (registry) succeeded: ice (registry/INFO) insert 'ice.pref' (registry) succeeded: ice.pref (registry/INFO) insert 'ice.pref.type' (registry) succeeded: ice.pref.type (registry/INFO) insert 'ice.pref.type.srv_rflx' (UCHAR) succeeded: 0x64 (registry/INFO) insert 'ice.pref.type.peer_rflx' (UCHAR) succeeded: 0x6e (registry/INFO) insert 'ice.pref.type.host' (UCHAR) succeeded: 0x7e (registry/INFO) insert 'ice.pref.type.relayed' (UCHAR) succeeded: 0x05 (registry/INFO) insert 'ice.pref.type.srv_rflx_tcp' (UCHAR) succeeded: 0x63 (registry/INFO) insert 'ice.pref.type.peer_rflx_tcp' (UCHAR) succeeded: 0x6d (registry/INFO) insert 'ice.pref.type.host_tcp' (UCHAR) succeeded: 0x7d (registry/INFO) insert 'ice.pref.type.relayed_tcp' (UCHAR) succeeded: 0x00 (registry/INFO) insert 'stun' (registry) succeeded: stun (registry/INFO) insert 'stun.client' (registry) succeeded: stun.client (registry/INFO) insert 'stun.client.maximum_transmits' (UINT4) succeeded: 7 (registry/INFO) insert 'ice.trickle_grace_period' (UINT4) succeeded: 5000 (registry/INFO) insert 'ice.tcp' (registry) succeeded: ice.tcp (registry/INFO) insert 'ice.tcp.so_sock_count' (INT4) succeeded: 0 (registry/INFO) insert 'ice.tcp.listen_backlog' (INT4) succeeded: 10 (registry/INFO) insert 'ice.tcp.disable' (char) succeeded: \000 (generic/ERR) UDP socket error:Internal error at /builds/worker/checkouts/gecko/dom/network/UDPSocketParent.cpp:248 this=000000B01BE94400 (ice/ERR) ICE(PC:1592494910760000 (id=10737418244 url=http://localhost:50000/)): failed to find default addresses (generic/ERR) UDP socket error:Internal error at /builds/worker/checkouts/gecko/dom/network/UDPSocketParent.cpp:248 this=000000B01BE95800 (ice/ERR) ICE(PC:1592494910760000 (id=10737418244 url=http://localhost:50000/)): failed to find default addresses (ice/WARNING) ICE(PC:1592494910760000 (id=10737418244 url=http://localhost:50000/)): peer (PC:1592494910760000 (id=10737418244 url=http://localhost:50000/):default) has no stream matching stream PC:1592494910760000 (id=10737418244 url=http://localhost:50000/) transport-id=transport_0 - fb357d33:9ecea536fc0342876df01b4af9fcb7c5 (generic/ERR) UDP socket error:Internal error at /builds/worker/checkouts/gecko/dom/network/UDPSocketParent.cpp:248 this=000000B01C980400 (ice/ERR) ICE(PC:1592495604393000 (id=10737418245 url=http://localhost:50000/)): failed to find default addresses (generic/ERR) UDP socket error:Internal error at /builds/worker/checkouts/gecko/dom/network/UDPSocketParent.cpp:248 this=000000B01C981800 (ice/ERR) ICE(PC:1592495604393000 (id=10737418245 url=http://localhost:50000/)): failed to find default addresses (ice/WARNING) ICE(PC:1592495604393000 (id=10737418245 url=http://localhost:50000/)): peer (PC:1592495604393000 (id=10737418245 url=http://localhost:50000/):default) has no stream matching stream PC:1592495604393000 (id=10737418245 url=http://localhost:50000/) transport-id=transport_0 - 7c8b47d9:29b40645b4237d2ffef340f6307a0b4c

  • Interesting... seems like it works fine in Chrome, but not in Firefox O_o.

    Might be a Firefox restriction that has come into place in a recent update like the privacy functions that block tracking etc. that is set by default. Guess I'll have to experiment with it a bit and see if some settings work.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Unfortunately, I haven't found anything that helps with it in Firefox.

    Again, it seems like connecting itself works, and joining rooms. But as soon as messages are to be sent, it never happens.

    It would be great if someone could test the chat example project in their latest version of Firefox and in the latest version of Construct 2 and report here if it works or not for you.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)