Giter Club home page Giter Club logo

get5's Introduction

get5

Build status GitHub Downloads

Status: Supported, actively developed.

Get5 is a standalone SourceMod plugin for CS:GO servers for running matches. It is originally based on pugsetup and is inspired by eBot.

The core idea behind its use is all match details being fully defined in a single config file. Check out this example config. Its main target use-case is tournaments and leagues (online or LAN). All that is required of the server-admins is to load match config file to the server and the match should run without any more manual actions from the admins. This plugin is not invasive - most of its functionality is built to work within how the CS:GO server normally operates, not replacing its functionality. No, it is not recommended for your new matchmaking service. It is intended for competitive play, not pickup games.

It is meant to be relatively easy to use for tournament admins.

Features of this include:

  • Locking players to the correct team by their Steam ID
  • In-game map veto support from the match's maplist
  • Support for multi-map series (Bo1, Bo2, Bo3, Bo5, etc.)
  • Warmup and !ready system for each team
  • Automatic GOTV demo recording
  • Advanced backup system built on top of valve's backup system
  • Knifing for sides
  • Pausing support
  • Coaching support
  • Automatically executing match config files
  • Automatically setting team names/logos/match text values for spectator/GOTV clients
  • Stats collection and optional MySQL result/stats upload
  • Allows lightweight usage for scrims
  • Has its own event logging system you can interface with

Download and Installation

Requirements

You must have sourcemod installed on the game server. You can download it at http://www.sourcemod.net/downloads.php. Note that sourcemod also requires MetaMod:Source to be on the server. You can download it at http://www.metamodsource.net/downloads.php.

Download

Download a release package from the releases section or a the latest development build.

Release and development builds are currently compiled against sourcemod 1.8 and should work on sourcemod 1.8 or later.

Installation

Extract the download archive into the csgo/ directory on the server. Once the plugin first loads on the server, you can edit general get5 cvars in the autogenerated cfg/sourcemod/get5.cfg. You should also have 3 config files: cfg/get5/warmupcfg, cfg/get5/knife.cfg, cfg/get5/live.cfg. These can be edited, but I recommend not blindly pasting another config in (e.g. ESL, CEVO). Configs that execute warmup commands (mp_warmup_end, for example) will cause problems.

If you need more help, see the step-by-step guide in the wiki.

Optional steps/plugins

The get5 releases contain 2 additional plugins, disabled by default. They are in addons/sourcemod/plugins/disabled. To enable one, move it up a directory to addons/sourcemod/plugins.

get5_apistats

get5_apistats is for integration with the get5 web panel. You don't need it unless you're using the web panel.

get5_mysqlstats

get5_mysqlstats: is an optional plugin for recording match stats. To use it, create a "get5" section in your addons/sourcemod/configs/databases.cfg file and use these MySQL commands to create the tables. You can also set get5_mysql_force_matchid to a matchid to make get5 ignore the matchid in match configs, and use the one in the cvar. Otherwise, the matchid will be set based on matchid returned by MySQL from the SQL insert statement.

Commands

Generally admin commands will have a get5_ prefix and must be used in console. Commands intended for general player usage are created with sm_ prefixes, which means sourcemod automtically registers a ! chat version of the command. (For example: sm_ready in console is equivalent to !ready in chat)

Some client commands are available also for admin usage. For example, sm_pause and sm_unpause will force pauses if executed by the server (e.g., through rcon).

Client Commands (these can be typed by all players in chat)

  • !ready: marks a client's team as ready to begin
  • !unready: marks a client's team as not-ready
  • !pause: requests a freezetime pause
  • !unpause: requests an unpause, requires the other team to confirm
  • !coach: moves a client to coach for their team
  • !stay: elects to stay after a knife round win
  • !swap: elects to swap after a knife round win
  • !stop: asks to reload the last match backup file, requires other team to confirm
  • !forceready: force readies your team, letting your team start regardless of player numbers/whether they are ready

