# Share settings with the server and keep player profiles

> Send chosen settings to the game's server, where game code reads each player's value and a policy can keep another one, and let the people who share a machine...

Product: Rolly Settings 1.2.0 | Sheet: guide | Updated: 2026-11-23 | HTML: https://rolly-docs.pages.dev/settings/guides/server-settings-and-profiles/

## Share a setting with the server

A setting's **Network Share** (in the collection, category Network) says who learns its value when the player plays online:

| Network Share | The server knows it | Other players know it | For |
|---|---|---|---|
| Off (default) | no | no | Everything the player's machine applies alone |
| Server | yes | no | Values the server acts on: aim assist, a hit marker the server sends |
| All Players | yes | yes | Values other players see or vote on: a co-op difficulty, a colour-blind team colour |

Only toggles, sliders and choices with their own options can be shared, since the server checks a value against the setting alone. A Key Binding, an Action or a choice with **Options From Binding** (devices, languages) and Network Share set is a setup error. The built-in library shares nothing.

While the collection shares a setting, Rolly Settings adds a **Rolly Settings Server Values** component on the server to every player's player state: a player state class of your own needs no change, and players who join late, listen-server hosts and dedicated servers get one too. A dedicated server reads the collection from Project Settings. Standalone games get the component as well, so game code reads one API everywhere.

The player's machine sends the values the player kept: when the player joins, to each new player state after travel (a seamless travel included, where an `AGameMode` keeps the player's controller and gives it a new player state), and after each Apply, or after the confirmation for a setting that asks for one, at most four times a second; a Requires Restart value reaches the server after the restart, when it takes effect. A send the server's limit dropped goes again after 2 seconds. Until they arrive the server holds each setting's default; **Has Owner Values** and **On Owner Values Arrived** say when they landed. On the player's machine the setting keeps applying the player's own value: the server's value counts where the server decides.

### Read the values in game code

**Find Rolly Settings Server Values** (category Rolly|Settings|Network) with a player state gives that player's component, then **Get Server Bool Value**, **Get Server Float Value**, **Get Server Option Value** or **Get Server Value** with the setting's tag. Bind **On Server Value Changed** to react. On the server every shared value is known; on the player's machine the player's own; on other machines only All Players values, and the rest read as defaults.

For a co-op difficulty vote, the game mode reads Get Server Option Value for each player state in the game state's Player Array and takes the lowest. On the player's own machine, the Rolly Settings Subsystem's **On Server Values Changed** fires when the server's answer changes.

```cpp
#include "GameFramework/PlayerState.h"
#include "Network/RollySettingsServerValuesComponent.h"

bool UMyAimAssistComponent::WantsAimAssist(const APlayerState* Player) const
{
	// Server only: a missing component (nothing shared) means the feature is off.
	const URollySettingsServerValuesComponent* Values = URollySettingsServerValuesComponent::FindForPlayerState(Player);
	return Values != nullptr && Values->GetServerBoolValue(AimAssistTag);
}
```

### Let the server keep another value

