Skip to content

FemboyKZ/CleanerCS2

 
 

Repository files navigation

CleanerCS2

A simple Metamod plugin that allows you to filter out console prints with regular expressions. Supports both Windows and Linux.

Example config

// Write regular expression in here to prevent them from being printed in the console
.*UNEXPECTED LONG FRAME DETECTED.*
.*weapon services didn't find a shoot position.*
.*generating substitute command \d+ from \d+.*

Installation

  1. Download the latest release from the releases page
  2. Extract the contents of the archive to your server's addons directory
  3. Edit the addons/cleanercs2/config.cfg file to your liking (see the example config above)

Commands

  • conclear_reload - Reloads the configuration file

Building from source

Locally

Local builds require a static build of re2 and git submodules to be initialized recursively via git submodule update --init --recursive.

Xmake

Requires Xmake.

xmake

AMBuild

Requires AMBuild on PATH.

mkdir build && cd build
python3 ../configure.py --enable-optimize --re2-root /opt/re2
ambuild

Docker

docker compose run --rm --build build

To build without compose:

docker build -t cleanercs2-build .
docker run --rm -v "$PWD/output:/output" cleanercs2-build

About

Allows you to filter out console prints with regular expressions

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages