Skip to main content
Features

Map changes and leaving

ServerTravel​

ServerTravel, seamless or not, works as usual. After the change, the new map's state streams to clients from scratch, starting with a full snapshot.

  • During a map change (from the host's travel until the new map is loaded), a lost connection does not start a migration, because the state is being replaced right then. If the host dies exactly then, Unreal's normal disconnect handling applies.
  • A client that cannot follow a non-seamless travel while the host is still in the session rejoins the host on its new map (state RejoiningHost) instead of being dropped. This happens on EOS, where the host closes its P2P socket when it loads the new map. See EOS.
  • A snapshot is only used on the map it was taken on. Right after a seamless travel, before the first snapshot of the new map has arrived, losing the host is not migrated either.
  • Players who stepped away keep their PlayerState data across map changes. Their pawn belonged to the old map, so they get a new one.
  • Players moving with a seamless travel are not treated as leaving.
  • Seamless travel keeps PlayerStates only through your PlayerState's CopyProperties, as usual in Unreal.

Leaving the match​

Use Leave Session (with the map to go to) instead of a plain open <map>:

WhoWhat happens
HostHands the match over (graceful migration) before travelling. The others play on.
ClientJust leaves. The host keeps the player's state for a rejoin.

A host that leaves with a plain open ends the match for everyone, as it would without the plugin.

Quitting the game​

How the host quitsWhat happens
Closes the window (X, Alt+F4)Hands the match over, then closes about 1.5 s later. The window hides at once. Turn off with bHandOverOnWindowClose.
Quit Game node of the subsystemSame: hands over, then quits.
The engine's Quit Game node or the quit commandExits at once. The others treat it as a crash and migrate after the timeout, losing progress since the last snapshot.

Use the subsystem's Quit Game for your quit button. Window-close handling works in packaged and standalone games, not in PIE. If your game already handles the window close (e.g. an "are you sure?" prompt bound to OnWindowCloseRequested), it is asked first.

Begin Graceful Migration is the lower-level version for the host: it sends a final snapshot and tells everyone to migrate. Leave about a second later, so the messages get out.

Begin Graceful Migration on the Host Migration subsystem, then a 1 second Delay, then Open Level