Host Migration
Add the HostMigrationCore plugin to an EOSCore project to migrate a listen server match when its host leaves or loses connection. A remaining player takes over as host, other players reconnect, and the plugin restores the match state you configured it to save.
EOS lobby ownership can transfer to another player when the owner leaves. HostMigrationCore handles the listen server handoff, reconnection, and state restoration. See Lobby Sessions for the EOSCore lobby settings.
Set up EOSCore
- Enable HostMigrationCore and follow its EOSCore adapter setup to configure
NetDriverEOSCorewith EOS P2P sockets. - Sign each player in with EOS Connect and keep all players in the match's EOS lobby for the duration of the match. If you create the lobby through the Online Subsystem, set
bUseLobbiesIfAvailable = true. - Follow the HostMigrationCore Quick Start to configure the wait map and select the actors and SaveGame variables to carry over.
Blueprint flow
From the pause menu, get the Host Migration Subsystem and call its Leave Session node. This lets the host hand over the match before leaving. Use the subsystem's Quit Game node for an intentional exit from the game.
Follow the Blueprint Overview to wire the menu and show reconnect status. In a match with multiple clients, test both a normal departure and an unexpected host exit. Check that the clients reconnect and that an example variable, such as a score marked SaveGame, is restored.