ReaspPro - CoopKit Sessions: Co-op Lobby

Online sessions for co-op games: host, find and join, a lobby with ready checks, join in progress and reconnection, with Blueprint nodes and a C++ API.

CoopKit Sessions takes a co-op game from the main menu to the match. It sits on top of the engine's Online Subsystem.

Null (LAN play and tests) works out of the box. Steam and EOS are switched on by configuration, and the automated tests do not cover them.

Key features

  • Host, find and join. With Blueprint async nodes (On Success / On Failure) or the C++ subsystem. Search results expose host name, player counts, ping, map and your own attributes.

  • Lobby with ready checks. One component on the game state counts down, then travels everyone to the match map, seamlessly when the game mode uses seamless travel.

  • Join in progress. A running match stays visible and joinable, or closes to newcomers, as the session profile says.

  • Reconnection. A client that loses the connection finds the same session and joins it again. The host keeps a record of every player and tells your code when one comes back, so you can restore their data.

  • Session profiles and lobby rules. Both are data assets with their own editor: a Summary of what the Online Subsystem receives and a Validation tab.

  • Kick and ban. The host removes a player and tells them why, and that client does not try to reconnect. A banned player is refused on join, reconnect and direct connection until the session ends. Bans go by online id and are not saved.

  • Groups. Find Sessions For Group and Quick Play For Group list or join only sessions with room for the whole group.

  • Setup check for Steam and EOS. A setup window in the editor and a check in the running game list the usual reasons why online play works in the editor but not in a build, each with a fix.

  • No base classes to inherit from. No game mode, game state or player controller of the plugin's own.

How to use

  1. Enable the plugin.

  2. Call Host Session, Find Sessions and Join Session from your menu.

  3. Add the lobby component to the game state of your lobby map.

Demo maps

A demo lobby and match map ship with the plugin, ready to play: click Play, and a panel of buttons takes you through host, find, join, ready and the match with the mouse.

Tested

A server and two clients in one editor process, with 150 ms packet lag and 2% packet loss on every connection, for listen and dedicated servers.

The tests cover:

  • Host, find and join.

  • Join in progress.

  • Ready checks.

  • Seamless travel.

  • Reconnection.

Limitations

  • Steam and EOS are not covered by the automation tests, so check them by hand on two machines.

  • The setup check cannot see the Steam client, and the Steam and EOS setups are not tested with a real login.

  • One local player per game instance hosts, searches and joins; split-screen guests share the first player's session.

  • Online Subsystem EOS is marked Beta in UE 5.4 and 5.5.

Links

Technical Information

Features:

  • Host, find and join. With Blueprint async nodes (On Success / On Failure) or the C++ subsystem. Search results expose host name, player counts, ping, map and your own attributes.

  • Lobby with ready checks. One component on the game state counts down, then travels everyone to the match map, seamlessly when the game mode uses seamless travel.

  • Join in progress. A running match stays visible and joinable, or closes to newcomers, as the session profile says.

  • Reconnection. A client that loses the connection finds the same session and joins it again. The host keeps a record of every player and tells your code when one comes back, so you can restore their data.

  • Session profiles and lobby rules. Both are data assets with their own editor: a Summary of what the Online Subsystem receives and a Validation tab.

  • Kick and ban. The host removes a player and tells them why, and that client does not try to reconnect. A banned player is refused on join, reconnect and direct connection until the session ends. Bans go by online id and are not saved.

  • Groups. Find Sessions For Group and Quick Play For Group list or join only sessions with room for the whole group.

  • Setup check for Steam and EOS. A setup window in the editor and a check in the running game list the usual reasons why online play works in the editor but not in a build, each with a fix.

  • No base classes to inherit from. No game mode, game state or player controller of the plugin's own.

Code Modules:

  • CoopKitSessions (Runtime)

  • CoopKitSessionsEditor (Editor)

  • CoopKitSessionsTests (Editor)

Number of Blueprints: 4

Number of C++ Classes: 44

Network Replicated: Yes

Supported Development Platforms: Windows: Yes, Mac: No

Supported Target Build Platforms: Windows

Documentation Link: https://reasp.pro/projects/coopkit/sessions/ (newest version; Docs/README.md in the plugin matches yours)

Example Project: None. The plugin includes demo maps: L_SessionsDemo, L_SessionsMatch, L_SessionsOverview.

Important/Additional Notes:

  • Plugin version: 1.1.0

  • Unreal Engine versions: 5.4, 5.5, 5.6, 5.7, 5.8

  • Engine plugins required: OnlineSubsystem, OnlineSubsystemUtils

  • Stability checked against: UE 5.4, 5.5, 5.6, 5.7, 5.8

  • Steam and EOS are not covered by the automation tests, so check them by hand on two machines.

  • The setup check cannot see the Steam client, and the Steam and EOS setups are not tested with a real login.

  • One local player per game instance hosts, searches and joins; split-screen guests share the first player's session.

  • Online Subsystem EOS is marked Beta in UE 5.4 and 5.5.

  • Network: listen server and dedicated server. The dedicated server is tested in the editor. The plugin also compiles into a packaged dedicated server built on Unreal Engine 5.8 from source, and two clients join it in a smoke test. On other engine versions you compile the Server target yourself.

  • Online services: Online Subsystem Null (default, LAN), Steam or EOS by configuration (not covered by automated tests).

  • Blueprint API and C++ API.

1 Like