This is a HLDS setup I made for CS with custom addons and an easy ramp-up. It also fixes several installation issues most people have when trying to create a dedicated CS server.
- Custom maps
- Metamod (1.21.1-am)
- AMX Mod X (1.8.2)
Custom AMX plugins:
- Gore
- HPK (High Ping Kicker)
- CS Nade Drops
- No Nade Through Walls
-
Install Docker
-
Run
$ bin/setup
-
Now you have to add yourself as an admin. Edit the file
cstrike/addons/amxmodx/configs/users.ini
and add your credentials. See the examples below:; Examples of admin accounts: ; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce" ; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de" ; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"
-
On your client, edit the file
cstrike/userconfig.cfg
and add your password there, like the following:setinfo "_pw" "mypa$$w0rd"
To run the server, you can simply run:
$ bin/server start
Follow the logs:
$ bin/server logs -f
Stop the server:
$ bin/server stop
Edit server.cfg
and files on cfgs
folder to set different server settings.
Also, configure AMXModX
as you wish by modifying the files on
addons/amxmodx
.
There are some settings related to server initialization that are located on
.env
file. Changes on them will most likely require a restart.
Adding new maps require you to restart the server.
When doing a clean HLDS installation, as suggested on Steam manual, a few issues may arise.
- Installation just doesn't work. Sometimes you would have to run
app_update 90
several times and it wouldn't install all needed files. This is a hard one to solve, and I did it with help of this workaround. What it does is basically add 3 manifest files onhlds/steamapps
folder and proceeds the installation. - First time you run HLDS, it crashes at the first time. This is some other
bug caused by a missing
steam_appid.txt
file onhlds
folder. - Warning messages of missing
$HOME/.steam/sdk32/steamclient.so
files. The fix is quite easy: we just need to link these files onto the expected path. - Warning messages of missing
custom.hpk
file. This can get annoying and make us think that there's something wrong. Don't worry, this is just a file used to store custom sprays from people who connect to the server. The fix for that is creating a blankcstrike/custom.hpk
file when we start the server for the first time.
This Docker image fix all these errors gracefully so you don't have to worry.
Currently, this server is compatible with MacOS and Linux.
MIT.