It is currently Tue Mar 19, 2024 10:50 am

RUNNING WITH RIFLES Multiplayer

test

Game servers 55 List provided by EpocDotFr | Players online 104


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sun Sep 21, 2014 9:50 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
Here's how to set up and handle server updates conveniently through Steam using SteamCMD. Using SteamCMD, you minimize the effort to update the server files down to one command and only download changes since last time.

While this tutorial is for Linux, it should be easily adapted for Windows too.

Once you have everything set up, simply calling the following command will make the update happen.
Code:
./steamcmd.sh +runscript steamcmd_update_rwr.txt


So, let's prepare the stuff on your Linux box to get to that, we'll start from a situation where you don't have any previous server files in use. I'm going to assume you're not using the root account.

Create a folder for RWR server files, and access it
Code:
mkdir rwr_server
cd rwr_server


Download SteamCMD and do the first-time launch
Code:
curl -O http://media.steampowered.com/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
./steamcmd.sh
(type quit in SteamCMD to exit)


Download the update script
Code:
wget http://www.runningwithrifles.com/wp/steamcmd_update_rwr.txt


Fill in your Steam account credentials in steamcmd_update_rwr.txt at <username> and <password>
Code:
nano steamcmd_update_rwr.txt
(work)

- Steam has this to say about using SteamCMD and Steam accounts:
Quote:
Note:For security reasons it is recommended that you create a new Steam account just for your dedicated servers.
Note:A user can only be logged in once at any time (counting both graphical client as well as SteamCMD logins).

- Personally I'm using another account, but not sure if it's really that relevant as long as you don't have several Steam clients logged in. Just remember your password is written in readable text in the script which is probably not the brightest idea out there. Feel free to edit the script if you want it to e.g. prompt the password instead.

Do the update
Code:
./steamcmd.sh +runscript steamcmd_update_rwr.txt

- Steam Guard will probably ask for a confirmation code, get it from your e-mail and fill it in, it's only asked once

That's it for the setup!

Next time when there's an update, just execute Do the update -part and you're done.

You may at this point need to re-copy your server specific changes (at least server_settings*, admin_settings*, could be others) in case SteamCMD just overwrote some of your files - I try to avoid touching those files in general but some changes are bound to happen eventually to the templates. It's a good idea to keep a copy of your own files for this case. There will be improvements in this stuff in the future, but we're not in future yet so just keep those backups.


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 3:14 pm 
Offline

Joined: Mon Apr 06, 2015 2:42 pm
Posts: 4
Thanks pasik, I usually install gaming server on my centos with a single steamcmd command line like

./steamcmd.sh +login <username> <password> +force_install_dir /rwr/ +app_update 270150 validate +quit
./steamcmd.sh +@sSteamCmdForcePlatformType windows +login anonymous +force_install_dir /rust/ "+app_update 258550 -beta experimental" validate +quit (RUST)

Btw on a first run in CentOS 7 I'm noticing your rwr_server is bound to libraries usually not installed on CentOS like X11, Ogre because everything is done on command line on that os usually.

Is it possible to do like in Starbound and many other dedicated server, they are not linked to visual components so a command line OS based like CentOS can also run the server without having to install a few gigabytes of dependencies

Btw keep it up great game !

_________________
steam


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 4:13 pm 
Offline

Joined: Mon Apr 06, 2015 2:42 pm
Posts: 4
I think I got it to run under CentOS 7 64-bit, didn't need many X11 components finally, didn't realized you were redistributing most of the libraries

just yum -y install libX11.i686 libXext.i686 libXdmcp.i686 is enough under CentOS 7, it has just installed like 5MB of components so not a big deal

_________________
steam


Top
 Profile  
 
PostPosted: Tue Aug 04, 2015 9:08 am 
Offline

Joined: Mon Aug 03, 2015 2:09 pm
Posts: 2
you say that you will make this guide more thorough later to include DHCP with samba. is that going to happen any time soon or have you not planned it yet?


Top
 Profile  
 
PostPosted: Sat May 14, 2016 9:53 am 
Offline

Joined: Sat May 14, 2016 9:46 am
Posts: 1
Hi, Thanks for the guide, I have a quick question regarding the login though :

pasik wrote:
- Steam has this to say about using SteamCMD and Steam accounts:
Quote:
Note:For security reasons it is recommended that you create a new Steam account just for your dedicated servers.
Note:A user can only be logged in once at any time (counting both graphical client as well as SteamCMD logins).

- Personally I'm using another account, but not sure if it's really that relevant as long as you don't have several Steam clients logged in. Just remember your password is written in readable text in the script which is probably not the brightest idea out there. Feel free to edit the script if you want it to e.g. prompt the password instead.


Doesn't the secondary account requires to have the game too ? Because when I am trying to install it with a fresh steam account I get the ERROR! Failed to install app 'xxxxxx' (No subscription)

Any help would be appreciated ;)


Top
 Profile  
 
PostPosted: Tue Nov 21, 2017 1:35 pm 
Offline

Joined: Sat Nov 18, 2017 9:36 am
Posts: 1
Hi Bisb, I just got the same error. Can you update if you were able to fix or not?


Top
 Profile  
 
PostPosted: Wed Nov 22, 2017 8:09 pm 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
Oh right, that's probably very true that such a thing would happen. I happen to have the game activated on both accounts of course :?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group