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.

7 min read Last checked 1h ago 2 views
Series · part 4 of 5Your first CS 1.6 server
  1. 1How to Make a CS 1.6 Server (SteamCMD + ReHLDS)
  2. 2How to install AMX Mod X on a ReHLDS server
  3. 3How to Add Admins on a CS 1.6 Server (users.ini)
  4. 4How to Install ReGameDLL and ReAPI on a CS 1.6 Server
  5. 5How to Add Maps to a CS 1.6 Server (+ FastDL)
In this guide 9 sections
  1. 1Quick steps
  2. 2What you need
  3. 3Install ReGameDLL
  4. 4Set up game.cfg
  5. 5Install ReAPI
  6. 6Troubleshooting
  7. 7How to update
  8. 8FAQ
  9. 9Next steps

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#

  1. Stop the server and back up the cstrike folder.
  2. Copy the contents of bin/win32/cstrike (Windows) or bin/linux32/cstrike (Linux) from the ReGameDLL archive into cstrike.
  3. Start the server and type game version to check ReGameDLL.
  4. Copy the addons folder from the ReAPI archive into cstrike.
  5. Add reapi to addons/amxmodx/configs/modules.ini and restart.
  6. Type amxx modules to check that ReAPI is running.

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:

NeededWhyGuide
ReHLDSReAPI needs it to runPart 1: make the server
Metamod-r + AMX Mod X 1.10ReAPI is an AMX Mod X modulePart 2: install AMX Mod X
DownloadWhat it isWhere
ReGameDLL_CSNew game library (mp.dll / cs.so)ReGameDLL releases
ReAPIAMX Mod X module for ReHLDS and ReGameDLLReAPI releases

From each releases page, download the …-bin-….zip archive (the .asc file next to it is only a signature).

Players don't need anything

Both run only on the server. Players connect with their normal game, Steam or not; they don't download or change anything.

Install ReGameDLL#

  1. 1Stop the server and make a backup

    Stop the server completely. Then copy the whole cstrike folder somewhere safe, or at least cstrike/dlls and your config files. If anything goes wrong, you put them back.

  2. 2Copy the files

    Unpack regamedll-bin-….zip. Inside, open the folder for your system and copy the contents of its cstrike folder into your server's cstrike folder. Allow it to replace the old files.

    Copy the contents of bin/win32/cstrike/ into cstrike/. The file that matters is:

    cstrike/dlls/mp.dll

    Three more files come with it, and on a first install you copy all of them:

    FileWhat 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
  3. 3Leave liblist.gam as it is

    liblist.gam keeps pointing to Metamod (from part 2). Metamod loads the new mp.dll / cs.so from cstrike/dlls by itself.

  4. 4Check that ReGameDLL is running

    Start the server and type in the console:

    bash
    game version

    You 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/dlls and 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.cfg

These are the settings most server owners change first:

SettingDefaultWhat it does
mp_forcerespawn0Respawn players automatically; the number is the delay in seconds
mp_respawn_immunitytime0Seconds of protection after a respawn
mp_round_infinite0Stop rounds from ending by the game scenario
mp_buy_anywhere0Let players buy outside the buy zone
mp_free_armor0Free armor on spawn (1 vest, 2 vest + helmet)
mp_freeforall0Everyone against everyone, no teams
mp_infinite_ammo0Infinite ammo
mp_afk_bomb_drop_time0Seconds before a player who doesn't move drops the bomb
mp_item_staytime300Seconds before dropped weapons disappear
mp_auto_join_team0Put players in a team automatically
mp_maxmoney16000Most money a player can have
mp_t_default_weapons_secondaryglock18Pistol T players spawn with
mp_ct_default_weapons_secondaryuspPistol CT players spawn with
mp_show_scenarioicon0Show the bomb or hostage icon in the HUD
mp_falldamage1Damage 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:

cstrike/game.cfgcfg
// Deathmatch style
mp_forcerespawn 1
mp_respawn_immunitytime 2
mp_round_infinite 1
mp_buy_anywhere 1
mp_free_armor 2
mp_item_staytime 15

Change the map to apply it. For everyone-against-everyone, add mp_freeforall 1.

game.cfg runs after server.cfg

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:

cstrike/game_init.cfgcfg
bot_enable 1

Restart the server. Then bot_quota 4 keeps 4 bots in the game, and bot_kick removes them.

Install ReAPI#

  1. 1Copy the files

    Unpack reapi-bin-….zip. It contains one addons folder; copy it into cstrike and allow the folders to merge. The module for your system must now be here:

    cstrike/addons/amxmodx/modules/reapi_amxx.dll

    The archive also has the files for the other system; you can delete the one you don't use.

  2. 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.iniini
    reapi
  3. 3Restart and check

    Restart the server (modules only load at start-up) and type:

    bash
    amxx modules

    ReAPI should be in the list with the status running.

Compiling ReAPI plugins

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:

AMXX compilerCompile .sma to .amxx online, for AMX Mod X 1.8.2 to 1.10.Open

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:

  1. Stop the server and back up cstrike.
  2. Replace mp.dll / cs.so, delta.lst and the ReAPI module with the new ones.
  3. Don't overwrite your game.cfg and game_init.cfg. Open the new ones next to yours and copy over only the new settings.
  4. Start the server and check with game version and amxx 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#

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
Was this guide helpful?
Thanks for the feedback!
Stuck on a step?Ask other server admins on the forum. Say which guide and which step.
Ask on the forum