Why does RestartGame fail to restart networked clients?
I'm currently working on getting the game I'm creating to restart properly, both on the server and on each of the clients. I've tried calling the RestartGame function in my custom GameMode class, and it manages to restart the server, but the clients just freeze and stop working.
Anyone who knows how to restart a networked game and that can help me?
Oh man I might've gotten it!
The ?listen is very important - I saw in one of these answers somewhere that it puts the server in listen mode so that the clients can reconnect after it loads the map.
If I have bUseSeamlessTravel true or false, it doesn't seem to matter, nor change the behavior. If I call SeamlessTravel instead of ServerTravel it crashes.
And this was the first time ServerTravel worked for me and didn't crash - but I deleted a debug output ... I think the debug output was causing the crash.
Anyway this worked for me. Good luck.
answered Oct 27 '14 at 09:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here