Online list logging
Posted: 08 May 2013, 18:07
So I've been logging the online list to a sqlite database on and off for several years. It just grabs the online list every few seconds and records when people login or logout.. Also keeps track of total time online for any given player. This data can then be analyzed and displayed as useful information.
I had a few minutes today and figured I'd clean up/rewrite the code and release it.
Some sample runs of the included analysis scripts (on a new dataset)
Top 20 users sorted by total time spent in-game
When a user was last seen. Maybe Tree could do this too?
Snoop on a user to see when they login/out
There are many more ways to analyze the data this logger collects. It can be used to determine what hours a player is likely to be online, etc.
Code is attached.
I had a few minutes today and figured I'd clean up/rewrite the code and release it.
Some sample runs of the included analysis scripts (on a new dataset)
Top 20 users sorted by total time spent in-game
Code: Select all
user@mana:~/logger/./top20.pl
Top 20 most-online players:
Kronos 1430 seconds
Aryaes 1430 seconds
webcam.now.im 1430 seconds
ConfusedTree 1430 seconds
Adelina 1430 seconds
Biqcassy 1430 seconds
reldin 1430 seconds
Chaosava 1430 seconds
Necromonger 1430 seconds
SpkTwo 1430 seconds
StarsavekCinderweb 1430 seconds
Rabonbon 1430 seconds
Oswalda 1430 seconds
Apotheosis 1430 seconds
V0id 1430 seconds
Nightghost 1430 seconds
Geologista 1430 seconds
Zekrom 1430 seconds
Chonkers 1430 seconds
Garreth 1430 seconds
Code: Select all
user@mana:~/logger/./seen.pl Dyna
Dyna last seen on Wed May 8 13:54:06 2013
Code: Select all
user@mana:~/logger/./snoop.pl 4144
4144 login Wed May 8 13:54:06 2013
4144 logout Wed May 8 13:53:58 2013
4144 login Wed May 8 13:38:37 2013
4144 logout Wed May 8 13:38:05 2013
4144 login Wed May 8 13:21:19 2013
Code is attached.