V Rising Dedicated Server using WINE om Linux

V Rising Dedicated Server using WINE om Linux 1 - steamsplay.com
V Rising Dedicated Server using WINE om Linux 1 - steamsplay.com

This article is meant to help someone install and start the V Rising dedicated server, which is presently a Windows-only application, so that it may be used for online play.

Step 1: Requirements (OS, supporting applications)

Linux Dedicated Server System Requirements

First of all, this guide requires you to bring your Linux knowledge to the table. You can continue reading with that (as a guide and with a command over your own OS if it is different from the one I’m talking about).

This guide explains how I set up the server to run for my friends and me. It’s a mix of information I found about Conan Exiles (and another, possibly windows-based dedicated server) as well as configuration information for V Rising.

Because the game runs via windows emulation on Linux you won’t want this running on a raspberry pi. I am running this on a machine that has 32GB. It seems like the Linux emulation Engine ((not the wine managed windows process) starts increasing its memory consumption over time.

HEY Devs: GIVE ME A PERFECT LINUX DEDICATED SERVER, I DON’T WANT TO EMULATE THAT FOREVER.

Moving on. Linux systems are required. Most Linux systems will work but the top contenders get top marks. I’m using Debian 10 (buster).

NOTE: ROOT IS ESSENTIAL to complete the following steps. You can either sudo all of them, or just run a shell as root. Both will work.

First, you need to ensure that you have the right packages. That means you’ll need the correct repository options. These packages will not be available through the’main’ channel alone. Here are the sources data I used from the file /etc/apt/sources.list

deb http://deb.debian.org/debian/ - [debian.org]  buster main contrib non-free
deb-src http://deb.debian.org/debian/ - [debian.org]  buster main contrib non-free

deb http://security.debian.org/debian-security - [debian.org]  buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security - [debian.org]  buster/updates main contrib non-free

deb http://deb.debian.org/debian/ - [debian.org]  buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ - [debian.org]  buster-updates main contrib non-free

After you modify your sources, be sure to run apt-get update or apt-update You can then run the following commands from there:

dpkg --add-architecture i386
apt-get install wine wine32 wine64 xvfb mingw-w64 mingw-w32 screen steamcmd

You will see a much longer list of packages to go with the above list. Just make sure you have sufficient disk space and can accept the recommended/recommended packages. Technically allA of the list I have is not required, but wine complains about missing gecko (and mingw, so this list should include all of those. My view is that the server software will only throw at you errors.

Next, create an account non root under which you will use the software. Set a password.

useradd -m -d /game/vrising vrising
passwd vrising

Once you have a user account, all other activities will take place under that account. Login now.

Step 2: Downloading V Rising with steamcmd

You should ensure that your shiny new account has the following variables:.bashrc.bash_profile..profile. Add them, save/quit and logout/login the following command to verify that they are present:

env|grep WIN

Next, create a directory for steam client to save game files to. IE /game/vrising/vrising_files and run the following command to download the game.

NOTE: Everything between’steamcmd’ and ‘+exit’ is a single-line command

steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir /home/vrising/vrising_files +login anonymous +app_update 1829350 +exit

That’s all.. congrats.

Step 3: The server is started for the first time

After downloading the game, you can run it the first time. You won’t NOT be playing on it yet. This is to let the files unpack, generate config files, and so forth. The following command should be run. Let it sit for a few minutes until you see repeated messages indicating the server is performing essential maintenance.

NOTE: Everything starting at ‘xvfb_run” and ending at ‘-log’ are one-line commands.

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine /game/vrising/vrising_files/VRisingServer.exe -log

-- repeating messages below--
[FileUserList] Loaded FileUserList from: Z:\home\vrising\vrising_files\VRisingServer_Data\StreamingAssets\Settings\adminlist.txt, Added: 0
[FileUserList] Loaded FileUserList from: C:\users\vrising\AppData\LocalLow\Stunlock Studios\VRisingServer\Settings\adminlist.txt, Added: 1
[FileUserList] Loaded FileUserList from: Z:\home\vrising\vrising_files\VRisingServer_Data\StreamingAssets\Settings\banlist.txt, Added: 0
[FileUserList] Loaded FileUserList from: C:\users\vrising\AppData\LocalLow\Stunlock Studios\VRisingServer\Settings\banlist.txt, Added: 0

Once you’ve seen a few of these messages, it is safe to hit CTRL+C. Now it’s the time for configuration!

These are the most important files you will care about:

Game settings

/game/vrising/vrising_files/VRisingServer_Data/StreamingAssets/Settings/ServerGameSettings.json

Server settings

/game/vrising/vrising_files/VRisingServer_Data/StreamingAssets/Settings/ServerHostSettings.json

Admin list

/game/vrising/vrising_files/VRisingServer_Data/StreamingAssets/Settings/adminlist.txt

  • Game settings are all that is going on IN. Day night cycles, harvest rates, etc.
  • Server settings can include server name/description, join password, and server name/description.
  • Admin list is a simple thing – I have added myself to my server but honestly haven’t used the service yet, so I don’t know what you can do.

To make your game fun, you can edit the first two. Go to steamid.dot.io, enter your username, and then grab the’steamID64’ numbers. You can save/quit by putting that on a single line (if you have multiple admin staff members).

Now you can actually play the game.

Step 5: How do you use’screen? to run the server

Now that you have the game ready open, as a seasoned Linux user you will know that there is a catch. As soon as your terminal/putty/whatever session closes the game gets cut off, and you clearly don’t want to leave a terminal window open all the time. This is where the other apps we have installed come in.

This command should be executed

screen -t Linux

It looks like it did nothing. Not quite. The shell is now running as a detachable session. Once you start the server, you can detach the file, close the terminal window, and return it later. To see what this means, try something simple like ‘top. Once you have the screen displayed, press CTRL-A, then release the mouse and press D’. Notice the message “detached From”? Now run ‘ps-ef Nice, right? To reconnect, run’screen –x’ and reattach the session to it in the same session. Now you can quit from the top and log out from the session to see screen ending’.

Let’s now put it all together and launch the game. Note that the TERM setting is what tells the screen how to use colors and special characters formatting.

screen -t Linux

xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine /game/vrising/vrising_files/VRisingServer.exe -log

This will launch the game. If you want to quit it running, you can try connecting from a client system.

Assuming that you are in the same network as the server and that there is no firewall on the Linux box, launch V Rising.

Play -> Play Online -> Find Servers. -> Display all Servers. -> Direct Connect

You will be asked to enter IP/port information. You can enter just the IP. To continue, enter your password if you have it set in the config file. You’re now in the game!

You should now see the connection message on the server terminal. Scroll down and you will be able to view it. You can now CTRL+A or D the session. Your game is now running

Step 6: How do I update the server when it is needed?

You can perform any maintenance such as game updates, OS updates, etc. To connect to the session, log in to your dedicated server account and use’screen-x’. CTRL+C to close the program. The command that we used earlier to download and install the game will be executed again here. It will validate against Steam servers, grab any updates, and close the session. Run the xvfb_run again to launch the game. It’s that easy.

You can put these commands in script files so you don’t need to go through shell history or save txt files or anything to copy/paste. The world is your oyster, so enjoy.

Step 7: Firewall rules and Port Forwarding

The headache of security is essential to your life.

I can help, and the game doesn’t use a ton of ports as other games I’ve played. In any case – the ServerHostSettings.json file gives you the major hint here with the ‘port’ and ‘queryport’ fields, but it’s not everything you need to know.

These terms will need to be accepted/forward/etc

UDP: 9876

UDP & TCP: 9877

Friends from all over the world can join you by opening these ports and forwarding to/from their game server. You will also be able to search for your server in the main multiplayer servers list search area.

A GUI-driven home router should be fairly straightforward to set up. For more information, you will need to consult your documentation. These should be sufficient for a Linux-based gateway. You can modify them as necessary to make your home network more secure. These are formatted from a “rules” file for a debian firewall, but you can also put ‘iptables’ in front of each line. The rest of (-A onwards will work fine. 10.89.0.200 serves as my game server.

-A INPUT -i eth0 -p udp -m udp --dport 9876 -j ACCEPT
-A INPUT -i eth0 -p udp -m udp --dport 9877 -j ACCEPT
-A INPUT -i eth0 -p tcp -m tcp --dport 9877 -j ACCEPT

-A FORWARD -d 10.89.0.200/32 -i eth0 -p udp -m udp --dport 9876 -j ACCEPT
-A FORWARD -d 10.89.0.200/32 -i eth0 -p udp -m udp --dport 9877 -j ACCEPT
-A FORWARD -d 10.89.0.200/32 -i eth0 -p tcp -m tcp --dport 9877 -j ACCEPT

NOTE: I am going to assume that you have IP MASQ correctly configured if you use iptables. UPNP would be a nice bonus, but it is not necessary.

Happy Vamping

 

Written by KriegTiger

This is all for V Rising Dedicated Server using WINE om Linux hope you enjoy the post. If you believe we forget or we should update the post please let us know via comment, we will try our best to fix how fast is possible! Have a great day!


Be the first to comment

Leave a Reply

Your email address will not be published.


*