Construct 3 r309

You're viewing a single comment in a conversation. View all the comments
  • 6 Comments

  • Order by
  • Nice! Always like to see improvements on the Multiplayer features. Would also love if there would be a multiplayer host migration if the host disconnects from the peers.

    • I thought this is what this update was, but it seems like it isn't :(

      I tested it with the updated chat example, and if the host disconnects it's just as before, no one can chat anymore. Maybe they forgot to updated chat example?

      • No this isn't about host migration. The update has something to do with the hosts connection to the signalling server (which coordinates the players to the rooms).

        Hopefully we will get a real host migration soon. It is annoying for players to loose the session because the host did alt+f4 or lost it's conncetion.

        • host transfer. Today I took a test and got it. I made a condition of, in the peer group... If peer disconnects and peerid is the same as hostid then all peers leave the room and re-enter. By doing this someone will be the new host and the game can continue, but you need to record data from where the original host left it depending on your game. I will make a tutorial.

        • [-] [+]
        • 3
        • Ashley's avatar
        • Ashley
        • Construct Team Founder
        • 3 points
        • (1 child)

        The change is that the host can disconnect from the signalling server and still communicate with peers. This does not change the fact that if the host disconnects it ends the game. (Host migration is very complicated and I suspect it would be error prone too - you could probably give it a go with events anyway and get the peers to rejoin a new room)

        • Ashley is right, it's not easy to move to another one... But I have a tip for you, now with the condition "if the host leaves" we can recover the layout by saving the current data and whoever is there and flags as a host will continue the game . In my case in the game pixel bombarda (in scirra arcade) I save the terrain data in a string.