Barotrauma submerged disease private server setup tutorial

 Preparation tools:

One server (Ubuntu system)

A home computer (network is fine)

Preparation Phase


Log in to the server via SSH.

The server needs to download three software.

The window management tool Screen. Used to suspend the server to run in the background.

SteamCMD. It is used to download the Abyssalia server.

Dedicated server for submerged disease.

There is only one software download required for your computer.

WinSCP. Used to transfer files.

WinSCP Search WinSCP directly to find the official website, no need to repeat.

Download the window management tool Screen

sudo apt-get install tmux screen

Finish.

Download SteamCMD

For security reasons, you should create a new account without ROOT permission to open the server.

useradd -m steam

Create an account steam, where steam can have another name, this article uses steam as an example.

Don't forget to set a password after the account is created.

passwd steam password to be set

Prepare to install SteamCMD, check if your server is 64-bit before starting, if so, enter the following command on the ROOT account

sudo dpkg --add-architecture i386

sudo apt update

sudo apt install lib32gcc1

sudo apt install lib32stdc++6

If not, skip directly.

Then switch your account to the designated opening account

on steam

Enter the corresponding password and enter the user directory after completing the account switch

cd ~

Create a folder for storing SteamCMD files separately.

mkdir steamcmd

cd steamcmd

wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz

tar -xvf steamcmd_linux.tar.gz

Then enter the following command to run SteamCMD 

./steamcmd.sh

If you have a prompt of xxx/steamcmd: NO such file or directory, please execute the following command after ensuring that the above commands (especially the additional commands that need to be executed for 64-bit) have been executed correctly

sudo apt-get -y install libcurl4-gnutls-dev:i386

Once complete, execute the following command again

./steamcmd.sh

Download the Dedicated Server for Diving

The dedicated server for submerged disease is quite special. It is tied to the game. Ordinary users cannot download it directly on Steam. They need to use anonymous login to download.

login anonymous

Next, download the Dive Dedicated Server and verify integrity.

app_update 1026340 validate

1026340 is the Steam application ID of the dedicated server for submerged disease. You can find the Steam application ID corresponding to each application on Steam on SteamDB.

Once the installation is complete, you can enter quit to exit SteamCMD, execute the following command to return to the root directory of the current account, and view the file list. Emphasize that -a must be included! The ls command without -a cannot see hidden folders starting with .! .

cd ~

ls -a

After execution, you should be able to see two new folders, one is Steam and the other is .steam, open the .steam folder first.

cd .steam

Then create a link to steamclient.so. Note that the following operations depend on whether your machine is a 64-bit server, if it is a 64-bit server, please follow the command below

mkdir -p ~/.steam/sdk64

ln -s ~/steamcmd/linux64/steamclient.so ~/.steam/sdk64/steamclient.so

If your machine is not a 64-bit server, please follow the command below (change 64 to 32)

mkdir -p ~/.steam/sdk32

ln -s ~/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so

This section of command is very important, it is an important part to ensure the normal operation of the server, and it must not be ignored. If the steamclient.so cannot be found, the submerged server cannot operate normally.

steamclient.so is generally located in the linux64 and linux32 folders under the SteamCMD directory. If you manually install SteamCMD as in this article, then this folder should be located in the same directory as steamcmd.sh.

It should be pointed out that the location of the folder .steam depends on which user you are running SteamCMD. If you cannot find the .steam folder under the current user folder, please refer to Step 3 of the SteamCMD installation step in the preparation stage Sections in red and section 4, check that you have followed.

Run Phase
After creating the link, enter the following command, .

cd ~/Steam/steamapps/common/'Barotrauma Dedicated Server'

Edit serversettings.xml.

vi serversettings.xml

Press i to enter edit mode and find a few lines to modify.

name="server name"

port="27015"

queryport="27016"

IsPublic="True"

The name line is the name of the server.

Whether the IsPublic line can be directly searched by the server, if it is false, it can only be found by searching the IP.

The port line is the server port, which is set to open in the firewall rules. Note that it is a UDP port and must be opened.

queryport is a server query port, which is a UDP port like port. If the server can only join by searching IP, this port does not need to be opened.

Don't care whether True and False follow case, it won't affect.

Press ESC to exit edit mode, enter :wq to save the file and exit.

Open a new process to hang the server in the background

screen -R server

server can be changed to another name. After the process is created, execute the server start command

./DedicatedServer

Note that the program executed here is not DedicatedServer.exe, the part in red is the difference part, please do not confuse it.

After starting the server, press Ctrl + A + D to hang the server in the background and return to the main process. You don’t need to worry about interrupting the server disconnection process when performing other operations, and you don’t need to worry about disconnecting the server after disconnecting. , the server program will also be interrupted, so that you can hang the background and exit the server terminal.

Return to the server background if necessary.

screen -r corresponding process name (or process ID)

If only a new process is opened, you can switch directly without entering the name

screen -r

If you don’t remember what your process is called, use this command to list the ID, name, and running status of the current process

screen -ls

delete process

ID of the kill process

Improved process name

screen -S original name of the process to be changed -X new name

Module installation
Run WinSCP, configure. 

Enter the IP for the host name, and the port number for the Linux SSH login port.

Upload the mod, and move all the mod folders to the LocalMods folder in the submerged server directory.

Make the following changes in config_player.xml (this file will be generated after running the server program).

Then find the following snippet.

 <contentpackages>

    <!--Vanilla-->

    <corepackage

      path="Content/ContentPackages/Vanilla.xml" />

    <regularpackages />

 </contentpackages>

Change the whole paragraph to the following content (just pay attention to the format, the content is for reference only)

  <contentpackages>

    <!--Vanilla-->

    <corepackage

      path="Content/ContentPackages/Vanilla.xml" />

    <regularpackages>

      <!--MOD name 1-->

      <package

        path="LocalMods/MOD名1/filelist.xml" />

      <!--MOD name 2-->

      <package

        path="LocalMods/MOD名2/filelist.xml" />

      <!--MOD name 3-->

      <package

        path="LocalMods/MOD名3/filelist.xml" />

    </regularpackages>

  </contentpackages>

If you are not sure about the name of the MOD, you can first install the MOD on the local game client, run the game and enable the MOD, then open the config_player.xml folder of the local game, and find the relevant content.

Attached: There is a language setting at the beginning of config_player.xml, modify it to Simplified Chinese, the NPC dialogue in the game will be Chinese dialogue, if there is no setting or no corresponding language pack, the NPC dialogue will be English. 

Guess you like

Origin blog.csdn.net/chiwang_andy/article/details/130561663