Shen wrote:Hey,
I would like to setup a php statuspage for my dedicated server. I searched through the Database but didn't find any useful information. Only a list of all players, who visited the server since beginning...
I am looking for data like they are shown in the server-selection area: Servername, active Players (incl. list of Playernames who are currently logged in), Ping, Uptime, server settings (e.g. skill progression, crafting,....).
Are these information saved somewhere in the local database?
You can get a lot of the information from querying the server (Source Query).
https://developer.valvesoftware.com/wiki/Server_queriesThere are multiple classes available in various languages for the above. PHP class:
https://github.com/xPaw/PHP-Source-Query-ClassYou can easily grab server name, settings and player count. Don't seem to be able to get an active list of players by name (only seem to be able to get back the length of time they've been on - haven't toyed enough with it but I have a feeling that was intentionally done or perhaps just a bug).
I threw this together which should give you an idea of the possibilities (auto refreshing #32 server status - basic stuff):
http://www.anquer-quare.com/lif/I haven't had a chance to really look at the server database so I can't comment on what you can pull out of that.
Hope the above points you in the right direction.