By the end of this guide you will have adjusted the game rules of your SCP:SL server in config_gameplay.txt: friendly fire and its automatic punishment, the Alpha Warhead, AFK detection, spawn protection and automatic restarts after a number of rounds. You will know which values the panel sets itself and how to track down a mistake in the file.

Prerequisites

  • An SCP:SL server in your customer panel that has started at least once. The file is only created on the first start.
  • Your server's game port. You find it under Players & access → Ports.

Find the file

According to the Northwood tech wiki, on Linux the file lives in .config/SCP Secret Laboratory/config/<port>/. Each port has its own folder.

  1. Open Files & worlds → Files.
  2. Go into .config, then SCP Secret Laboratory, then config.
  3. Open the folder named after your game port and then config_gameplay.txt.

Every setting sits on its own line in the format key: value. Lines starting with # are comments. Keep the space after the colon. Save the file and restart the server afterwards.

What the panel sets itself

On every start the panel writes two values into the file. max_players gets the slot count of your plan, and enable_query is set to true. Changes to these two lines are lost on the next start. You get more slots through your plan.

Friendly fire

Key
Default
Effect
friendly_fire
false
true allows damage to your own teammates.
friendly_fire_multiplier
0.4
Multiplier for friendly fire damage.

Automatic punishment uses several detectors. Each has an …_enabled switch, limits for kills and damage, an action and, for bans, a duration:

  • ff_detector_round_* counts over the whole round. Default: off, 6 kills or 500 damage.
  • ff_detector_life_* counts over one life. Default: off, 4 kills or 300 damage.
  • ff_detector_window_* counts within a time window. Default: off, 180 seconds, 3 kills or 250 damage.
  • ff_detector_spawn_* counts after a respawn. Default: on, 120 seconds, 2 kills or 180 damage, ban for 48h.

The action (…_action) can be kill, kick, ban or noop. noop does not punish and is meant, for example, for logging only. A limit of 0 turns that limit off. With ff_detector_classD_can_damage_classD: true, Class-D personnel can hurt each other without punishment.

Warhead and rounds

Key
Default
Effect
warhead_tminus_start_duration
90
Starting value of the countdown when the Alpha Warhead is triggered.
auto_warhead_start_minutes
0
Round time in minutes after which the warhead starts on its own.
auto_round_restart_time
10
Waiting time before the next round starts.
restart_after_rounds
0
Restarts the server after this many rounds. 0 turns it off.

AFK and spawn protection

  • afk_time: 90 sets how many seconds a player may sit idle at their spawn location before being kicked. 0 or lower turns it off. SCP-079 gets 13 extra seconds because of its intro.
  • afk_kick_message is the text the player sees.
  • spawn_protect_enabled: true turns spawn protection on. spawn_protect_time sets the duration in seconds; the tech wiki lists 8 as the default.
  • spawn_protect_team: [1, 2] sets the protected teams. 1 is the MTF, 2 the Chaos Insurgency.

Common problems

Problem Cause and fix
Changes have no effect You probably edited the folder of a different port. Compare the folder name with the game port under Ports and restart the server.
The slot count jumps back The panel sets max_players to your plan's slot count on every start.
The server starts with errors after editing Often the space after the colon or a bracket in a list is missing. Compare the line with the spelling above or restore a backup.
Players get banned after respawning The respawn detector is on by default. Set ff_detector_spawn_action to kick or noop if a ban is too harsh for you.

Next steps

Before larger changes, create a backup under Backups & recovery. How to limit access with a whitelist and geoblocking is covered in Set up a whitelist and geoblocking. More slots are on the SCP:SL order page.