1. 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!
     
  2. ArcaneCraeda updated Playtime and AFK Tracker with a new update entry:

    1.3.2

     
  3. How to reset player's data? Seems like just deleting PlayTimeTracker.json in data folder doesn't gives result.

    thank you
     
  4. 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!
     
  5. ok, thank you. testing it :)
     
  6. 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.
     
  7. 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.
     
  8. 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
    }
    Where I'm having the problem might not be your plugin, rather my conversion process. I take AFK time as seconds (268710 above) and divide by 60 to get minutes, then again divide by 60 to get hours. I do this in an Excel sheet I've made where I can just copy and paste the data and the sheet converts and presents me the data in an easy to read format.
     
    Last edited by a moderator: Nov 17, 2015
  9. 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
  10. No worries Arc...whenever you get a chance. ;)
     
  11. Boa, are you still getting the unrealistic AFK time? Cause I loaded your config and was afk for 10 minutes, it reported correctly 8 min afk...
     
  12. This was over the course of no more than 3 minutes. (attached pic) No idea why other than some conflict with another plugin? List of plugins included as JPG too. I'll try and do some tests when I get time, running it without any other plugins and adding plugins to see if I can pin down the conflict, if any.
     

    Attached Files:

  13. Since I don't know what's wrong with your version, what I'll do for you is build you a version that dumps debugging info to a file. It'll have to wait a few weeks though.
     
  14. 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.
     
  15. Sure thing, let me add a config really quick to do that.
     
  16. ArcaneCraeda updated Playtime and AFK Tracker with a new update entry:

    1.3.3

     
  17. Thank you!
    [DOUBLEPOST=1449431416][/DOUBLEPOST]"Manual Logging Interval": 5,
    is this in seconds or minutes?
     
  18. Should have specified, minutes. Btw, I didn't test this since I don't have much time on my hands right now. Should work though.
     
  19. 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)
     
  20. 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!