Want to make a lan game, with friends. but when the host creator leaves the game, the game either crashes or closes. i don’t want to this system. I just want host migration, peer to peer handover. I couldn’t find anything in youtube. and the post or documents so complicated. What do you recommend. I’m not a very good developer.
If the host suddenly disconnects you have several clients without anyone to talk to: How do they reconvene? Do you have a “help I disconnected server”?
Now that they are talking again, who is the best host? They need to spend some time to calculate ping and network quality.
A host has been decided, but is everyone on the same page? Re-synchronizing game state must take place, everyone could have a different position based on their ping/lag.
If you only support intentional disconnects by the host, you could cut out a few steps, like reconvening. And figuring out the server-side game state will be much easier.