Page 1 of 1

Useage stats addition?

PostPosted: Sun Sep 18, 2016 2:28 am
by fstltna
Just had a idea - i could write up a utility to generate game useage stats, would just need a json connection to the server to get who was on it at the time it was polled. What do you think?

If you provided:
<player name><connect time>
For each connected player i could take it from there...

Edit: ok, i have a framework up at https://LugdunonCity.org/lugstats - what do you think? Any way to get the status of the user, like regular user or GM? What should i set the background color to to match this site?

Re: Useage stats addition?

PostPosted: Sun Sep 18, 2016 9:20 am
by lugdunon
I think what you want is already in :)

Check the REST services (you can get a JSON listing of supported ones at (default csPort is 41976):

http://server:csPort/rest/

What you need I think you can get here (list players, online status, and time played):

http://server:csPort/rest/net/lugdunon/players

Let me know if you see something missing or have any issues accessing the REST data services.

Cheers,
Chris

Re: Useage stats addition?

PostPosted: Sun Sep 18, 2016 10:32 am
by fstltna
Ok, that has 90% of it. :) Only thing I haven't seen is how to tell if someone is a gm or regular user. And im assuming the last field is seconds since epoc?

Re: Useage stats addition?

PostPosted: Sun Sep 18, 2016 1:05 pm
by fstltna
I have the time played and connect time now displaying properly.

What is the color code for the background here? I want to make it match.

To get it go to https://LugdunonCity.org/lugstats and then click the link in the bottom area. Let me know if you have questions!