ServerRewards

Moved

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

5/5, 61 likes
  1. how do i edit points to get when refer? my friend played 1 day and have 100.. thats not legit
    [DOUBLEPOST=1473865138][/DOUBLEPOST]images is just showing white after update..
     
  2. Hi,
    first of all, thank you for this great Plugin! Awesome work dude :)
    second: Is there a possible way I can clear all Rewards from all Players using a console command? Or can you give me a short explanation how to implement such a command in the code? Thx

    Sorry just seen in the Update Log...Anyway great work! :D
     
    Last edited by a moderator: Sep 15, 2016
  3. thanks for adding /sr add all
     
  4. Hey kill love your plugins. Just updated my server to the new version of SR. deleted config etc then ran SR and tossed...

    (18:34:15) | [Oxide] 18:34 [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
    Help! :)
     
  5. 00:44 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object)
    00:44 [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
    00:44 [Info] [ServerRewards] Saved reward data


    Keep getting this error tried reinstalling and nothing seems to work any advice?
     
  6. I put together a complete list of all skins, with the item name+id, skin name+id and all the picture URLs.
    This should save some time, compared to switching between the long 'item list' and 'skin list' in the rust API and searching in rustwikia for the pics.
    Cheers
     

    Attached Files:

  7. [Error] Failed to call hook 'cmdStore' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object)

    (11:34:38) | [Oxide] 08:34 [Debug] at Oxide.Plugins.ServerRewards.cmdStore (.BasePlayer player, System.String command, System.String[] args) [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
     
  8. Getting the same error as above
     
  9. FIXED:

    I fixed mine by unloading the plugin
    remove/rename data/ServerRewards/data/serverrewards_players.json
    reload the plugin
     
    Last edited by a moderator: Sep 16, 2016
  10. I get

    [Oxide] 19:40 [Warning] [ServerRewards] Playtime Tracker could not be found! Unable to monitor user playtime

    Any idea
     
  11. Try reading the overview
     
  12. I just wanna say, THANK YOU SO MUCH ! haha
     
  13. I tried the offered fix above, as well as reloading it cleanly, and am still getting the below.


    (09:37:05) | [Oxide] 14:37 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object)

    (09:37:05) | [Oxide] 14:37 [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
     
  14. Code:
    (21:29:36) | [Oxide] 21:29 [Info] Loaded plugin ServerRewards v0.3.21 by k1lly0u
    (21:29:36) | [Oxide] 21:29 [Info] [ServerRewards] Creating a new config file
    (21:29:36) | [Oxide] 21:29 [Warning] [ServerRewards] Creating and storing all UI elements to cache
    (21:29:36) | [Oxide] 21:29 [Warning] [ServerRewards] All UI elements created successfully!
    (21:29:36) | [Oxide] 21:29 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object)
    (21:29:36) | [Oxide] 21:29 [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
    (21:29:36) | [Oxide] 21:29 [Info] [ServerRewards] Saved reward data
     

  15. Thanks, I was having trouble getting images to show up at all. Following these directions fixed my problem.
    [DOUBLEPOST=1474056721][/DOUBLEPOST]
    I also would love to see subcategories.
     
  16. Can this please be looked at as a quick fix before the major version change? When you go in the store, and press close before pressing anything else, the Playtime counter/points text stays and a mouse cursor stays up, it will not go without reloading the plugin, even closing the game and re opening doesnt fix, at the same time as it happens I see this error. thanks

    Code:
    (14:07:56) | [Oxide] 06:08 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'ServerRewards v0.3.21' (KeyNotFoundException: The given key was not present in the dictionary.)
    (14:07:56) | [Oxide] 06:08 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.Dictionary`2[Oxide.Plugins.ServerRewards+ElementType,Oxide.Game.Rust.Cui.CuiElementContainer[]]].get_Item (System.String key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards+UIElements.DestroyNav (.BasePlayer player, Oxide.Plugins.OUIData data) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DestroyUI (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.OnPlayerDisconnected (.BasePlayer player) [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
    In the meantime I'm going to add a plugin reload on timedexecute of every 15 mins, now I just have to find a way for it to not bring up the message about how many points you have at the time as it being reloaded

    EDIT: I've edited the CS file to modify it from saying use /s because I've disabled it, but somehow it keeps saying the original /s line, I've unloaded it, made the change then reloaded, guess I need to delete my data?
     
    Last edited by a moderator: Sep 17, 2016
  17. I cleared all of the files out for it and tried to let it start fresh, and it won't compile. I keep getting the errors I posted above, and it never generates half of the data files. I tried copying in a backup copy, and still nothing. I haven't been able to get it working at all since Thursday. I double checked oxide and all of the normal things, and still nothing.
     
  18. Are you on the most recent version of Oxide? Mine's working fine except for the weird gui bug
     
  19. Yeah its lookslike there is oxide update needed cause my SR looks smoothly and good ;) no errors or so

    Edit: meaning like you need to instal new oxide, not that oxide needs update by devs ;)
     
  20. Help me!!!
    Code:
    [Oxide] 00:48 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.21' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 00:48 [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