Numbers and PHP

By Asterisk3 minutes read

Ok so, after some hard work I’ve set up HlStatsX at /stats and Sourcebans++ at /sb.

The main problem I’m encountering with this is that the Sourcebans plugins won’t compile on PF2’s old Sourcemod 1.11. Regardless, I did set up HLStatsX, and that has gone quite well.

Numbers and Charts

First up, I’ve brought back the Sourcebans page with that iconic design (even if it doesn’t do anything yet):

Dashboard from https://caltrop.asterisk.lol/sb
My homepage design skills are sublime.

This will eventually host bans and this informative video:

The next big thing is HLStatsX. It looks almost exactly the same as the HLStats page for the official servers, but there aren’t many good stylesheets.

Main page from https://caltrop.asterisk.lol/stats
Look at that beauty. Too bad there aren't any players.

Note

The first time you connect, your public player information is recorded in the database and a player page is generated. You should know how HLStats works, it’s been 25 years since it came out.

Now, unlike some servers (looking at you, makes-me-want-to-VaultF4), I’ve redacted sensitive GeoIP information from the web panel.

This is what a typical player page looks like:

My player page on HLStatsX, I'd recommend visiting it directly: https://caltrop.asterisk.lol/stats/hlstats.php?mode=playerinfo&player=1
Isn't it grand?

Tip

Still hate GeoIP? Use a VPN to obscure your real country of origin!

Clicking the SteamID will take you to the player’s profile. The city you connect from would normally be displayed alongside your country, but I’ve redacted that (it is still stored in the database).

The clan system works by detecting clan names in your Steam display name, i.e. [CALTROP] Asterisk would match you to the CALTROP clan.

Players and countries are ranked based on total points (you get points for all sorts of things, but you only get regular points after 50 kills), so you can apply your patriotism to a video game.

I plan on using this data for more things once we have more of it.

Recent bans

I’ve also had to ban a cheater (HVH player, rather) and somebody spamming messages advertising PF2’s only cheating software (which shall not be named).

Anyway, I hope to get sourcebans working and I’ll work on the CS:S server if I find the time.