ServerRewards

Moved

Total Downloads: 14,033 - First Release: Mar 2, 2016 - Last Update: Jun 9, 2018

5/5, 61 likes
  1. It seems like only yesterday I had to remove all the BP stuff :p I actually have a major update ready for this, which 'should' reduce the plugins impact on server performace. I just need to finish up this universal playtime tracker. Ill be sure to add BP's back into it
     
  2. Is it possible to connect this to a DB?
     
  3. k1lly0u updated ServerRewards with a new update entry:

    0.3.0

     
  4. @k1lly0u has the overview been updated with any new info?
     
  5. just removed what isnt included anymore and added a small description and video for the custom NPC item lists
     
  6. The old serverrewards_rewards.json file does it still work with this new version
     
  7. delete double post
     
  8. So ya this deleted all my players rp and it won't restore it with the backup either. Anyway to get an admin command to add rp to all players at once?
    Like /sr add all 200 for example
     
  9. mine did
    I did mention it may or may not work :p

    Follow these instructions to the letter...

    1. Make a copy of your old data file, and rename it to "serverrewards_playersold.json"
    2. Make a new folder called "Restore" in the SR data folder. ex (oxide/data/ServerRewards/Restore)
    3. Paste the serverrewards_playersold.json into that folder
    4. Drop the attached plugin onto your server. ** DO NOT do this before you have done the first 3 steps **
    5. You should see a message in console telling you that data transfer has been successful
    6. Delete the attached plugin from your server
    7. You will now see 2 files in the "oxide/data/ServerRewards/Restore" folder. 1 is the old one you renamed, the other is new
    8. With ServerRewards UNLOADED copy the new "serverrewards_players.json" to the "oxide/data/ServerRewards/data" folder and overwrite existing
    9. Reload ServerRewards
    10. Bobs your uncle ;)
     

    Attached Files:

  10. I got it working a different way but thx others will find that useful
     
  11. Massive error...
    Code:
    [Oxide] 11:19 [Info] Loaded plugin ServerRewards v0.3.0 by k1lly0u
    [Oxide] 11:19 [Info] [ServerRewards] Creating a new config file
    [Oxide] 11:19 [Warning] [ServerRewards] Playtime Tracker could not be found! Unable to monitor user playtime
    [Oxide] 11:19 [Warning] [ServerRewards] Creating and storing all UI elements to cache
    [Oxide] 11:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:19 [Debug]   at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 11:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:19 [Debug]   at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 11:19 [Error] Failed to call hook 'GetKitContents' on plugin 'Kits v3.1.11' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:19 [Debug]   at Oxide.Plugins.Kits.GetKitContents (System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 11:19 [Warning] [ServerRewards] All UI elements created successfully!
    [Oxide] 11:19 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.0' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 11:19 [Debug]   at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    [Oxide] 11:19 [Info] [ServerRewards] Saved reward data
    [Oxide] 11:19 [Warning] Calling 'OnServerSave' on 'Pets v0.5.5' took 270ms
    Saved 91,923 ents, serialization(0.01), write(0.04), disk(0.01) totalstall(0.08).
    Saving complete
    
     

  12. Same for me!
     
  13. Update Kits?
     
  14. 12:42:04) | [Oxide] 12:42 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.0' (NullReferenceException: Object reference not set to an instance of an object)

    (12:42:04) | [Oxide] 12:42 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  15. is there a fix for this guys I just updated it and this is what I got
    (20:43:51) | [Oxide] 20:43 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.0' (NullReferenceException: Object reference not set to an instance of an object)

    (20:43:51) | [Oxide] 20:43 [Debug] at Oxide.Plugins.ServerRewards.OnServerInitialized () [0x00000] in <filename unknown>:0

    at Oxide.Plugins.ServerRewards.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
     
  16. Did you delete the old config before updating?
     
  17. You are fucking awesome. Did I mention you're fucking awesome? I did? ok
     
  18. Only on days that end in 'Y' :p
     
  19. You need to post the error that you would be getting