You're not confused, this is a real bug. I'll look into finding out what's going on tomorrow, and will try to have a patch by Sunday. Thanks for reporting this!
Playtime and AFK Tracker [Replaced]
Discussion in 'Plugin Support' started by ArcaneCraeda, Sep 23, 2015.
-
ArcaneCraeda updated Playtime and AFK Tracker with a new update entry:
1.3.2
-
How to reset player's data? Seems like just deleting PlayTimeTracker.json in data folder doesn't gives result.
thank you -
Now I'm not totally sure about this, but I think you may have to unload (remove) the plugin, delete the file, then reupload the plugin. If you look at line 98, you see that I load PlayTimeTracker.json into memory, and it stays there until the plugin is unloaded. So that should do it. Sorry about the inconvenience everyone!
-
ok, thank you. testing it
-
AFK time still seems to be accumulating at an unrealistic rate. I deleted previous version of the plugin, restarted server, downloaded latest version of plugin. I then logged myself in and waited, without moving, for 10 minutes (+/- 30 seconds). Results of /afktime below.
3.01:52:00
I interpret as 3.01 days : 52 minutes : 00 seconds
after 10 minutes AFK
3.02:11:00
That's about 19 minutes accumulated in 10 minutes AFK, should only be at the most 8 as I have config set to consider player AFK after four 30 second cycles. -
Could you post the relevant config and data for one of your players (say, BoaConstrictor) as text in a reply? I'm gonna test locally with that.
-
Code:
"76561197999154088": { "SteamID": "76561197999154088", "Name": "Boa Constrictor", "PlayTime": 86453, "AfkTime": 268710, "HumanPlayTime": "1.00:00:53", "HumanAfkTime": "3.02:38:30", "LastSeen": "11/16/2015 6:19:16 PM" },
Code:{ "Afk Check Interval": 30, "Allow Players To Check Time?": true, "Cycles Until Afk": 4, "Track AFK Time?": true }
Last edited by a moderator: Nov 17, 2015 -
Right, so I can't help you with the Excel stuff. What i can do is load up your config and try to replicate it locally. I'll have an answer for you by tomorrow.
Btw, 1.02.:03:04 is 1 day, 2 hours, 3 minutes and 4 seconds.
Edit: Sorry I haven't gotten back to this, I've been busy with school work. I'll look it over on the weekend.Last edited by a moderator: Nov 19, 2015 -
-
-
Attached Files:
-
-
-
Is it possible to save log players data every 5 min, but not only after disconnect the server?
Possible problem: players data not write correct at the server restart. -
-
ArcaneCraeda updated Playtime and AFK Tracker with a new update entry:
1.3.3
-
Thank you!
[DOUBLEPOST=1449431416][/DOUBLEPOST]"Manual Logging Interval": 5,
is this in seconds or minutes? -
-
I have some interesting thing:
Stats reseted 1st December
one player have this stat:
"PlayTime": 898542,
"AfkTime": 129810,
"HumanPlayTime": "10.09:35:42",
"HumanAfkTime": "1.12:03:30",
"LastSeen": "12/7/2015 7:18:08 AM"
it's impossible to be online at server 10 days since reset was 7 days ago
[DOUBLEPOST=1449499428,1449471985][/DOUBLEPOST]Possible fix: All the night autosave was 5 min and gives this unreal result for this user. At morning I change the autosave period to 30 min and probably this fix it.
[DOUBLEPOST=1449557170][/DOUBLEPOST]seems like setup the autosave for 30 min doesn't helps
today morning stats for that player:
"PlayTime": 1448339,
"AfkTime": 358140,
"HumanPlayTime": "16.18:18:59",
"HumanAfkTime": "4.03:29:00",
"LastSeen": "12/8/2015 2:39:12 AM"
for last aprox 24 hours he gets "PlayTime": 1448339 - "PlayTime": 898542 = 549797 seconds (152 hours or 6 days) -
I'm 99% sure you're right that the new auto-save broke something. I don't have time this week to look into it, but I'll update the plugin when it's fixed. For now, just don't use it I guess (set the value to -1) :/ Sorry guys!