Skip to main content
Getting Started

Quick Start

1. Pick the adapter​

Project Settings → Plugins → Host Migration → Adapter Class

  • Steam Adapter for Steam. See Steam.
  • EOS Adapter for Epic Online Services. See EOS.
  • Null for LAN and local testing.
  • Your own Blueprint or C++ adapter for anything else.

Or in Config/DefaultGame.ini:

[/Script/HostMigrationCore.HostMigrationSettings]
AdapterClass=/Script/HostMigrationCoreSteam.HostMigrationAdapter_Steam

If DefaultPlatformService=Crossplay and Adapter Class is empty, the plugin tries to load the Crossplay Lobby adapter from the CrossplayHostMigration module. If the class cannot be loaded, the plugin falls back to Null and logs a warning. Check the LogHostMigration startup line Host migration enabled, adapter ... to confirm the active adapter before testing late joins.

2. Optional: set a wait map​

Clients wait while the new host starts up. By default they stay in the match world, with the connection closed. The engine's usual disconnect travel to the main menu is held back. If you would rather have them wait somewhere else, create an empty map and set it as Client Wait Map.

3. Mark actors that should survive​

Add the Host Migration Id component to every actor that should be carried over, including the player pawn. PlayerStates, the GameState and the GameMode are always carried over and don't need it.

4. Mark the state to carry over​

Tick SaveGame on each variable that should survive (variable details → Advanced → SaveGame). In C++:

UPROPERTY(SaveGame)
int32 Score = 0;

Components with SaveGame variables are saved with their actor.

5. Let the host leave properly​

When the host leaves on purpose, call Leave Session instead of open <map>, and the subsystem's Quit Game instead of the engine's Quit Game. The match continues on another player's machine. Closing the game window is handled for you.

Pause menu widget: the Leave button calls Leave Session and the Quit button calls the subsystem&#39;s Quit Game

That's it. Crash the host (or close it) and the match continues on one of the other players.

Next steps​