Welcome to Elite Half-Life League. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[Tutorial] Setting up an AG server on a VPS
Topic Started: Feb 15 2017, 06:31 PM (366 Views)
.Executλble
Member Avatar
bää
[ *  *  *  * ]
Why bother?
Many servers in AG are hosted via some third-party gameserver providers that still offer AG. This is very limited and there aren't that many hosts that still offer this game, so running one on a VPS manually is a much better option. You have full control over the server, the price is usually very similar and you can rent a VPS pretty much anywhere - it's very easy to find providers in any country, as opposed to gameserver providers that are mostly based in France.

How to find a suitable VPS?
First of all, search for any VPS providers in your own country. This will ensure the best ping for you, or if you want, you can choose something that's pretty close to you as well, like a neighbour country.
The best providers at the moment seem to be DigitalOcean & OVH, as well as Vultr and Linode (can't say much about them since I haven't tried them).

At the time of writing, DigitalOcean offers servers in Amsterdam, London, Frankfurt, New York, San Francisco, Singapore, Toronto and Bangalore (India).
OVH on the other hand only offers two French locations (Strasbourg and Gravelines) and one in Canada.

Of course, those are one of the biggest providers, so if you live somewhere else, don't be afraid to look up for any providers from your country, I'm sure you can find a good deal.

Price/performance wise, AG server isn't very demanding at all, so any server with 512 RAM or more will do. Most of the time you can find a VPS like this under $5 / month, but there are some providers that seem to charge much more, so do your research, don't waste your money.
For example, the cheapest DigitalOcean offer is 512 RAM server for $5, while OVH offers a 2GB RAM server for only 3 eur / month (although it offers less locations).

I've rented a VPS, what now?
If there's any setup involved to get the server running, see if you can choose Debian 8 as the server OS, although other distros will most likely work too.
It might take some time for your VPS to be set up, but once it's done you should receive an email with a username and password to login to the server with. You might also find those in the control panel, depending on the provider.

To login to the server, you'll need a program called PuTTY, so set that up as well.

Connect to the server via PuTTY by entering the server's IP address. You'll be taken to a commandline that will ask you for the login details mentioned before.

Now it's time to install the Half-Life server software. For this we'll be using a tool called "Linux Game Server Managers" which pretty much automates the entire process, you will just have to enter a bunch of commands in PuTTY and follow through the setup.
The setup process (all the commands and stuff you need) can be found here: https://gameservermanagers.com/lgsm/hldmserver/#gettingstarted

I thought I'd just give you this link in case it changes in the future, so I don't have to update it. Follow the steps and come back here when you're done.

Installing AG mod
Once you have the HLDM server setup, it's time to set up AG. I've talked to the guys at LGSM for setting up an install script for AG too, but meanwhile there are a few more advanced steps.

Download the server package
Code:
 
wget http://openag.pro/latest/ag_linuxserver.zip


Extract the contents to serverfiles/ag folder

Code:
 
unzip ag_linuxserver.zip -d ./serverfiles/ag


Now that the AG files are here, we need to make the server launch agmod. To do this, we'll edit the launch script. You can use any text editor for this, vim, pico or nano.. I'll use pico.

Code:
 
pico hldmserver


Find the line where it says something like

Code:
 
fn_parms(){
parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}


Change "-game valve" to "-game ag", then save & exit (CTRL+X & y to confirm).

Now we can try launching the server. Simply run this command:

Code:
 
./hldmserver start


And your server should be up!

Hopefully this tutorial was useful to you. I tried making it as simple as possible, so I might've missed some essential steps in the process. If anything is unclear or something is broken and doesn't work, feel free to ask! All questions are appreciated!
Offline Profile Quote Post Goto Top
 
.Executλble
Member Avatar
bää
[ *  *  *  * ]
By the way, Linux Game Server Managers seem to be offering free $10 credit for DigitalOcean & Vultr, so that's like 2 months of free AG server for you to try out. Give it a shot!

The links are above the LGSM installation steps.
Posted Image
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · General Chat · Next Topic »
Add Reply

//