Rolly Docs

Support split screen and multiplayer

Give every local player their own settings, keys and settings screen, and know what a networked game shares.

Sheet
31 of 45
Rev
1.2.0
Updated
On this sheet
Figure 1. A two-player split: the first player's settings screen in the top half while the second player keeps playing.

Local players

  • Scope decides who owns a value. Shared values belong to the machine and are applied once, whatever the number of local players; Per Player values belong to one local player (see Add your own settings). The engine bindings are Shared; the controls and camera bindings Per Player, so each split-screen player’s Field of View and Camera Shake change only their own camera.
  • Each player reads their own. Get the Rolly Settings Subsystem from that player’s widget or controller; its nodes read Shared values and that player’s Per Player values. A Shared value another player changes fires On Setting Changed for every player.
  • Confirmations and waiting values of Shared settings are shared between players (see Read and change settings).
  • Saved values of each player go to [RollySettings.Player.<platform user index>]; on desktop the platform user index is the controller slot (the first player is 0), so a player’s saved values follow the controller slot, not the person.
  • Keys: on PC, give every player a key file of their own with RollySettingsPlayerInput (see Set up controls and key rebinding); without it players overwrite each other’s keys.
  • Profiles let the people who share a machine keep their own settings and keys whatever controller slot they take (see Share settings with the server and keep player profiles).

The settings screen in split screen

Each player has a screen stack in their own part of the screen, and one player’s screen leaves the other players in the game. The screen nodes take the player controller of the player whose screen they open, so pass each player’s own. A split-screen player’s badge (“P2”) shows in the header, or in the footer on short areas. The Side Drawer docks to the outer edge of the player’s part of the screen.

Rolly’s subtitle display shows once over the whole viewport with player 1’s subtitle values, and the first-launch screen asks player 1 only, in player 1’s part of the screen.

A player with a menu screen open keeps their input from the game; the viewport ignores input only while every local player has one open. The optional Menu Input Mode Tag (Project Settings > Plugins > Rolly Settings Screen) is on a player’s Enhanced Input mode while a screen takes that player’s input, so mapping contexts that exclude it stop for that player only.

Networked games

Settings are local unless their Network Share says otherwise: each machine keeps and applies its own values, and a dedicated server creates no Rolly Settings player subsystems. Shared settings reach the server, and All Players settings every other player, on each player’s player state (see Share settings with the server and keep player profiles). Each split-screen player sends their own values. Game Speed applies only to a Standalone game: in a networked game its row is hidden and the world keeps full speed, since a networked world runs at one speed for everyone in it.

The screens are local too, one stack per local player. Screens pause only a standalone game, so in the default Play In Editor setup (a listen server and a client) the settings screen opens without pausing.

Play In Editor with several windows

In Play In Editor every window has its own game instance and values, but some engine state is shared by the whole editor process (console variables, scalability, GameUserSettings), and all windows write the same RollySettings.ini with platform user index 0 for their first player. A shared change made in one window can therefore show in another. The same holds for keys: the first player of every window uses the same Enhanced Input key file, and input in any editor window can switch the prompts of every Play In Editor window. These are Play In Editor artifacts, not problems in packaged games.