Squad 44

Squad 44

 This topic has been pinned, so it's probably important
[Server Hosting] How to set up a dedicated server.
Please note Complete root access is required in order to host a game of Post Scriptum.

Hardware Requirements
CPU: i7 7700k / i7 8700k / i7 6700k OC 4.5 or 4.4
Memory: 32GB Ram / 3200Mhz
Disk Space: 20GB
OS (Server): Windows Server / Linux
Access Type: Root Access / Remote Desktop

Software Requirements
For Windows:
Visual C++ Redistributable for Visual Studio 2013 vc_redist.x64.exe
Visual C++ Redistributable for Visual Studio 2015 vc_redist.x64.exe
DirectX End-User Runtimes (June 2010)

For Linux:
GLIBC 2.17 or higher

Server Installation
WINDOWS

1. Download SteamCmd and extract to your preferred directory.

2. Open SteamCmd or create a file called "update server.bat" with the following contents.

SET STEAMCMD="C:\steamcmd\steamcmd.exe"

%STEAMCMD% +login anonymous +force_install_dir "C:\servers\postscriptum_server" +app_update 746200 validate


3. Run the .bat file to install the server files. When the installation is complete, you can close the window.

When it's finished it will say "Success! App '746200' fully installed."

4. Go to the server folder ("C:\servers\postscriptum_server"), and create a new file called "start.bat" with the following contents. This is the file you will use to start the server. It should contain the follow line:

start PostScriptumServer.exe Port=10027 QueryPort=10037 FIXEDMAXPLAYERS=80 -fullcrashdump -log

Your server is now installed, however you must still configure your network to allow players to connect to your server from the internet. You can find Post Scriptum's connection ports in the "Ports to Open" section below.


LINUX

First of all this guide assumes you've got a Linux Distribution installed with 64 bit architecture. Most hosting companies will run 64bit.

Other than that, this guide needs no Linux experience whatsoever and will be in completely "for dummies" mode.

Anything in this guide that comes after the symbol $ is a command that you're supposed to run in the Linux terminal.

PROTIP: The Linux terminal autocompletes with TAB. So if you have a file or folder called "testfolder" you can write "test" and press tab and it will autofill to testfolder!

A suggested software to use to connect to your Linux server terminal is PUTTY. https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe


INSTALLING THE LINUX SERVER
1. Log in as root and install the software screen and a library needed for SteamCMD

Debian/Ubuntu: $ apt-get install screen lib32gcc1
CentOS: $ yum -y install screen glibc libstdc++ glibc.i686 libstdc++.i686

2. Create a user you want to use for the game server.

$ adduser username

Enter a password for the user of your own choosing. You may have to change the password with "sudo passwd username" When prompted for full name, room number, work phone, home phone, and other just press enter. When asked if information is correct write Y and press enter


3. Log on to the new user account: ssh username@localhost and then the password you selected.

4. Make a directory named PostScriptumServer

$ mkdir PostScriptumServer

5. Enter the folder

$ cd PostScriptumServer

6. Download and extract SteamCMD using one of these commands

$ wget -q -O - https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar xzv

$ curl -so - https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar xzv

NOTE: Some have complained about getting an untrusted/license error of some sort. If that is the case, try this:

$ wget -q -O - http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar xzv

$ curl -so - http://media.steampowered.com/installer/steamcmd_linux.tar.gz | tar xzv

7. Create a script for installing (And later updating) the first server instance

$ echo "./steamcmd.sh +login anonymous +force_install_dir server1 +app_update 746200 validate" > updateserver1.sh

8. Make the script executable

$ chmod +x updateserver1.sh

9. Install the server instance this same command is used later to update the server when a new version is released.)

$ ./updateserver1.sh

10. When it's finished it will say "Success! App '746200' fully installed." Quit SteamCMD by writing

$ exit

and hitting enter.

11. Create a script for starting the server instance

$ echo "cd server1; ./PostScriptumServer.sh Port=10027 QueryPort=10037 FIXEDMAXPLAYERS=80" > startserver1.sh

12. Make the script executable

$ chmod +x startserver1.sh

13. Open a screen window to run the server in then enter that screen

$ screen -dmS server1
$ screen -r server1

14. Start your server

$ ./startserver1.sh

Screen allows the server to run even if you've shut down your SSH session (putty).

EDITING SERVER CONFIG FILES

FOR WINDOWS

1. Log into your server using your preferred remote client application.

2. Navigate to C:\Servers\postscriptum_server\PostScriptum\ServerConfig

3. Using your preferred text editor you can modify the various configurations of the servers.

FOR LINUX

1. Log on as your the user account running the server and go into the Serverconfig folder located in PostScriptumServer/server1/PostScriptum/ServerConfig in our example.

$ cd PostScriptumServer/server1/PostScriptum/ServerConfig

2. Open the file you wish to edit with a text editor (in this case nano).

$ $EDITOR Server.cfg

Edit file. When you're done, save the file. If you are using nano save the file with ctrl+o and then enter. Exit nano with ctrl+x.

STOPPING THE SERVER

1. SSH to your linux server as the user running the squadgameserver. (Not root) Once in the terminal, open up the screen for said server instance, in above example called server1

$ screen -r server1

2. You will now see the PostScriptumServer log window, press CTRL+C and it will shut the server down. After that you can start it again with your startcommand.


If we update the game, you will just need to run the install/update.bat to fully update your server to the latest build. However it is recommended to delete all server files (Except the ServerConfig folder) each time you update to fully reinstall. (This ensures no conflicts exist)

Note: If you encounter any error to the server failing to launch after update, delete files and reinstall.

SERVER COMMANDS / ADMINISTRATION

Please note that Post Scriptum uses almost the exact same commands / configuration of Squad servers. You can read more about commands and configuration here: https://squad.gamepedia.com/Server_Administration

Running Multiple Servers

If your server is powerful enough, you can do the above guide from scratch but with 2 instead of 1. This will install a new server to that same directory, which you can use as a second server. You must also duplicate the server start file to use the new directory. You will also need to set different ports in the start file. (Port=10047 QueryPort=10067) (We recommend making +10 port difference up or down)

Repeat this step any number of times for several servers.


Server not appearing in Server Browser?

Make sure you open the correct ports either on your Game Hosting Panel or within Windows Firewall. This is the most likely cause of servers not appearing in the browser.

Game port = UDP & TCP: 10027
Steam query port =UDP & TCP: 10037
Steam query port+1 = UDP and TCP 10038
RCON Port = UDP & TCP 21114

(If you added more servers do this for each new ports you've added)


RENTING A SERVER
If you are interested in renting a fully configured server, you can now order one from our official partners

Bluefang Solutions: https://www.bluefangsolutions.com/shop/post-scriptum/
Nitrado: https://server.nitrado.net/eng/offers/postscriptum
ZAP Hosting: https://zap-hosting.com/
Last edited by SnazzyDuckling; Nov 19, 2020 @ 4:56am