SCP: Secret Laboratory

SCP: Secret Laboratory

Not enough ratings
SCP Dedicated server guide (PowerShell)
By Robomikel
guide to easily install SCP and set up a dedicated server with PowerShell.
   
Award
Favorite
Favorited
Unfavorite
prerequisites
Recommended: Create a windows user: non-admin to install, run steam-server-manager, and game server.

Open and forward ports for the game server.

Firewall Ports (can be changed later)
TCP - 7777
UDP - 7777
Steam-Server-Manager files from github
open PowerShell and change directory to where you want SSM and the server to be installed.
Server files will be in the Steam-Server-Manager folder.
cd G:\Downloads\servers\
before first Run
Edit any default vars in Steam-Server-Manager\config-default\scpserver_defaut.ps1.
################## Change Default Variables ################# # Server Port $global:PORT = "7777" ##############################/\##############################
First run
You should be in the directory for Steam-Server-Manager
if not
Open a PowerShell terminal NOT as admin.
change Directory to Path\To\Steam-Server-Manager
cd Path\To\Steam-Server-Manager
Install PS command
./ssm install scpserver


It will ask if using Anonymous login for steamCMD.
Use Anonymous Login?
Press Enter for Anonymous
After Install and Before starting
Open/Edit to View this file it will give you the server config file location in app data.
Path\To\Steam-Server-Manager\scpserver\Variables-scpserver.ps1

Should look something like this
C:\users\user\appdata\roaming\SCP Secret Laboratory\config\7777\config_gameplay.txt

Find and Edit :
config_gameplay.txt

add email:
contact_email: my@email.com

Note from Dev
----------------------------
# Requires admin email for public server or will not run
# contact_email: default

# Your server won't be visible on the public server list -
# If you are 100% sure that the server is working, can be accessed from the Internet
# and YOU WANT TO MAKE IT PUBLIC, please set up your email in the configuration file
# ("contact_email" value) and restart the server.
-------------------------


Add Server Name:
#Server main settings
server_name: MY Dedi Server

Server files will be in
Path\To\Steam-Server-Manager\scpserver\

Steam-Server-Manager

Edit to View
Path\To\Steam-Server-Manager\scpserver\Variables-scpserver.ps1
Launch Param , editable Server Port and Discord webhook

Make note of your Public IP
# Server EXT IP ${global:EXTIP} = "x.x.x.x"

You can directly connect to the server with the PublicIP:Port x.x.x.x:7777
once you start it


Steam-Server-Manager PowerShell Commands
- Starts SCP server process
./ssm start scpserver
- stop process for SCP server
./ssm stop scpserver
- stops and starts process for SCP server
./ssm restart scpserver
- Validate App ID files
./ssm validate scpserver
- checks process for SCP server
./ssm check scpserver
- updates server files
./ssm update scpserver
- Creates zip folder of server files in backups
./ssm backup scpserver
folder (Downloads portable 7Zip)
- Creates Scheduled Task to monitor and send Discord alert if found off
./ssm monitor scpserver
- Send Test Discord Alert
./ssm discord scpserver
- get details on server and host
./ssm details scpserver
- Downloads and overwrites ssm github files
./ssm ssm update