The client key
Your game calls Simpl with a client key. It starts withck_live_.
- Never put a key in a file you commit to git.
- Never use a server key (
sk_live_...) in a game. The plugin refuses it with the errorserver_key_refused.
Three ways to give the key
The plugin checks these in order. The first one that is not empty wins.- The command line option
-SimplClientKey=ck_live_... - The environment variable
SIMPL_CLIENT_KEY - The
ClientKeyproject setting
SetClientKey. It returns false if the key is a server key.
The player ID
CallInitializeSimpl once, with the ID of the player. This is your own ID for the player.
- It must not be empty.
- It can be at most 128 characters.
- It cannot have control characters.
InitializeSimpl with a different ID, the plugin leaves the open lobbies of the old ID.
If you want to show names, put one in the player state. See Lobbies.
The version tag
The version tag is the name of a server build. A build with that name must exist and be ready. The plugin takes the tag from:- The
VersionTagsetting. If it is empty, then - Project Settings > Description > Project Version.
- Queue: Simpl uses the
version_tagof the queue. It uses the tag in the host’s player state only if the queue is set to use the version from player state. - Start Match in a lobby with a queue: Simpl uses the
version_tagof the queue. The tag the plugin sends is ignored. - Start Match in a lobby with no queue: Simpl uses the tag the plugin sends.
NO_BUILD_FOR_VERSION. See Troubleshooting.
Project settings
Open Project Settings > Plugins > Simpl Client. They are saved inConfig/DefaultGame.ini.