Chivalry Medieval Warfare Server Setup Guide

Chivalry Medieval Warfare Server Setup Guide

Selection 029

Chivalry Medieval Warfare Server OS Supported

  • Windows
  • Linux*

 

*Linux runs on wine and requires additional configuration.  Its the standard UDK.exe script that many game servers use.

 

Chivalry Windows Server Setup

1: Download and install the server files via Steam (Library > Tools). The game itself must also be installed on the machine you’ll be running it on.

2: Log in to your router and forward the following ports to the local IP of the machine that will be hosting the server – UDP: 7777, 7778, and 27015

3: In UDKGame\Config (“C:\Program Files (x86)\Steam\steamapps\common\chivalry_ded_server\UDKGame\Config”), open “PCServer-UDKGame.ini” in Notepad. Under the section [Engine.GameReplicationInfo], put your desired server name after “ServerName=”. Make sure to save your changes when you’re done. Its recommended that you make a copy of this before editing!

4: On your desktop, create a new text file called “Start Chivalry Server.txt” (or whatever you want really). Paste the following inside of it:

CD “C:\Program Files (x86)\Steam\steamapps\common\chivalry_ded_server\Binaries\Win32”
UDK.exe AOCTO-Battlegrounds_v3_P?steamsockets -seekfreeloadingserver

4.2: Change the text file extension from .txt to .bat (new name “Start Chivalry Server.bat”.  If you do not see file extension you need to set windows to show them. (link opens in new window.

5: Double click the .bat file and you should first see a command prompt pop up with the text above, then after a few seconds a second (blank) command prompt looking window with the Chivalry icon should come up. Feel free to close the first one after the second comes up.

6: Open the game and try to find your server! If you’re hosting it on the same computer you’re playing on you can open the console (press ` (tilde)) and enter the following command:

open 127.0.0.1

6.2: If your server is running properly it should plop you right on in shortly after hitting enter.

7: When people join (and maybe when they leave?) your server you should see a Log message in the server window that popped earlier.

8. To manage your server look at the RCON commands below.

 

 Chivalry Linux Server Setup

Needed Packages

  1. sudo apt-get install lib32gcc1

Install SteamCMD

  1. sudo adduser steam
  2. su – steam
  3. mkdir /home/steam/steamcmd
  4. cd /home/steam/steamcmd
  5. wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz
  6. tar -xvzf steamcmd_linux.tar.gz

Install Wine 1.7.0

  1. sudo add-apt-repository ppa:ubuntu-wine/ppa
  2. sudo apt-get install wine1.7
  3. export WINEARCH=win32

* export sets wine to run as 32 bit instead of 64bit as it crashes constantly in 64bit.

Starting steam

  1. cd /home/steam/steamcmd
  2. ./steamcmd.sh
  3. login <YOUR STEAM USERNAME: REQUIRED!!>
  4. Enter your password
  5. force_install_dir <Path you want chivalry to be in>
  6. app_update 220070
  7. quit

Create Startup Script!

  1. nano start.sh
  2. cd (dirof install)
  3. wine UDK.exe AOCFFA-Arena3_P?steamsockets -dedicated=true -seekfreeloadingserver -Port=7777 -QueryPort=7778 -maxplayers=32
  4. save script and exit

Create Second Script

  1. nano startWscreen.sh
  2. screen -S chivalry -d -m ./start.sh
  3. Save script and exit

Copy Audio Files to Chivalry Directory

  1. wget http://kaahane.viuhka.fi/data/X3DAudio1_7.dll
  2. mv X3DAudio1_7.dll <YOUR GAME DIRECTORY/Binarys/Win32/

Set Permissions for Script/game

  1. sudo chmod ug+x start.sh
  2. sudo chmod ug+x startWscreen.sh
  3. sudo  chmod ug+x <GAMEDIRECTORY>/Binaries/Win32/UDK.exe
  4. sudo chmod ug+rw * -R (Do this in the directory you set your game in.  DO NOT DO IT FOR YOUR ENTIRE SYSTEM)

Start your server

  1. ./startWscreen.sh

Server is now running.

 

Chivalry Server RCON Commands

adminlogin
Followed by the server’s admin password, allows you to log into a server as an admin.

adminlogout
Logs out as admin

getinfo or whois
Gives a user’s SteamID. This SteamID is in hexadecimal; if you want to convert it to a normal Base 10 number, I’d recommend you use the Windows calculator (put it in Programmer mode, click Hex, paste in the value, and click Dec). Most hexadecimal-to-decimal converters on the web can’t handle the large values and will mess up at least the last two digits.

adminkick
Kicks a user.

adminkickban
Kicks a user and permanently bans them (i.e. puts their IP/NetID in the config file).

adminchangemap
Changes to a different map.

AdminRestartMap
Restarts the map.

AdminChangeTeam
Swaps a selected player to the opposite team.

AdminChangeTeamDamageAmount
Change team damage amount on-the-fly; from 0.0 (no damage) to 1.0 (full damage)

AdminCancelVote
Cancels a vote in progress

ShowDebug
Not strictly an admin command, but for admins it shows the server’s tick rate, that is how many milliseconds the server is taking to render a single frame. Servers are set to run at 30Hz, so this should be at or below 33.33..

aoc_slomo
Change the server’s speed to the string argument (from 0.001 to 2.0; that is, 0.1% to 200% speed)

pause
Pauses the server iff the server has admin pausing enabled

aoc_consoledamage
Prints damage amounts to the console for testing purposes. Affects all players on server.

aoc_endGame
Ends the current match.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.