Forum

> > CS2D > Servers > Stats:Extract [0.5]
Forums overviewCS2D overview Servers overviewLog in to reply

English Stats:Extract [0.5]

No replies
To the start Previous 1 Next To the start

old Stats:Extract [0.5]

Nekomata
User Off Offline

Quote
IMG:https://i.imgur.com/N0XW5Qz.png


Features
• Decode and Parse userstats.dat
• Parse server stats and graph data from serverstats.html
• Get real-time server stats/info from a running server
• Get real-time players on the server (name, score, deaths, team)
• Use unrealsoftware's web API to get player Name & Avatar
• Helpful utility functions included
• Light-weight
• Windows & Linux


August 2016 Update
This update contains major code refactoring & optimizing. Lots of updates & bug fixes here and there. Parsing is much faster and now you can get real-time player information from a server!


• DOWNLOAD S:E (ver.0.5) (~7.6KiB)
• INFOGRAPH
• [official] Live Demo
• -[IFwsI]- Live Demo
• -[IFwsI]- Server Stats Screenshot
• -[IFwsI]- User Ranking Screenshot
• Github (view source)

Before I get started I'd show my grace to a few people.
Firstly, I'd like to thank user _Yank, for sparking the idea of S:E.
Secondly, user MikuAuahDark, for providing a direct decode process script for the userstats.dat, without his help, I wouldn't have been anywhere near to completion now.
Thirdly, user eledah, for helping out with his feedback and testing.
Fourthly, user DC, for providing his script for getting direct information from a server!
Fifthly, user Apache uwu, for permitting me to use some methods needed for decrypting the socket data for players on a server.
And lastly, everyone who voted for the yay, especially for the 16:2 (yay:nay) ratio! This project wouldn't even be here if the yay wasn't in my favor.


What's Stats:Extract?
Stats:Extract is a PHP library which can be used to decode userstats.dat & extract server & graph statistics from serverstats.html.
You can use this library offline for extracting either of the files or even online on your dedicated/vps running your cs2d servers if you're a web developer & wish to represent the server data & ranks in your own ways. Hell, you can even make your own online API with this in the backhand.

No, it won't magically create a website for you to display the rankings and statstics, it extracts the values from the files and places them into a returning array which then can be used as to however you wish to use it. So then all you have to do is loop through an array (array structures are documentated in the source).

More information is available on the download page.

Be sure to check it out if you're a VPS server hoster as this is a must-have asset. And I probably forgot to mention, but you need to know PHP to set it up & run it.

Feel free to report any bugs you find!

Useful Links
http://www.chartjs.org/ (for representing the graph data)
edited 11×, last 29.07.16 11:12:11 pm
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview