Half-Life Guide

How to install and setup reHLDS with AMX (Dedicated Server) for Half-Life

How to install and setup reHLDS with AMX (Dedicated Server)

Overview

In this guide I will show you how to install and setup reHLDS, among with AMX!Feel free to ask questions in the comment section.

Introduction

What is reHLDS?

ReHLDS is a result of reverse engineering of the original HLDS.

Why should I use it?
  • Lots of bugs were found and fixed
  • Open-Source[github.com]
  • More Secure

Installation

Download and extraction.

Download the zip file.[github.com]
Extract it.
Go to bin and copy win32 to somewhere else. You can rename the folder.
Now, your folder should look like this.

Installing the game content.

Open your Half-Life folder.
Here’s how to do that:
[link]
You will see something like this:
Choose a game that you want to host:

  • valve – Half-Life
  • gearbox – Half-Life: Opposing Force
  • cstrike – Counter-Strike
  • czero – Counter-Strike: Condition Zero
  • dod – Day of Defeat

Copy the folder of the game that you want to host to the win32 folder.
Installation is done! Now it’s time to setup up the server.

Setting up

Port Forwarding

Before doing the next steps, be sure to have these ports forwarded in your router.
If you already hosted other game server server before, you should know what am I talking about.
If you don’t, please check this[en.wikipedia.org] page. This[www.howtogeek.com] will help you too.

Adding custom maps

The maps need to be a bsp file. Place them in <modfolder>/maps.

server.cfg

This runs when a dedicated server is being started, and runs every time the map is changed.
Create a text file in your game content folder (e.g. valve) Open it and paste this:

// Use this file to configure your DEDICATED server. // This config file is executed on server startup. sv_lan 0 // disable autoaim sv_aim 0 // player bounding boxes (collisions, not clipping) sv_clienttrace 3.5 // disable clients’ ability to pause the server pausable 0 // default server name. Change to “Bob’s Server”, etc. hostname “Half-Life Server” // maximum client movement speed sv_maxspeed 270 // load ban files exec listip.cfg exec banned.cfg

Save the file and rename it to server.cfg (Remove the .txt too!)

Batch File

Create a txt file in the win32 folder.
Open it and add the line:

start hlds.exe -console -insecure -game <modfolder> +maxplayers <number> +map <mapname>
    Don’t put the <>!

  • <modfolder> – The folder with the game/mod content e.g. valve
  • <number> – A number from 1 to 32
  • <mapname> – A map from the content folder e.g. de_nuke

Save the file and rename .txt to .bat.

AMX

Installing Metamod

Go to the Metamod Website[www.metamod.org] and download Metamod.
Extract the metamod file and copy it to <mod folder>addonsmetamoddlls.

In your mod folder, find the liblist.gam file. Open the file with a text editor, such as notepad.

Find this line:

gamedll “dllsmp.dll”

Replace it with this line:

gamedll “addonsmetamoddllsmetamod.dll”

Save liblist.gam
Edit the file <mod folder>addonsmetamodplugins.ini. If it does not exist, create it. This file is your list of Metamod plugins.

Open the file with notepad and add the line:

win32 addons/amxmodx/dlls/amxmodx_mm.dll

Save the file.

Installing AMX Mod X

Go here[www.amxmodx.org] and click “Downloads”. Download the amxmodx-base package for either Windows or Linux.
Extract the base package to your mod folder. This will place AMX Mod X into <mod folder>addonsamxmodx.
Go back to the AMX Mod X download site. If there is an addon pack for your mod available, and you want to use it, download the addon package corresponding to your mod. As of this writing, addon packs are available for Counter-Strike/Condition-Zero, Team Fortress Classic, Day of Defeat, The Specialists, Natural Selection, and Earth’s Special Forces. Make sure you download the pack that corresponds to Windows.
Extract the addon pack to the same place as before, it should simply add more files to your AMX Mod X installation.
AMX Mod X should now be installed! You can type “meta list” in your server console to see if it was successful.

Configuring AMX Mod X

Plugins

Often, plugins will have their own directions if they need special installation requirements. However, this will instruct you on the basics of adding a plugin.
Follow any directions the plugin author has given you. If the plugin requires extra steps or special files, make sure you have them in the proper place and order.
Place the plugin’s .amxx file in the addons/amxmodx/plugins folder.
Add the plugin’s name to addonsamxmodxconfigsplugins.ini. Example:

myplugin.amxx

Adding Admins

First, open the amxmodx/configs/users.ini file with your favorite text editor. Scroll to the bottom. Admin entries are stored with four options: Authentication, Password, Access Right, Connection Properties.

In the early days of Half-Life 1 it was common to have admins authenticate by name. However, now it is recommended to auth by steamid. An example of a typical admin entry is:

“STEAM_0:0:123456” “” “abcdefghijklmnopqrstu” “ce”

How to get a SteamID[steamid.io]

Running

To run the server, just double-click the batch file.
Thanks for reading! Please rate and share my guide! And feel free to ask me anything in the comment section! Bye!

SteamSolo.com