ServerRewards

Moved

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

5/5, 61 likes
  1. Wulf

    Wulf Community Admin

    Looks like it might be an issue with your datafile for the plugin.
     
  2. Thanks! Deleted files, reloaded plugins and it's fine. All except the images but that may just be on my end. Thanks again!
     
  3. hello,

    how are you all ,

    i want to ask how to get points from invite players to the server?
    and how to invite them?
     
  4. after i updated the server
    the image not shown ?!

    before the update it's working perfect !
     
  5. sr add not working
     
  6. @k1lly0u getting this error when people time out
    Code:
    (22:31:06) | [Oxide] 22:31 [Info] [Notifier] NIKO left the server (Reason: Timed Out)
    (22:31:07) | [Oxide] 22:31 [Error] Failed to run a 1.00 timer in 'ServerRewards v0.2.65' (KeyNotFoundException: The given key was not present in the dictionary.)
    (22:31:07) | [Oxide] 22:31 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,System.Double].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.GetPlaytimeClock (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DisplayPoints (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards+<DisplayPoints>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
    (22:31:07) | [Oxide] 22:31 [Error] Failed to run a 1.00 timer in 'ServerRewards v0.2.65' (KeyNotFoundException: The given key was not present in the dictionary.)
    (22:31:07) | [Oxide] 22:31 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,System.Double].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.GetPlaytimeClock (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DisplayPoints (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards+<DisplayPoints>c__AnonStorey1.<>m__0 () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00000] in <filename unknown>:0
     
  7. is it possible to load your api on lua scripts ?
     
    Last edited by a moderator: Jul 23, 2016
  8. Same here

    > sr check knullrufs
    [Oxide] 17:28 [Info] [ServerRewards] [ADMIN] Knullrufs - RP: 0
    > sr add knullrufs 100
    [Oxide] 17:28 [Info] [ServerRewards] Saved player data
    > sr check knullrufs
    [Oxide] 17:28 [Info] [ServerRewards] [ADMIN] Knullrufs - RP: 0
     
  9. [Oxide] 17:58 [Info] [ServerRewards] [JeFuGa] DaNeo - RP: 4459
    > sr add daneo 100
    [Oxide] 17:58 [Info] [ServerRewards] You have given [JeFuGa] DaNeo 100 points
    > sr check daneo
    [Oxide] 17:58 [Info] [ServerRewards] [JeFuGa] DaNeo - RP: 4559

    Error needs to be at you guys
    Plugin is working fine
     
  10. yeah i just removed all of my files, unloaded it, and then restarted the server and then loaded it, and it worked. thanks
     
  11. After putting a bunch of items in my store, went to check it out and at some point, when i hit next page, it seems to have an error. It still shows the top tabs but that's it.

    I have attached my rewards file and config
    , as well as a picture of the problem

    20160726195803_1.jpg
     

    Attached Files:

    Last edited by a moderator: Jul 27, 2016
  12. Same issue here! It happens right round id 60 or so.. I forget the exact id threshold when it blanks it out, but it's around 55-60ish
     
  13. There is virtually no limit (it's in the millions) to the amount of items you can have, if it stops working then there is a problem with your datafile. My test server has 100+ items with no issue and I've seen users with even more then that

    I've explained what causes the problem and how to fix it probably half a dozen times, atm I don't have time to explain it again so search through the thread for the answers. The most common cause is copy/pasting inside the data file instead of adding the items using chat commands
     
  14. Well I do actually use search but sometimes you are not quite sure what to search on and/or get crap results. I'll go back through and read all the thread. Thanks for the help and direction. I'm happy to know it is user error and not a weird bug.
     

  15. I have only added items through in game commands, except the url's and i haven't added those since the new items have been put in , so it can't be from the URL's

    I too will go back and search through

    Update: I went through all 33 pages and did not find anything answering my question, sorry if i missed it. Not sure where to go from here. Help would be appreciated. Thanks:)
     
    Last edited by a moderator: Jul 27, 2016
  16. Remove (using chat command) the previous items/kits you added before this problem started and re-do. Plugin works all good, I have over 100 items and no issues.

    If you are added image urls/descriptions it would pay to unload the plugin before making these edits manually.
     
  17. Code:
    [Oxide] 00:10 [Error] Failed to call hook 'OnPlayerDisconnected' on plugin 'ServerRewards v0.2.63' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 00:10 [Debug]   at System.Collections.Generic.Dictionary`2[System.UInt64,Oxide.Plugins.Timer].get_Item (UInt64 key) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.ServerRewards.DestroyPlayer (.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
     
  18. Unfortunately Zenforo's search feature is garbage lol. I cbf going back and finding the posts so here you go.
    There are 2 things that will break the data file, both have different errors
    1) non-consecutive item numbers (look carefully because even I can't find them sometimes)
    2) invalid item short names (check shortnames with the item list found in the docs
    Both of these errors are generally caused by manually modifying the data file, copy/pasting is the biggest issue
    Do you have playtime disabled in config?
     
  19. Code:
    {
      "Disable_Commands": true,
      "Disable_CurrencyExchange": true,
      "Disable_CurrencyTransfer": true,
      "Disable_Items": false,
      "Disable_Kits": true,
      "DisableUI_FadeIn": false,
      "Econ_ExchangeRate": 250,
      "LogRPTransactions": true,
      "MSG_Color": "<color=#939393>",
      "MSG_DisplayEvery": 1,
      "MSG_MainColor": "<color=orange>",
      "MSG_OutstandingPoints": true,
      "NPCDealers_Only": false,
      "Points_Invites": 3,
      "Points_Referrals": 2,
      "Points_Time": 1,
      "PT_Point_Interval": 60,
      "RP_ExchangeRate": 1,
      "Save_Interval": 10,
      "ShowKitContents": true,
      "Use_Playtime": true,
      "Use_Referrals": true
    }
     
  20. Anyone having issues with adding images? I can't seem to add the images when I do save the file and do the loadimages in rusty the url I put in the file just disappears.