Server/Admin Commands (meant to be used by admins in console)

  • get5_loadmatch: loads a match config file (JSON or keyvalues) relative from the csgo directory
  • get5_loadbackup: loads a get5 backup file
  • get5_loadteam: loads a team section from a file into a team
  • get5_loadmatch_url: loads a remote (JSON formatted) match config by sending a HTTP GET to the given url, this requires the Steamworks Extensions
  • get5_endmatch: force ends the current match
  • get5_creatematch: creates a Bo1 match with the current players on the server on the current map
  • get5_scrim: creates a Bo1 match with the using settings from configs/get5/scrim_template.cfg
  • get5_addplayer: adds a steamid to a team (any format for steamid)
  • get5_removeplayer: removes a steamid from all teams (any format for steamid)
  • get5_forceready: marks all teams as ready
  • get5_dumpstats: dumps current match stats to a file
  • get5_status: replies with JSON formatted match state (available to all clients, requires SMJansson)
  • get5_listbackups: lists backup files for the current matchid or a given matchid

Other commands

  • !get5 opens a menu that wraps some common commands. It's mostly intended for people using scrim settings, and has menu buttons for starting a scrim, force-starting, force-ending, adding a ringer, and loading the most recent backup file.

Match Schema

See the example config in Valve KeyValues format or JSON format to learn how to format the configs. Both files contain equivalent match data.

Note: to use a JSON match file, you must install the SMJansson sourcemod extension on the server.

Of the below fields, only the team1 and team2 fields are actually required. Reasonable defaults are used for entires (bo3 series, 5v5, empty strings for team names, etc.)

  • matchid: a string matchid used to identify the match
  • num_maps: number of maps in the series. This must be an odd number of 2.
  • maplist: list of the maps in use (an array of strings in JSON, mapnames as keys for KeyValues), you should always use an odd-sized maplist
  • skip_veto: whether the veto will be skipped and the maps will come from the maplist (in the order given)
  • veto_first: either "team1", or "team2". If not set, or set to any other value, team 1 will veto first.
  • side_type: either "standard", "never_knife", or "always_knife"; standard means the team that doesn't pick a map gets the side choice, never_knife means team is always on CT first, and always knife means there is always a knife round
  • players_per_team: maximum players per team (doesn't include a coach spot, default: 5)
  • min_players_to_ready: minimum players a team needs to be able to ready up (default: 1)
  • favored_percentage_team1: wrapper for mp_teamprediction_pct
  • favored_percentage_text wrapper for mp_teamprediction_txt
  • cvars: cvars to be set during the match warmup/knife round/live state
  • spectators: see the team schema below (only the players and name sections are used for spectators)
  • team1: see the team schema below
  • team2: see the team schema below

Fields you may use, you aren't generally needed to:

  • match_title: wrapper on the mp_teammatchstat_txt cvar, but can use {MAPNUMBER} and {MAXMAPS} as variables that get replaced with their integer values. In a BoX series, you probably don't want to set this since get5 automatically sets mp_teamscore cvars for the current series score, and take the place of the mp_teammatchstat cvars.

Team Schema

Only name and players are required.

  • name: team name (wraps mp_teamname_1 and is displayed often in chat messages)
  • tag: team tag (or short name), this replaces client "clan tags"
  • flag: team flag (2 letter country code, wraps mp_teamflag_1)
  • logo team logo (wraps mp_teamlogo_1)
  • players: list of Steam id's for users on the team (not used if get5_check_auths is set to 0)
  • series_score: current score in the series, this can be used to give a team a map advantage or used as a manual backup method, defaults to 0
  • matchtext: wraps mp_teammatchstat_1, you probably don't want to set this, in BoX series mp_teamscore cvars are automatically set and take the place of the mp_teammatchstat cvars

There is advice on handling these match configs in the wiki.

Instead of the above fields, you can also use "fromfile" and a filename, where that file contains the other above fields. This is available for both json and keyvalue format.s

ConVars

Note: these are auto-executed on plugin start by the auto-generated (the 1st time the plugin starts) file cfg/sourcemod/get5.cfg.

You should either set these in the above file, or in the match config's cvars section. Note: cvars set in the cvars section will override other settings. Please see the wiki for a full list of cvars. You may also just look at the cfg/sourcemod/get5.cfg file directly on your server and see the cvar descriptions and values in the autogenerated file.

Other things

Reporting bugs

Please make a github issue and fill out as much information as possible. Reproducible steps and a clear version number will help tremendously!

Contributions

Pull requests are welcome. Please follow the general coding formatting style as much as possible. If you're concerned about a pull request not being merged, please feel free to make an issue and inquire if the feature is worth adding.

get5's People

Contributors

alexbksiad avatar damiencornu avatar gabrielfgularte avatar grenadecx avatar janek26 avatar jfkz avatar jpotier avatar miped avatar num1337 avatar roxcity avatar splewis avatar technoblazed avatar toomuchio avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.