Kingdoms Rise

Kingdoms Rise

Not enough ratings
How to host a dedicated server
By KleinGulo
First things first. If you are looking for a quick step by step guide skip everything except the bold text.

This guide will show you how to set-up a Kingdom's Rise dedicated server. If you just want to open a temporary server to play with your friends you can use the console command “open mapname.udk” to start a server.
   
Award
Favorite
Favorited
Unfavorite
Contents
  1. Requirements
  2. Implementation
    2.1 Installation
    2.2 Access from the Internet
    2.3 Steamnetwork
    2.4 Configuration
    2.5 Run as windows service
  3. Conclusion
1 Requirements
Windows server (either a dedicated server ["root" / vServer] or your home pc)
Internet connection :P
DirectX
Microsoft Visual C++ 20XX Redistributable

As Kingdoms Rise was made with UDK (based on the Unreal Engine 3) it is not compatible to linux. Of course you can try to use Wine to set it up on a linux server but I will not cover this here. The next disadvantage of UE3 is that it needs DirectX and at least „Shader Model 3“ to run, even console applications like the KR server.
2 Implementation
2.1 Installation
To install the Kingdoms Rise Dedicated Server you can choose between the Steam client and SteamCMD. I recommend (and cover in this guide) to use Steam as it is easier to use, to maintain and we will need some files out of the Steam folder later.

-Install Steam
-Log in
-Go to Library → Tools
-Install Kingdoms Rise Dedicated Server

I recommend to copy the “Kingdoms Rise Dedicated Server” folder to a different location because the next update (next update...) will overwrite your configuration files.

-Install DirectX and Visual C++ Res.
I would suggest you to use the UE3Redist.exe inside the installation folder (..\SteamApps\common\Kingdoms Rise Dedicated Server\Binaries\Redist). If the error message: Your video card must support at least Shader Model 3. Installer will now exit.“ pops up (what will happen on most dedicated servers) you can open the UE3Redist.exe with Winrar or 7-Zip to extract and install DirectX and vcredist manually.

-Start the server
Go to ...\Kingdoms Rise Dedicated Server\Binaries\ and execute the “server.bat”.



2.2 Access from the Internet
To make the server accessible from the internet you have to open your firewall.

Usually there are two ways to do this.

1 Tell your firewall to trust the server application
2 Open the right port – Default is 7777 TCP and UDP

No. 1 is preferable because you don't have to worry about port numbers, especially if you plan to run multiple instances of the server software.

Example Windows-Firewall
-Go to control panel → System and security → Windows-Firewall
-Click on “Allow a program or feature through Windows Firewall”
-Click on “Allow another program...” If the button is greyed out click on “Change settings” first.
-Search for the “UDK.exe”(...\SteamApps\common\Kingdoms Rise Dedicated Server\Binaries\Win32\UDK.exe) and add it.

Now you should be able to connect to the server.

-Start the server
-Launch Kingdoms Rise
-Open the console – Defaul “~” Key
-Type “open X.X.X.X” where X.X.X.X is the IP-Address of your server

If your server is behind a NAT-Gateway, which is most likely the case if you run it at home, you have to forward the server port to the right IP-Address. If you run the server software on a rented dedicated server you can skip this step usually.

-Log in to the web interface of your router (open your browser ant type the IP-Address of your router in the address bar)
-Search for “Port forward” or “NAT”
-Add a rule: Protocol: TCP Port 7777-7777 to X.X.X.X(IP-Address of your server) Port 7777

You should be able to join the server now with the open command. In the next step I will explain what you have to do to make it visible in the KR Server Browser.



2.3 Steamnetwork
There are two ways to make your server visible in the server browser.

1 Let steam run on your server
2 Copy certain files from your steam folder to you KR Dedicated Server folder

Its not a good idea to let steam run on your dedicated server with your account logged it 24/7 so I will go with number 2

-Browse to your steam folder (Default C:\Program Files (x86)\Steam\)
-Copy the following files
steamclient.dll
steamclient64.dll
tier0_s.dll
tier0_s64.dll
vstdlib_s.dll
vstdlib_s64.dll

-Paste them to the Win32 folder (...steamapps\common\Kingdoms Rise Dedicated Server\Binaries\Win32\)

-Start the server and wait
-The last message should be something like “Steam game server UID: 00000000000000000”
-Launch Kingdom's Rise
-Check the server browser
-If you don't see the server directly restart Kingdom's Rise and try again



2.4 Configuration
Maybe later



2.5 Run as windows service
Maybe later
3 Conclusion
F*ck you mittens
6 Comments
Laux 5 Apr, 2016 @ 2:22pm 
I'm afraid I won't be able to apply that guide
because I :
- have to pay taxes to get new stuff in my office
- am working on a portage
- am having holydays
- am having a break
- am blocked by my bank doing remote transactions so I'm blocked by my host doing hosting

PS : Nice conclusion, makes sense.
Kin 5 Apr, 2016 @ 8:41am 
yeah but port forwading lets me just use the regular host button, the whole open "mapname" thing was misleading if i can just do it this way.
KleinGulo  [author] 5 Apr, 2016 @ 8:14am 
@Doge: You can use "open x.x.x.x" where x.x.x.x is the IP-Address of your server. If your friends want to join over the internet you have to follow point 2.2.
Kin 3 Apr, 2016 @ 5:05pm 
how does one connect to the server when hosting for friends using the way mentioned at the very top?
Matthew043 3 Apr, 2016 @ 7:08am 
thanks klein, nice guide.
only had to do about half of it on dedicated server. it did a decent bit of it for me.
eu server now up and running.
just need to work out a name for it now.
Murukai 2 Apr, 2016 @ 10:04pm 
Thanks man this should come in handy