How to Install ReGameDLL and ReAPI on a CS 1.6 Server
Install ReGameDLL and ReAPI on your CS 1.6 server: copy the files, check they run, and set up game.cfg for respawn, free armor, bots and more.
Series · part 4 of 5Your first CS 1.6 server
In this guide 9 sections
ReGameDLL replaces the Counter-Strike game library on your server: it fixes many old bugs and adds dozens of new settings (respawn, free armor, buy anywhere, bots and more). ReAPI is the AMX Mod X module that lets plugins use ReHLDS and ReGameDLL. Many modern plugins need it. This guide installs both, shows how to check them, and explains the settings worth changing first.
Quick steps#
- Stop the server and back up the
cstrikefolder. - Copy the contents of
bin/win32/cstrike(Windows) orbin/linux32/cstrike(Linux) from the ReGameDLL archive intocstrike. - Start the server and type
game versionto check ReGameDLL. - Copy the
addonsfolder from the ReAPI archive intocstrike. - Add
reapitoaddons/amxmodx/configs/modules.iniand restart. - Type
amxx modulesto check that ReAPI isrunning.
The full instructions for each step are below.
What you need#
ReGameDLL and ReAPI go on top of the setup from the first parts of this series:
| Needed | Why | Guide |
|---|---|---|
| ReHLDS | ReAPI needs it to run | Part 1: make the server |
| Metamod-r + AMX Mod X 1.10 | ReAPI is an AMX Mod X module | Part 2: install AMX Mod X |
| Download | What it is | Where |
|---|---|---|
| ReGameDLL_CS | New game library (mp.dll / cs.so) | ReGameDLL releases |
| ReAPI | AMX Mod X module for ReHLDS and ReGameDLL | ReAPI releases |
From each releases page, download the …-bin-….zip archive (the .asc file next to it is only a signature).
Both run only on the server. Players connect with their normal game, Steam or not; they don't download or change anything.
Install ReGameDLL#
1Stop the server and make a backup
Stop the server completely. Then copy the whole
cstrikefolder somewhere safe, or at leastcstrike/dllsand your config files. If anything goes wrong, you put them back.2Copy the files
Unpack
regamedll-bin-….zip. Inside, open the folder for your system and copy the contents of itscstrikefolder into your server'scstrikefolder. Allow it to replace the old files.Copy the contents of
bin/win32/cstrike/intocstrike/. The file that matters is:cstrike/dlls/mp.dllCopy the contents of
bin/linux32/cstrike/intocstrike/:bashcp -a bin/linux32/cstrike/. ~/hlds/cstrike/The file that matters is:
cstrike/dlls/cs.soThree more files come with it, and on a first install you copy all of them:
File What it is game.cfgReGameDLL's own game settings game_init.cfgSettings read early at start-up (bots, hostage AI) delta.lstNetwork data definitions; keep the one from the same release 3Leave liblist.gam as it is
liblist.gamkeeps pointing to Metamod (from part 2). Metamod loads the newmp.dll/cs.sofromcstrike/dllsby itself.4Check that ReGameDLL is running
Start the server and type in the console:
bashgame versionYou should see the ReGameDLL build version, its date and the project link. If the console says the command is unknown, the new game library didn't load: check that the file for your system is in
cstrike/dllsand that it replaced the old one.
Set up game.cfg#
ReGameDLL reads cstrike/game.cfg and runs it again on every map change. It holds all the new settings, each with a comment that explains it. Open it and change only what you need.
cstrike/game.cfgThese are the settings most server owners change first:
| Setting | Default | What it does |
|---|---|---|
mp_forcerespawn | 0 | Respawn players automatically; the number is the delay in seconds |
mp_respawn_immunitytime | 0 | Seconds of protection after a respawn |
mp_round_infinite | 0 | Stop rounds from ending by the game scenario |
mp_buy_anywhere | 0 | Let players buy outside the buy zone |
mp_free_armor | 0 | Free armor on spawn (1 vest, 2 vest + helmet) |
mp_freeforall | 0 | Everyone against everyone, no teams |
mp_infinite_ammo | 0 | Infinite ammo |
mp_afk_bomb_drop_time | 0 | Seconds before a player who doesn't move drops the bomb |
mp_item_staytime | 300 | Seconds before dropped weapons disappear |
mp_auto_join_team | 0 | Put players in a team automatically |
mp_maxmoney | 16000 | Most money a player can have |
mp_t_default_weapons_secondary | glock18 | Pistol T players spawn with |
mp_ct_default_weapons_secondary | usp | Pistol CT players spawn with |
mp_show_scenarioicon | 0 | Show the bomb or hostage icon in the HUD |
mp_falldamage | 1 | Damage from falling |
A respawn (deathmatch) server#
Paste these at the end of game.cfg for a server where players respawn right away and rounds don't end:
// Deathmatch style
mp_forcerespawn 1
mp_respawn_immunitytime 2
mp_round_infinite 1
mp_buy_anywhere 1
mp_free_armor 2
mp_item_staytime 15Change the map to apply it. For everyone-against-everyone, add mp_freeforall 1.
game.cfg also contains normal settings such as mp_buytime. Because it runs on every map change, its values win. If a value you set in server.cfg seems to be ignored, look for the same setting in game.cfg and change it there.
Bots (zBot)
ReGameDLL has the Condition Zero bots (zBot) built in. To use them, you need the bot files (profiles and sounds), which are released separately; the ReGameDLL documentation links to them. Copy them into cstrike, then turn bots on in:
bot_enable 1Restart the server. Then bot_quota 4 keeps 4 bots in the game, and bot_kick removes them.
Install ReAPI#
1Copy the files
Unpack
reapi-bin-….zip. It contains oneaddonsfolder; copy it intocstrikeand allow the folders to merge. The module for your system must now be here:cstrike/addons/amxmodx/modules/reapi_amxx.dllcstrike/addons/amxmodx/modules/reapi_amxx_i386.soThe archive also has the files for the other system; you can delete the one you don't use.
2Load it at start-up
AMX Mod X loads ReAPI by itself when a plugin needs it. To have it loaded every time, so you can check it now, add one line at the end of:
addons/amxmodx/configs/modules.iniinireapi3Restart and check
Restart the server (modules only load at start-up) and type:
bashamxx modulesReAPI should be in the list with the status
running.
The archive also has the reapi*.inc include files, in addons/amxmodx/scripting/include/. You need them only to compile plugins that use ReAPI, not to run them. With the XCSTRIKE compiler, attach them under Custom includes:
Troubleshooting#
"game version" is an unknown command#
The new game library isn't loaded. Check that mp.dll (Windows) or cs.so (Linux) from ReGameDLL is in cstrike/dlls, that you used the file for your system, and on Linux that the server user can read it.
A plugin fails with "reapi" required#
The log in addons/amxmodx/logs/ says that the module or library reapi is required for the plugin. ReAPI isn't loaded: check the file name in modules for your system, add reapi to modules.ini, and restart the server (a map change isn't enough).
ReAPI doesn't load at all#
ReAPI needs ReHLDS. Type version in the console: if there's no ReHLDS line, install it first (part 1).
A setting in server.cfg does nothing#
game.cfg sets it again after server.cfg. Change it in game.cfg, or remove it from there.
The server crashes after installing ReGameDLL#
Start without your extra plugins to find the cause. Plugins that patch the game in memory (Orpheu) don't work with ReGameDLL. If it still crashes, put back your backup of cstrike/dlls and check that ReHLDS and ReGameDLL are both recent releases.
How to update#
ReGameDLL and ReAPI get new releases from time to time. To update:
- Stop the server and back up
cstrike. - Replace
mp.dll/cs.so,delta.lstand the ReAPI module with the new ones. - Don't overwrite your
game.cfgandgame_init.cfg. Open the new ones next to yours and copy over only the new settings. - Start the server and check with
game versionandamxx modules.
Read the release notes first: a new release can change settings that plugins use.
FAQ#
Do I need both ReGameDLL and ReAPI?#
ReAPI needs ReHLDS. Plugins that use game-level features (most modern ones: VIP, deathmatch, zombie and team plugins) also need ReGameDLL. Installing both is the usual setup.
Does ReGameDLL change how the game plays?#
No, not by default. It plays like normal Counter-Strike 1.6; the new features stay off until you turn them on in game.cfg.
Do players need to install anything?#
No. Everything runs on the server.
Where are the new settings explained?#
In cstrike/game.cfg itself: every setting has a comment above it with what it does and which values it takes.
Next steps#
- Find plugins made for ReAPI in the plugin library
Next in the series, add custom maps and fast downloads:
How to Add Maps to a CS 1.6 Server (+ FastDL)Add custom maps to your CS 1.6 server: where each file goes, mapcycle and map vote, .res files, and FastDL so players download maps in seconds.Read the guide