Author Topic: Stats API  (Read 887 times)

badbod

  • Swordman
  • *
  • Posts: 15
    • View Profile
Stats API
« on: 18 November 2011, 15:50:16 »
Hi,
 stats API.
   
 servers report to master for each game played, whether completed or not. with date/time - number of players
 
  nodes can query master and show number of games played, players this month, this week, total, current, per node is good too. Each node can brag about it's traffic.

 
no user logins ATM so no individual user stats I guess, but another thought for future.

 
Regards
BaDboD

Edit by Omega: Renamed thread. "feature request" is not a suitable name. Please be more descriptive.
« Last Edit: 18 November 2011, 17:21:03 by Omega »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Stats API
« Reply #1 on: 25 November 2011, 00:35:43 »
I'll come up with something in this direction soon, probably not on time for the upcoming release, though (I think we should not add new functionality after beta2).
Some of these things may be possible to introduce between releases, too.

Edit: during -> between
« Last Edit: 2 December 2011, 21:01:37 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

badbod

  • Swordman
  • *
  • Posts: 15
    • View Profile
Re: Stats API
« Reply #2 on: 25 November 2011, 09:00:50 »
Hi Tomreyn,
 Great news, not sure what effect it will have inthe long run, but nice to have.

David


MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Stats API
« Reply #3 on: 25 November 2011, 09:28:55 »
Maybe we should also think about identifying clients/user maybe we could use unique ID's per client (which can be transfered between clients / are stored in $AppData/similary to the ID used by Teamspeak http://teamspeak.com/). If no ID is found it'll get one from the server, if uer changes his/her name the name will be stored on server, too. ID must be secure, that it can't be modifyed (or stolen/used) without being the owner of the ID. So the game server could report to masterserver for correct statistics.

I could work out more detailed information how to make such ID-system, if there is real interest in.


badbod

  • Swordman
  • *
  • Posts: 15
    • View Profile
Re: Stats API
« Reply #4 on: 25 November 2011, 09:44:25 »
hmm, I forgot about that.

would the simplest method be to require signup and logon? This might take some considerable rework so just a thought for now.

anyways, immediately what stats can we store/expose?

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Stats API
« Reply #5 on: 25 November 2011, 10:09:21 »
I don't really like the Name/Login System... it's far to static in my opinion. In Glest we don't need special privileges for (single) user, so I don't see any requierements for registration. I personally prefer a client based, automatic ID system (like mentioned before).

Now we could only store general values like:
games-played,
units killed (in total / per faction/bot<->human),
units died (in total / per faction/bot<->human),
resources harvested (in total / per faction/bot<->human),
games won (in total / per faction/bot<->human), 
points (in total / per faction/bot<->human),
botgame (game with bots, true/false),
total-highscores (highest values of all games played),
time played (in total / per faction/per game)
techtree used,
tileset used,
factions played,
...
« Last Edit: 25 November 2011, 10:37:05 by MuwuM »