Chivalry: Medieval Warfare

Chivalry: Medieval Warfare

25 ratings
Atlas's "Kind of Comprehensive" Guide on Setting Up a Dedicated Server
By Anime Jones
This is a guide on setting up a dedicated server along with some other stuff I think is useful to know. There are probably other guides explaining the same thing but I think this could have other info that might be useful as it goes into detail.
   
Award
Favorite
Favorited
Unfavorite
Introduction
______________________________________________________________________________
DISCLAIMER
By no means am I an expert at this. I found out how to do this with a bit of digging around Google.
______________________________________________________________________________

So in this guide, you're going to learn how to make a server, but before you start there are somethings you need to know/have/do.

  1. Make sure you have enough space for it! The server can take up 600Mb depending on if you use custom maps and mods.

  2. Know how to port forward, as I will not be explaining that.

  3. Get Notepad++ if you do not already have it. Just do it...

  4. Also, make a shortcut to your Steam folder. It is normally located in the Program Files (x86) folder.
Basic "Not So Basic" Setup
After you have done whatever you had to do for above, you must download the dedicated server file. Hover over LIBRARY and click on TOOLS. In there find Chivalry: Medieval Warfare Dedicated Server. Download that to your steam folder.

If you choose the default location, it should be placed in G:\Steam\steamapps\common. (I have it in my G drive but yours is probably in your C drive). The folder name is "chivalry_ded_server". Open that up and go to the folder "Binaries". There is going to be either "Win32" or "Win32" & "Win64" If your computer runs Windows 64 bit then go into "Win64", and if you use 32 bit, go into "Win32".

Go into that folder and find "UDKLogging.exe". You may not have the .exe at the end because your extensions are set to hidden. Create a shortcut to desktop by right-clicking -> Send to -> Desktop (create shortcut)

Right-click the shortcut and click on properties. Inside the line of text next to "Target:", go to the very end and add this;

TO2-Crypts?steamsockets -dedicated=true -seekfreeloadingserver

Make sure to add a space from "UDKLogging.exe" and that line. The first part of the line tells the map name and gamemode. TO2 is horde mode and the map is crypts. That first part is the map your server will always start on. If you want the server to start on Arena in FFA the replace TO2-Crypts with AOCFFA-Arena.

Click "Apply" then "OK".

Now go back to your "chivalry_ded_server" folder and open "UDKGame". In there go into "Config" Find the file called "PCServer-UDKGame.ini". Again, you may not see the .ini part of it. Right click that file and click Edit with Notepad++.

In the first section called [Engine.GameInfo] you can change the maximum number of players. and some other values. For me I have changed the line "bAdminCanPause" to true so I can pause games. Also make sure "bChangeLevels" is set to true if it isn't, unless you want your server running one level only.

In the next section called [Engine.AccessControl] change all lines that say false to true. There should be nothing set to false in that section. You can set your in-game passwords here, your server password and administrator password. Add a line or two and type in AdminPassword= and/or ServerPassword. I highly reccomend you make an administrator password, but if you dont want any passwords just leave it blank after the "=" sign.

In the next sections you can change lots of values and such but I haven't used them yet so be cautious when playing around with them. Press Ctrl+F and type in "Maplist" and click find next. You should see many lines containing it. This section is very important as it contains many things for in game. You can fool around with these lines on your own.

Every line that has "Maplist" in it is one of the maps on your server that you can play. There should be most default ones there. You might notice some maps are not there, and that is because those were originally workshop levels and I will teach you how to add those later. In this list you can remove any maps you dislike.

Then do Ctrl+F again and search for "ServerName". In this section you can change your server name and your Message of the Day. After you have finished that make sure to save the file by clicking save at the top left. The icon in the tab under all the buttons (ribbon) should turn from red to blue, telling you it saved. Note that Notepad and Notepad++ can be used interchangably.

Now it become a bit more tricky. You have to port forward the ports 7777, 7778 & 27015 all as UDP. If you do not have a clue on what I am talking about then search up a tutorial on how to port forward.

Make sure you have followed these steps very carefully. And now if you opened the shortcut from earlier it should start your server and you can start playing with your friends.
Batch File
You can leave your server as it is above, but if you're a cool kid and you want to easily add mods and maps to the server, then follow these steps.

First, create a blank text document. Rename it so it has the extension .bat. So if your file is called "Chivalry Server", then the file should look like this: Chivalry Server.bat

Put this file into: G:\Steam\steamapps\common\chivalry_ded_server\Binaries\WinXX

Then right-click it and sent it to the desktop. This will create a shortcut like before. Edit the shortcut with Notepad++ and enter this line:

@start UDKGame.exe AOCFFA-Arena?steamsockets? -dedicated=true -seekfreeloadingserver -multihome=your IPv4 Address here -Port=7777 -QueryPort=7778

In this line you see the phrase "your IPv4 address here". You probably know what this is if you port forwarded but in case you need to know; go into your start menu and search "cmd" and a console should pop up. Type in "ipconfig" and look for your IPv4 address. copy that into where it says on the line. Also change the "AOCFFA-Arena" to whatever map you want to start in.

