AMX Mod X




Mod: Addon:
Return to stats

Q: What's new?
A: The stats system was completely written. The database schema has been improved for future expandability. The backend aggegator has also been rewritten. Previously, the C++ program took 5 minutes to query all HL2 serves, using 500MB of RAM, 50 threads, and required a Perl script to parse a 60MB text file. Now, a C++ program takes 1 minute to query, using 20MB of RAM, 1 thread, and all stats are aggregated in-memory (there is no parser/script).

On the front-end, we now track maximum and in-game player counts, and these statistics are available per-mod and per-addon. It gets updated every 2 hours instead of nightly, and less servers are marked as dead (around 250 instead of 4,500). This is the result of improved netcode.

Q: How does it work?
A: Every two hours, a C++ program queries all HL1 and HL2 servers for their public cvar information. This program is highly optimized; it takes about 90 seconds to query 35,000 servers, and another 10 seconds to compute statistics into the database. It automatically picks up new mods, but they must be approved before appearing in the stats. Addons must be known ahead of time.

Q: Your numbers don't add up to GameMonitor/SteamPowered.com, why?
A: SteamPowered.com's stats don't seem to match up to anything. The master consistently returns very different information, so we're not sure exactly what Valve is tracking. Querying is not an exact science, either; Game-Monitor might apply its own rules or filters, or simply catch its results at a time where numbers are significantly different.

Q: How do I get my mod tracked?
A: Mods are tracked automatically.

Q: How do I get my addon/plugin tracked?
A: E-mail bailopan@gmail.com with the subject starting with 'STATS'. Your plugin must have a public cvar. For HL1, this means using the FCVAR_SERVER flag. For HL2, it means using FCVAR_REPLICATED|FCVAR_NOTIFY. We will need the addon name, URL, game (HL1 or HL2) and the public cvar name.

Q: What data is retained/tracked?
A: Very little information is retained. Once the servers have been queried, pre-generated statistics are uploaded. These statistics, internally, include information about player/bot/maxplayer counts per-mod and per-server type for mods, addons, and variable values. The precomputed statistics for addons/variables only take into account objects specifically being tracked. No per-server information is tracked, and nothing is written to disk, meaning it is impossible to retroactively track new variables.

Each "set" of statistics is saved. In the future, you will be able to view statistics for any given day.

Q: My Mod or Addon has the wrong URL!
A: E-mail bailopan@gmail.com with the subject starting with 'STATS'.


© Copyright 2003-2013 AMX Mod X Dev Team