Dedicated server

From Pavlov VR Wiki
Revision as of 07:53, 15 May 2019 by Carlos (talk | contribs) (Running the server)

Jump to: navigation, search

Setting up a dedicated server

There are no Windows binaries, this guide is exclusively for Ubuntu Linux.

Ports: 7 - ICMP - used for pinging 7000 - UDP 7200 - UDP 7777 - UDP You can Pick the Listening port by Running the server with Command ./PavlovServer.sh -PORT="Desired Port"

Prerequisites

sudo apt-get install gdb curl

We need to create a user without privileges otherwise the server won't let us execute it, we also install some needed packages first.

sudo apt-get install lib32gcc1
sudo useradd -m steam
sudo su -l steam

After this you'll be logged in with the new user and your working directory will be /home/steam - this is important to remember.

Install Steam directly from Valve mirror.

mkdir ~/Steam && cd ~/Steam
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -

Now that we have Steam installed we can install the Pavlov Dedicated Server app.

cd ~/Steam
./steamcmd.sh +login anonymous +force_install_dir /home/steam/pavlovserver +app_update 622970 +exit

The command above is essentially the update command too, if you run it again it will check if there's a new version and update it, keep this in mind if you're planning to create an auto-update script.

Set executable permissions, you only need to do this once.

chmod +x /home/steam/pavlovserver/PavlovServer.sh

Configuring the server

Before starting the server we need to configure it, create a file at /home/steam/pavlovserver/Pavlov/Saved/Config/LinuxServer/Game.ini and open it with your preferred text editor, Vim in this case.

mkdir -p /home/steam/pavlovserver/Pavlov/Saved/Config/LinuxServer
vim /home/steam/pavlovserver/Pavlov/Saved/Config/LinuxServer/Game.ini

Below is an example of a server config file.

[/Script/Pavlov.DedicatedServer]
bEnabled=true
ServerName="My dedicated server"
MaxPlayers=50
bSecured=true
MapRotation=(MapId="UGC1668673188")
MapRotation=(MapId="datacenter", GameMode="SND")
MapRotation=(MapId="sand", GameMode="DM")
MapRotation=(MapId="bridge", GameMode="TDM")

Available game modes as of 10th of May 2019: SND, TDM, DM, GUN

We also need to Forward our Ports...

Ports: 7 UDP - "ICMP" - used for pinging 7000 - UDP 7200 - UDP 7777 - UDP You can Pick the Listening port by 
Running the server with Command ./PavlovServer.sh -PORT="Desired Port" 

Running the server

cd /home/steam/pavlovserver
./PavlovServer.sh

That's it, your server will be broadcasted automatically to the master server! :)

To silence server heartbeat:

./PavlovServer.sh | sed '/heartbeat/d'

Admin/Moderator list

In order to manage your server in-game, you gotta create a mods.txt with steamids on each line, optionally a comment after #

mods.txt has to be placed in Pavlov/Saved/Config/mods.txt

90000000000000111 #this is an invalid steamid

Google Cloud Servers

To Put A Google Cloud Server Online...

Menu -> Vpc network -> firewall rules
[Create firewall rule]
Name: pavlov server
Target Tags: pavlov-server
Source IP Ranges: 0.0.0.0/0
Protocols and Ports -> Specified protocols and ports -> UDP: 7, 7000, 7200, 7777
[save]

Ports:
7 - ICMP - used for pinging
7000 - UDP
7200 - UDP
7777 - UDP
Also whatever ports you want if you want to run multiple servers on the one box or something

Menu -> compute engine -> VM instances
create instance
- region: wherever you like
- machine type: 1 vCPU
- boot disk: Ubuntu 18.04
- boot disk -> size: 50gb
- network tags: pavlov-server
- [create]