You can create a desktop shortcut for this file and you can delete the other shortcuts and use this one instead.
Adding Custom Maps
If you want to add custom maps, it is going to get kinda messy. Just be organized and you shouldn't get lost.

Custom maps on your server must come from the Steam Workshop. Got to
LIBRARY
again and click on GAMES. Then click on Chivalry: Medival Warfare. Scroll down a bit and then click on BROWSE THE WORKSHOP. In here you can find ton of community made stuff.

On the right side click on
Map
and it should filter to only maps. Find a map you think is cool and if the creator was nice he/she will give you the map code somewhere in their description.

For my example I'm using "LTS Dungeon Map" by [gbx]Morgman. I do reccomend this map as well because it's cool. Search up the title above and this map should appear.

LTS Dungeon by Morgman

Go into the page and copy down the map code. Put that onto a text document or memo. Then right-click anywhere on the page and click "Copy Page URL". Then paste that link somewhere. What you will need is the number at the end of the URL, so in this case the number is 193123722. Click the subscribe button to download the map and you can close it after you're done.

Now go back to G:\Steam\steamapps\common\chivalry_ded_server\UDKGame\Config and open up PCServer-UDKGame.ini with Notepad++. Find "Maplist" again. Anywhere on the map list (preferrably at the bottom map) create a new line by pressing Enter. In this new blank line type in:

Maplist=

Then add in your map code you got earlier. So it should look like this.

Maplist=AOCLTS-Dungeon_P

Save and close the file. Now open your Chivalry Server.bat file using Notepad++. You can edit either the original or the shotcut as it doesn't matter which one you edit. Look at the line and go to the end of "steamsockets". Add a space and type in:

-sdkfileid=

And fill that in with your map number, so it should look like this:

-sdkfileid=193123722

Now your whole string should look somewhat like this:

@start UDKGame.exe AOCFFA-Arena?steamsockets -sdkfileid=193123722 -dedicated=true -seekfreeloadingserver -multihome=your IPv4 Address here -Port=7777 -QueryPort=7778

The @start will probably transform into the file location address so don't be worried about that. Save and close the file.
Now you must go into your Chivalry: Medieval Warfare folder located at:

G:\Steam\steamapps\common\chivalrymedievalwarfare

In there find "ChivLauncher.exe". This is the old launcher which you use to make sure your workshop files have downloaded and have unpacked. Open it up and at the bottom-right you will find a white bar that says "Click to download subscribed Steam Workshop items". Click it once and after it finishes click it again, as a double check. This can take a while if have downloaded many maps. Now click the "Play Medieval Warfare" button and it will launch chivalry. The game can take a long time to launch as it is unpacking maps.

Now start your server my opening the batch file. If you haven't opened it yet it should start downloading the map. Go into your server and open up your in game console by pressing "~" button near the top left of your keyboard. Type in "getserversdkmaps" then hit enter. If nothing pops up then you have done some step wrong. If a list appears and the Dungeon map appears then you have done it right.

Type "adminlogin youradminpasswordhere" and there should be a message that you logged on as an administrator. Now type in "adminchangemap AOCLTS-Dungeon_P" and it should switch to that map if everything was done correctly.

Congratulations! You now have working server with custom maps!
Missing Maps
Go to:

G:\Steam\steamapps\common\chivalrymedievalwarfare\UDKGame\CookedSDK

Copy the contents here into:

G:\Steam\steamapps\common\chivalry_ded_server\UDKGame\CookedSDK

It might not show up if you type "GetServerSDKMaps" but if you adminchangemap it will work. And now you should be able to vote for it. If any problems arise from this let me know.
Other Notes
Some random things that you might want to read.

Currently I have not tested using mods on my server and once I have successfully tried it then I will add another section to this guide on how to add those.

If you want to add more maps then follow the exact same steps, and on the line in your batch file add the new phrase after the one you already had. -sdkfileid=NUMBER -sdkfileid=NUMBER. Make sure to put in a space!

Sometimes you download maps to your server but you get kicked out of the server when you switch to that map. Find which map causes this (just check what map your server was on when you were kicked) and note it down. This is most likely caused by your client, as you may have played this map before and the creator updated the map and the server updated to the latest version but you have not. Go into:
G:\Steam\steamapps\common\chivalrymedievalwarfare\UDKGame\CookedSDK
And to a search for the map code. So if it was the dungeon map then I would search for;
AOCLTS-Dungeon_P.udk
It should find it. Then delete all files associated with that map. Do not be worried, you are deleting the outdated map files. Then open the old launcher again and click the bottom-right bar to download the workshop items again and launch Chivalry. Then go to your server and that map should work now.

If a creator uploads multiple maps in one page, the process is not changed.

Sources:











The whole "How To Play" section

Thank you for reading this guide, make sure to rate it and leave feedback and questions below!

4 Comments
Downzya Dec 2, 2017 @ 10:52am 
nice work I subscribed to the guide and faved it!
Jeff Jul 3, 2017 @ 9:36pm 
Alright, thank you.
Anime Jones  [author] Jul 3, 2017 @ 8:36pm 
I have no idea, I don't have DW.
Jeff Jul 3, 2017 @ 8:00pm 
What about setting up a server for Chivalry: Deadliest warrior?