![A server value in the detail](https://rolly-docs.pages.dev/settings/_files/Images/ServerSettings.png "Aim Assist set to Precise while the server keeps Off: the row's server icon and the detail's line with the policy's reason.")

Make a Blueprint (or C++) subclass of **Rolly Settings Server Policy** and override **Review Value**: it gets the player state, the setting's tag and the requested value. Set **Value** to what the server keeps, in the setting's text form (an option Id, a number, true or false), and **Reason** to a sentence the player reads ("Ranked matches turn aim assist off."); a **Value** left unwired keeps the request. Return false to keep the value the server had (the default before the player's first). A refusal, or a value the setting cannot have, writes a `LogRollySettings` line naming the setting and the player. Name the class in Project Settings > Plugins > **Rolly Settings** > Network > **Server Policy Class**, or call **Set Server Policy** on the Rolly Settings Server Subsystem when the rules change (a ranked match starts): the requests the server holds get the new policy's answer at once, and the players' rows follow. Set Server Policy lasts until the map changes; set it again in the new map, for example in the game mode's Begin Play. The policy runs on the server only.

What the player sees:

- **The row** shows the server icon, and its detail says "This game's server uses Off." with the reason. Narration adds "server uses Off". A Requires Restart notice wins the row's icon; the detail line stays.
- **Every shared row's detail** says who learns it: "Shared with the server when you play online." or "Shared with the server and the other players when you play online.".
- **After each connection to a server** (joining, a reconnect, a map change without seamless travel), a toast names what the server keeps differently.

![The join toast](https://rolly-docs.pages.dev/settings/_files/Images/ServerJoinToast.png "The toast after joining a server that keeps two settings differently.")

The server icon, the server line and the toast show only in a networked game; offline the player's value is the only one.

### What the server refuses

The server checks every send before the policy sees it:

- An unknown or unshared tag, a value the setting cannot have, or a text over 64 characters is refused with a `LogRollySettings` line; the server keeps its value. A slider's value is clamped to its range and snapped to its step instead.
- A send with more values than the game shares is dropped, and so are sends beyond 8 in a burst or 4 a second from one connection (a split-screen guest counts with the player whose connection it shares).
- A send of more than 256 values fails the engine's RPC validation, which disconnects the client.

## Let players keep profiles

![The Profiles panel](https://rolly-docs.pages.dev/settings/_files/Images/ProfilesPanel.png "The Profiles panel with three profiles, the active one first, and New Profile.")

A profile holds a player's own settings (Per Player scope), control preset and keys. Settings with Shared scope (display, graphics, sound devices) stay the same for every profile. Turn profiles on in Project Settings > Plugins > **Rolly Settings** > Profiles > **Enable Profiles**; **Max Profiles** (8) and **Profile Name Length** (24 characters) set the limits. Lowering Max Profiles later leaves out the profiles made last; their values stay in the file.

- **On first use** every local player gets a profile named "Player 1" (by the player's place in split screen) holding the values and keys the player has, so nothing is lost.
- **The settings screen** shows a chip with the active profile's name in its header (in a Side Drawer and on narrow screens, its icon and key only). The left trigger, P (at its place on the player's keyboard layout), a click or a tap opens the Profiles panel. The chip never takes focus, so narration names it only among the screen's hints ("Left trigger, Profiles."); the active profile's name is read in the panel.
- **Choosing a profile** offers Use This Profile, Rename, Delete and Cancel. Use This Profile applies its values at once and brings back its keys; the toast says "Now using Kim.".
- **New Profile** asks for a name (the field holds "Profile" and the lowest free number) and starts from the game's defaults: Per Player defaults, the first control preset, the presets' own keys. At the limit the row is replaced by "8 of 8 profiles. Delete one to make another.".
- **Delete** asks first, and deletes the profile's values and keys. The only profile and one another player uses cannot be deleted; deleting the active one switches to the first free profile, and its changes that wait for Apply go with it.

![Switching with waiting changes](https://rolly-docs.pages.dev/settings/_files/Images/ProfileSwitch.png "A switch while a change waits for Apply: Cancel, Discard and Switch, Apply and Switch.")

Changes to the player's own settings that wait for Apply would be lost by a switch, so the panel asks first; changes to Shared settings keep waiting. A switch is refused while a new value waits for the player's confirmation.

### Names

![Naming a profile with a gamepad](https://rolly-docs.pages.dev/settings/_files/Images/ProfileName.png "Rename Profile with a gamepad: the on-screen keyboard in name mode, the counter under the field.")

A keyboard player types the name in the field; a gamepad or touch player types on the on-screen keyboard in name mode, which capitalizes the first letter and each one after a space (see [Search a category screen](https://rolly-docs.pages.dev/settings/guides/search/) for its keys). The keyboard's Done key (the menu button on a pad), Enter and Save confirm; B and Escape cancel. With a pad the caret starts after the name: hold X to delete it. Names are unique ignoring case, and control characters, brackets and quotes never type. In Chinese, Japanese and Korean a gamepad player is asked to connect a keyboard, since those languages are typed through the system's input method.

### Split screen

![Profiles in split screen](https://rolly-docs.pages.dev/settings/_files/Images/ProfilesSplitScreen.png "Player 1's Profiles panel above; Kim, Player 2's profile, shows in use with the P2 badge.")

Each local player has an active profile, and a profile is active for one player at a time: another player's profile shows locked with that player's badge and "In use", and cannot be switched to, renamed or deleted. A player's controller slot keeps its profile for the next start. With profiles on, give every player a key file of their own with **RollySettingsPlayerInput** (see [Set up controls and key rebinding](https://rolly-docs.pages.dev/settings/guides/controls-and-rebinding/#give-split-screen-players-their-own-keys)).

### Profiles from your own menus

The Rolly Settings Subsystem's nodes (category Rolly|Settings|Profiles) give your own menus the same: **Get Profiles**, **Get Active Profile**, **Switch Profile**, **Create Profile**, **Rename Profile**, **Can Delete Profile**, **Delete Profile**, **Is Profile Name Taken**, **Count Profile Waiting Changes** and **On Profiles Changed**. Switch Profile and Create Profile take what to do with waiting changes (Apply or Discard). **Open Profiles** on the Rolly Settings UI Subsystem opens the panel from a menu of yours; Project Settings > Plugins > **Rolly Settings Screen** > **Profiles Screen Class** replaces it.

Profiles are saved with the other values (RollySettings.ini, or your Storage Class; see [Save settings and cook their assets](https://rolly-docs.pages.dev/settings/guides/saving-and-cooking/)): the list in `[RollySettings.Profiles]`, each profile's values in `[RollySettings.Profile.<Id>]` and its preset and keys in `[RollySettings.Profile.<Id>.Meta]`. The player's own section keeps the values in use, so turning profiles off later keeps each player's current values.

## Limits

- A shared value does nothing on the server by itself: your game code reads it where the server decides.
- Profiles belong to the machine they were made on; a backup or cloud copy needs RollySettings.ini (or your storage) and each player's key file.
