There are currently 5 players online.
 
Warsow

 
 

Servers

1. Linux back to top


This HOWTO is taken from hangys forum thread and describes how to install a dedicated Warsow server on a standard Linux system.

1.0.1. Requirements back to top


You need a x86 (or x64, but YMMV with that) computer running an up-to-date Linux distribution, which you can access either directly or via SSH. (I will not explain how to connect to a Linux console here, because this should be clear for everybody who runs such a computer.)
I also assume that you have your favorite editor set to $EDITOR and that you're quite familiar on how to edit text files (especially server configuration files). If you stick to my guide really closely, you will also need wget, unzip and screen. However, these tools should be available on every Linux computer.

1.0.2. Installation back to top


Firstly, fetch the current Linux version of Warsow (the full version, not the update) from the official page.
wget http://www.warsow.gg/download?dl=warsow{{Warsow version}}

Secondly, create a folder where you want to place your Warsow files and switch to it.
mkdir warsow && cd warsow

Lastly, extract the archive.
tar xfz warsow_{{Warsow version}}_unified.tar.gz

Now, you have a new folder called "warsow" which contains all media, the x86 and x86_64 Linux executable. Although one could start the server right now using wsw_server, one should first edit the server's config file for one's needs.
$EDITOR basewsw/dedicated_autoexec.cfg

See Server_Settings for help with config file options.
After having done so, one could simply run the server with
./wsw_server

1.0.3. Tricks back to top


But what if the server crashes? You would have to fire it up again manually, which really sucks. ;)
We can just put the server into a loop which constantly restarts the process if it quits. To do this, simply create a text file with the name dedicated.sh with the following content.
#!/bin/sh
while true; do
./wsw_server
done

Now we need to make this file executable with
chmod u+x dedicated.sh

If you now run the file dedicated.sh, it starts the server over and over again, until you kill the loop. The bad thing about this is, that the process would run in the foreground and as soon as you close the console, your server would be gone. One could send the process into the background with adding an ampersand (&) after the command line which starts the server, but this would make you unable to access the server's console again.
Because of this, I use screen to call my Warsow server like this:
screen -A -m -d -S warsowtdm ./dedicated.sh
This launches my Warsow server in the background using a screen session named "warsowtdm" and I'm still able to re-attach it with:
screen -r warsowtdm

and detach it again pressing Ctrl+A, D.

1.0.4. Weblinks back to top


2. Windows back to top


The process is basically the same for Windows, just using different programs.

2.0.5. Requirements back to top


Pretty much the same as the Linux requirements. You need an x86 (or x64, but YMMV) PC running a fairly recent version of Windows (Win 2K or higher preferably). You will need a web browser (Internet Explorer, Firefox, etc.) and a text editor (Notepad will do).

2.0.6. Installation back to top


Download the warsow_{{Warsow version}}_setup.exe file from the Warsow download page.
Run the executable, and install Warsow. Now, open the install directory (the default is "C:\Program Files\Warsow\") and go into the "basewsw" folder. Open dedicated_autoexec.cfg and edit to your liking. You may also have to edit the dedicated_[GAMETYPE].cfg file that corresponds to the gametype you wish to run.
See SV_:_Server_settings and
Server_Settings for help with config file options.

2.0.7. Running back to top


To run your server, simply navigate to your install directory (the default is "C:\Program Files\Warsow\") and run warsow_x86.exe (or warsow_x64.exe). Currently, there is no simple way to make the process restart if it crashes, as batch scripting is much less powerful than shell scripting. Also, there is no need for the foreground/background trick in Windows, as the server window can be minimized.

2.0.8. Configuring MOTD back to top


To configure a MOTD (Message Of The Day):
  1. Create a new file in the basewsw folder from the server, name this file motd.txt (or any name you prefer, but use this name everywhere I state motd.txt).
  2. Add the message you want in this file, optionally using color codes.
  3. Place text on a new line, either using a newline character (Linux default), or newline linefeed (windows default)
  4. Set sv_MOTD to "1"
  5. Set sv_MOTDFile to "motd.txt"
  6. Restart the server, or change map
Note that MOTD can be used on any server platform, not just Linux.

2.0.9. Specific Problems back to top


These are specific problems that you may run in to while setting up or running a dedicated server.
  • Error while loading shared libraries: libcurl.so.3
    • This may occur with newer versions of Linux, which do not have the older libcurl3 libraries. You can try to install the libraries with apt-get or whatever your distro of linux uses, but if you cannot get the older version, use the next trick.
    • If you have the newer libcurl4 libraries, simply symlink to them with this command:
 ln -s /usr/lib/libcurl.so.4 /usr/lib/libcurl.so.3

  • Couldn't execute: dedicated_autoexec.cfg
    • This error occurs when you try to execute the server outside of the directory the executable is in. Simply cd into the root warsow directory (where the executables are), then run with ./wsw_server




RSSRSSRSSRSS

Copyright © 2016 warsow.gg

Warsow in social media