ServerRewards

Moved

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

5/5, 61 likes
  1. nope, its working fine for me.
    maybe try reload and "loadimages" ^^
     
  2. The more items you have the longer it takes to load all images
     
  3. @k1lly0u
    Special thanks for bringing in "/srnpc loot" !
    For me this Plugin is very nice and userfriendly :)
    instead of adding "RP_ExchangeRate" in the config, maybe a few more buttons arround line 490 in your
    >private void CreateExchangeUI()<, to exchange 1/ 10/ 100 rp at once, would do a better job.
    [DOUBLEPOST=1475542047][/DOUBLEPOST]And Resistance you are even more nice and friendly! tnx again for helping me out with the playerrankings and everything else, all working fine since then :)
     
    Last edited by a moderator: Oct 4, 2016
  4. i have an error in console !

    (18:23:39) | [Oxide] 18:24 [Info] Loaded plugin ServerRewards v0.3.27 by k1lly0u

    (18:23:39) | [Oxide] 18:24 [Warning] [ServerRewards] Playtime Tracker could not be found! Unable to monitor user playtime

    (18:23:39) | [Oxide] 18:24 [Warning] [ServerRewards] Creating and storing all UI elements to cache

    (18:23:39) | [Oxide] 18:24 [Warning] [ServerRewards] All UI elements created successfully!

    (18:23:39) | [Oxide] 18:24 [Error] Failed to call hook 'OnServerInitialized' on plugin 'ServerRewards v0.3.27' (NullReferenceException: Object reference not set to an instance of an object)

    (18:23:39) | [Oxide] 18:24 [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

    (18:23:40) | [Oxide] 18:24 [Info] [ServerRewards] Saved reward data
     
  5. Playtime Tracker could not be found
    Playtime Tracker | Oxide
     
  6. Anyway to change /s to /shop? plebs be confused
     
  7. Test this make sure you put the json file in your lang folder
     

    Attached Files:

  8. how to backup rp points for the oldest version??
    [DOUBLEPOST=1475623857][/DOUBLEPOST]
    move old rp to the new version
     
  9. GUI is getting stuck on people's screens,even when they relog it still stays?
    [DOUBLEPOST=1475690638][/DOUBLEPOST](18:48:19) | [Oxide] 18:48 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.27' (IndexOutOfRangeException: Array index is out of range.)

    (18:48:19) | [Oxide] 18:48 [Debug] at Oxide.Plugins.ServerRewards+UIElements.DestroyUI (.BasePlayer player, Oxide.Plugins.OUIData data) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.ServerRewards.SwitchElement (.BasePlayer player, ElementType type, Int32 page, System.String npcid) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.ServerRewards.cmdChangeElement (.Arg arg) [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

    (18:48:20) | [Oxide] 18:48 [Error] Failed to call hook 'cmdDestroyAll' on plugin 'ServerRewards v0.3.27' (IndexOutOfRangeException: Array index is out of range.)

    (18:48:20) | [Oxide] 18:48 [Debug] at Oxide.Plugins.ServerRewards+UIElements.DestroyUI (.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.cmdDestroyAll (.Arg arg) [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
    [DOUBLEPOST=1475690752][/DOUBLEPOST]I think this error, is being triggers by a player crashing/Disconnecting while using the shop, also getting this error.

    (18:59:02) | [Oxide] 18:59 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'ServerRewards v0.3.27' (IndexOutOfRangeException: Array index is out of range.)

    (18:59:02) | [Oxide] 18:59 [Debug] at Oxide.Plugins.ServerRewards+UIElements.DestroyUI (.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
     
  10. just reload the damn thing ;)
     
  11. Reloaded it a few times, console still gets same spam. "Reloading" is not the fix we need. as its more then just me with this console spam.
     
  12. You need to delete the config and serverrewards_players.json when using the latest this will fix your problem also make sure you have PlaytimeTracker installed
     
    Last edited by a moderator: Oct 5, 2016
  13. What is the easiest way to delete all players RP ?
    I notice there is not a command for it?
     
  14. delete the datafile serverrewards_players.json should do it
     
  15. No. that didn't work for a "on the fly" method... It may work if the server is stoppped. I havent checked.
    But I was after a method I could do woth the server running.
    Otherwise, I'll just backup my shop items. and delete everything and reinstall the plugin.
    But I would like a better option :)
     
  16. You need to unload the plugin first then delete that file
     
  17. I have tried every way to get my images to load in the serverrewards plugin and still having no luck i have tried multiple image links and even hard copy images.
     
    Last edited by a moderator: Oct 6, 2016
  18. Images haven't worked in 2 weeks. I've tried every combo of reloading/unloading downloading new copies etc..
     
  19. [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.27' (KeyNotFoundException: The given key was not present in the dictionary.)
    (18:48:28) | [Oxide] 15:49 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.ServerRewards+OUIData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.SwitchElement (.BasePlayer player, ElementType type, Int32 page, System.String npcid) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.cmdChangeElement (.Arg arg) [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
    (18:48:29) | [Oxide] 15:49 [Error] Failed to call hook 'cmdChangeElement' on plugin 'ServerRewards v0.3.27' (KeyNotFoundException: The given key was not present in the dictionary.)
    (18:48:29) | [Oxide] 15:49 [Debug] at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.ServerRewards+OUIData].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.SwitchElement (.BasePlayer player, ElementType type, Int32 page, System.String npcid) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.ServerRewards.cmdChangeElement (.Arg arg) [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
     
  20. OK, the error people are getting with this plugin as of right now, is the GUI sticks, they cant open console , they cant type in chat, they cant close the store, it just sticks. then when they disconnect, i get spammed with the error everytime they join/leave until i reload it.

    And again, i cant just delete the cfg and players data, that again is not a fix, other people are having this problem, but ive read no fix for it.