Playtime Reset??

Hey there!

So after updating my Oxide and Rust to the newest version it seems the Playtime Tracker plugin is having some issues. All player times have been completely reset and have only started counting since the wipe. Although if I look into the Playtime file, I can see all the playtime values are in there and they look correct. Here is an error code that appeared in console...

bc40229c1b1aa476bfa589>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool,System.Text.Encoding)
at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00007] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Core.Configuration.DynamicConfigFile.WriteObject[T] (T config, System.Boolean sync, System.String filename) [0x0003f] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0
at Oxide.Plugins.PlaytimeTracker.SaveData () [0x00011] in <d98f7854c7ef4a1ba61d899575597893>:0
at Oxide.Plugins.PlaytimeTracker.<SaveLoop>m__3 () [0x00000] in <d98f7854c7ef4a1ba61d899575597893>:0
at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <c2afd8354b8b4f3ca451cf5a1aa111c3>:0

Hope to hear back from you soon,
thanks!

*Edit

I have just realised you released an update and it seems now that the Playtime Data is stored in a separate file so all the old data in the other folder and file isn't being used anymore, and therefore lost. Is there anyway to transfer the old data into the new?

It does that automatically. The first line of that error that you cut off will tell you why that file failed to write

I presumed it did it automatically but for some reason it hasn't transfered the playtime over

Merged post

As an example

    "76561############": {
      "playtime": 300.0,
      "afkTime": 0.0,
      "lastRewardTime": 0.0,
      "referrals": 0,
      "displayName": "FlyingDutchman",
      "PlayTime": 321.64138412475586,
      "AFKTime": 0.0
    }​

this is the file for one player, but when they do /playtime it only shows they're played for 0.15 hours



Merged post

This is the same player's playtime data in the old file.
"76561############": {
      "playTime": 741918.73113942146,
      "afkTime": 50341.869166851044,
      "lastReward": 0.0,
      "referrals": 0
    },​

it really looks like something is wrong here