nosoop / rcbot2

A Metamod:Source plugin that provides customizable bot players.
http://rcbot.bots-united.com
GNU Affero General Public License v3.0
5 stars 0 forks source link

RCBot2

Information

This is a fork of the RCBot2 plugin written primarily by Cheeseh.

The primary goal of this fork is to perform many wide-sweeping changes to improve maintainability and to bring the codebase up to modern C++ standards.

The bots-united.com discord and forums are the places to ask for general RCBot2 support.

Changes from upstream

Installation

  1. Install MetaMod:Source.
  2. Build the RCBot2 package, or download the most recent automated build.
    • For the latter, package.tar.gz is the Linux build; package.zip is the Windows build.
    • Automated builds are compiled with support for SourceMod native bindings.
    • The automated build uses Ubuntu 20.04 LTS as the Linux build runner — RCBot2 will fail to load on older Linux distributions with an error resembling version `GLIBC_2.xx' not found.
    • If you get something like version `GLIBC_3.4.20' not found instead, your game likely has an outdated bundled copy. Please refer to these instructions to resolve the issue.
    • Regardless of how you get a build, it does not include things like the waypointing guide, hookinfo updater, and waypoints themselves. You can download those from the official release thread. Waypoints are also available at this page.
  3. Extract the package into your game directory, similar to the process of installing MM:S.
  4. Start the server or game client.
  5. To verify that the installation was successful, type rcbotd in your server console or RCON. You should see multiple lines starting with "[RCBot]".
    • If you are running this plugin in client mode, use rcbot instead.

If you are working with SourceMod interop, you will also need SourceMod PR#1053 for plugins to recognize that the natives are available. The pull request was merged in SourceMod build 1.11.0.6466, so at this point any stable version will do.

Building

Cloning from source

RCBot2's repo history had all sorts of build artifacts / binaries at various points in time, so pulling the repository down normally takes an unusually long while.

I'd highly recommend passing in --shallow-since 2019-07-19 to minimize the size of your working repository. This will create a repository with the earliest commit at 9a7f11ea40be12c9384e7530c2b77763394601db.

Compiling on Windows / Linux

  1. Install the prerequisites for building SourceMod for your OS.
  2. Create a build/ subdirectory, then run configure.py.
    • The project requires C++11 support. It was previously confirmed to compile on GCC 5.4 (Ubuntu 16.04 LTS) and on MSVC 1900.
    • configure.py can be run with the following settings: python ../configure.py -s present --mms_path ${MMS_PATH} --hl2sdk-root ${HL2SDK_ROOT}
    • Specifying an --sm-path argument enables linking to SourceMod. This does not mean SourceMod needs to be installed for RCBot2 to run.
    • Note that the automatic versioning system requires an installation of git and a relatively modern version of Python 3.
  3. Run ambuild. MetaMod:Source plugin is built and the base install files will be available in build/package.

License

RCBot2 is released under the GNU Affero General Public License. Among other things, this means that any modifications you make to RCBot2 must have the sources available under the same license to players on your server.

Additionally, rcbot/logging.{h,cpp} is released separately under the BSD Zero Clause License.