xHLDS commands
The console commands xHLDS adds to ReHLDS, in plain words, with their arguments.
- xHLDS version
- 3.15.0-hs.12
- Updated
The console commands xHLDS adds on top of ReHLDS. Type them on the server console, or send them over rcon (rcon xhlds_). ReHLDS's own commands are in the ReHLDS reference. New to these words? The glossary explains them.
xhlds_license
Shows the state of this server's xHLDS licence, and loads a renewed licence file without a restart.
Since: xHLDS 3.15.0-hs.5.
Values: xhlds_. Without an argument: the licence the server runs on, the address and port it covers, when it expires, and the automatic renewal (when the server last asked for a new licence, the answer, and when it asks next). reload: reads xhlds.lic again now and says whether the new file is used or why not.
Technical details: A licence is for one server, that is one IP address and port, and comes as a file, xhlds.lic, in the server directory next to hlds_linux (or the path given with -license). The server does not run without a valid one. The server warns you before the licence expires.
A licence bought from Hostsrc runs for about 14 days and the server renews it by itself while it is paid (xhlds_). To put a new file in place by hand, copy it over xhlds.lic and run xhlds_. The server keeps running, and a new file never stops it. If the server's IP or port changes, the licence is reissued for the new one.
The command works from the server console or over rcon. The paid licence is for servers hosted elsewhere; on Hostsrc CS 1.6 servers xHLDS is free. Licence requests go to alex@hostsrc.com.
xhlds_ api_ incidents
Shows how often plugins or the game made each kind of mistake xhlds_api_guard handles, since the server started and on the current map.
Since: xHLDS 3.15.0-hs.6.
Values: xhlds_, with no arguments.
Technical details: One row per kind of mistake: how many in total, how many on this map, how many the server recovered from and how many stopped it, and where the last one came from (<module>+0x<offset>) and how long ago. If there were none, it says so.
Use it to see whether a mistake keeps coming back, then look at the API misuse: lines on the console and the AMX Mod X error log of the same moment to find the plugin.
xhlds_confilter
Controls the console filter, which hides console lines you never want to see, such as a plugin's debug output or a warning the server repeats all day.
Since: xHLDS 3.15.0-hs.6.
Values: xhlds_. status (or nothing): whether the filter is on, the rules file and when it was loaded, and for each rule how many lines it hid and when it last did. reload: reads the rules file again and resets the counts. enable and disable: turn the filter on or off (xhlds_). test <text>: says which rule would hide that line, without counting it.
Technical details: You write the rules in xhlds_ in the server directory, next to hlds_linux (or the file given with -confilter). It is read when the server starts and again with xhlds_. Without the file nothing is hidden. One rule per line:
textorcontains:texthides lines that contain this text anywhere. Upper and lower case count.glob:patternhides lines that match the whole pattern, where*stands for any text and?for one character.glob:[MyPlugin] *hides lines starting with[MyPlugin].- A line starting with
#is a comment. A bad line is reported with its line number and skipped; the other rules still work.
Check a rule with xhlds_ before you load it. Be careful with broad rules such as glob:*WARNING*: they also hide the server's own warnings.
What it covers: the server console, qconsole.log and log lines echoed on the console. The log files only with xhlds_. Never rcon replies: an rcon tool always gets the whole answer. Never crash reports: they keep every line. Lines about a fatal error and the filter's own lines are always printed. At each map change, if the filter hid anything, one line says how much, for example xhlds_.
A few lines are not filtered: the first lines at start-up, before the rules are read, and lines that go straight to the terminal, such as Dropped <player> from server and what Steam prints itself. The command works over rcon, and its own output is never filtered.
xhlds_explain
Explains a console code such as XH-D01: what it means, whether it is a problem and what to do.
Since: xHLDS 3.15.0-hs.9.
Values: xhlds_. With a code: the explanation of that code; XH-D01, xh-d01 and D01 all work. Without a code: the list of codes.
Technical details: Some xHLDS console lines start with a code in brackets, for example [XH-D01]. The first time a code is printed after the server starts, its line ends with (xhlds_. The codes so far are XH-D01, XH-D02, XH-T01 to XH-T03, XH-H01 to XH-H03, XH-M01 and XH-M02. xhlds_help lists the settings and commands. The command works over rcon.
xhlds_crashtest
Crashes the server on purpose, so you can check that a crash report is written and, if you set it up, sent.
Since: xHLDS 3.15.0-hs.6.
Values: xhlds_crashtest, with no arguments. It exists only when the server was started with -crashtest.
Technical details: The server really crashes: everyone on it is disconnected, and it restarts as after any crash. Run it on a test server or when nobody is playing. The console prints xhlds_ just before.
Because the command exists only with -crashtest, nobody can crash a normal server with it over rcon.
xhlds_help
Lists every xHLDS setting with its current value and every xHLDS command, one short line each.
Since: xHLDS 3.15.0-hs.11.
Values: xhlds_. Without a word: everything. With a word: only the names that contain it, for example xhlds_ or xhlds_.
Technical details: Only what this server has is listed: some settings exist only on Linux servers, and xhlds_crashtest only with -crashtest. Outputs for plugins (the JSON lines) are listed without their value, and xhlds_ only as set or empty, since it is a secret. Launch options are not listed. The command works over rcon.
xhlds_stats
Shows how evenly the server runs its frames, how each player's connection is doing, and where the frame time goes.
Since: xHLDS 3.15.0-hs.2.
Values: xhlds_. No argument: frame rate, frame times, the gaps between frames as percentiles, and late frames for the last complete window. players: one row per player instead. profile: where the frame time went. joins: where joining players were lost. now: the window in progress so far, instead of the last complete one. json: the same as one line of JSON.
Technical details: A window is xhlds_ seconds long. The frame report also has a line with the frames over the frame budget set by sys_ticrate, and whether late frames came from a frame's own work or from the time between frames. The frame that loads a map is left out.
xhlds_ shows each player's name, round trip, loss each way, choke, rate, update rate, interpolation (Interp), late updates (Late), packets a second, dropped data and overflows. With json it prints one line per player, short enough for one rcon reply.
Both reports end with a short summary for owners: what players missed while they were connected, by kind (Missed data: 6 players missed 420 messages (effects 200, sounds 150, ...); the XH-D01 and XH-D02 lines say who), the players who timed out, by what they were doing (Timeouts: 5 (2 while connecting, 2 while entering the game, 1 in game); the XH-T lines say who), the updates that came too late for the players' interpolation (Late updates: 41 to 6 players (5 on a short interpolation), 3 held back by their rate; 12 of 20 players run a short interpolation (no spare update)), and, when new players joined in the window, how many got in (Joins: 3 started, 2 joined (median 14 s), 1 lost; see xhlds_). In the players table a timeout shows as timeout (while entering the game), and the Join column shows how long a player's join took, or how long a player still joining has been at it and where.
xhlds_ is for when players "never get in". Since the server started: how many new players started joining, got in (and how long they waited) and were lost; where they were lost (while connecting, while downloading or loading the map, while entering the game); why (timed out, left, dropped by the server, for example by a plugin) and after how long; players coming back after a map change; and players whose name starts with [Xash3D] (the Android CS 1.6 game adds it; it is only a name). Then the same for the window. Many lost while downloading or loading the map after a long wait means the download is too big or too slow: check that the FastDL address in sv_downloadurl has every custom file. Players turned away before they get a slot (server full, wrong password, a refused connection) are not counted. The server cannot tell where a player came from: players sent by an advertising or "boost" service connect like anyone else, so compare xhlds_ before and while such a service runs.
A player's game shows everyone a little in the past, by its interpolation (ex_interp), and fills the gap between updates from the last ones it got. Players at the default 100 ms have about 10 updates in hand and do not notice a late one. Players who set it as short as it goes (about 10 ms at 100 updates a second, 4 in 10 players on our fleet) have none: every late update shows as a stutter. Late counts updates that came more than half an update interval after a player's interpolation ran out; the ones held back by the player's rate point at their rate, the rest at the server's late frames (see xhlds_).
xhlds_ shows, for each part of the frame and each game function, the time per frame and its share of the budget, and the longest late frames with what ran before them, including the player command behind one when a command took long, for example command "say". Only the command's first word is shown, never chat text or arguments; for dlfile, a player downloading a file from the game server instead of the FastDL address in sv_downloadurl, it also names the file. How much detail depends on xhlds_.
It measures in every -pingboost mode and doesn't change how the server runs, apart from the small time measuring takes. To compare servers or start options, run it for the same time with players on each. Plugins can read the same values from xhlds_, xhlds_ and xhlds_.
Licences, prices and what xHLDS adds: xHLDS licence and prices.
Something wrong or unclear on this page? Email office@hostsrc.com or tell us on Discord (external site, opens in a new tab).