ServerRewards

Moved

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

5/5, 61 likes
  1. Working fine over here. thanks
    [DOUBLEPOST=1475156332][/DOUBLEPOST]For those having issues, the working solution for loading images is specifically as follows.

    Add item
    edit config file with image
    reload plugin
    loadlocalimages or loadimages
    reload plugin

    If you do it in any different order the images wont show up.
    [DOUBLEPOST=1475156373][/DOUBLEPOST] upload_2016-9-29_14-39-4.png

    upload_2016-9-29_14-39-24.png
     
  2. [H]

    [H]

    Permission? no owner id pls
     
  3. I'm having a strange issue lately. I looked back some pages to see if there was a solution but didn't see anything. I am not seeing any reward points avail to use anymore. When I open the /s store the points are not displayed at the bottom and when you try to purchase items nothing happens. The /rewards check also shows nothing. I was curious so I checked the data file that shows player points and it just says "null". I used this plugin for a long time with few issues so maybe I missed something after a recent update. Also I don't get the points for time played or any chat messages letting me know I have unused points. Is this a known issue? If so what can be done to get things repaired? Thanks for any advice!

    EDIT: I got it. I just don't remember the playtime tracker being used before so I installed it and reloaded everything. Oh and finally had time to fix my images properly!
     
    Last edited by a moderator: Sep 29, 2016
  4. [Oxide] 13:26 [Error] Failed to call hook 'cmdStore' on plugin 'ServerRewards v0.3.27' (NullReferenceException: Object reference not set to an instance of an object)
    [Oxide] 13:26 [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
     
  5. Anyone else not able to accumulate RP points? No points are being added to players. Even when I do an /sr add command and give everyone RP points, no one has any.

    Any ideas?
    [DOUBLEPOST=1475303582][/DOUBLEPOST]I deleted the ServerRewards data folder, and reloaded the Mod, and it is still not working. It seems as though the Mod is not adding players to the player_data list....anyone else?
    [DOUBLEPOST=1475304473][/DOUBLEPOST]Wiped ALL files related to ServerRewards. Did a fresh install of it all. Everything works, except getting RP points, adding command does not work, neither does time. Here is the error I got from logs:

    Code:
    23:40 [Error] Failed to call hook 'ccmdTransferID' on plugin 'ServerRewards v0.3.27' (NullReferenceException: Object reference not set to an instance of an object)
    23:40 [Debug]   at Oxide.Plugins.ServerRewards.ccmdTransferID (.Arg 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
    23:40 [Error] Failed to call hook 'ccmdTransferID' on plugin 'ServerRewards v0.3.27' (NullReferenceException: Object reference not set to an instance of an object)
    23:40 [Debug]   at Oxide.Plugins.ServerRewards.ccmdTransferID (.Arg 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
    23:40 [Error] Failed to call hook 'ccmdTransferID' on plugin 'ServerRewards v0.3.27' (NullReferenceException: Object reference not set to an instance of an object)
    23:40 [Debug]   at Oxide.Plugins.ServerRewards.ccmdTransferID (.Arg 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
    
     
  6. -------------------------------------
     
    Last edited by a moderator: Oct 1, 2016
  7. Afaik you aren't allowed to spawn in Steam Store items for players.
     
  8. How i can config this plugin to players earn 1200 rp each hour??
     
  9. with this

    Playtime Tracker | Oxide
     
  10. hi humble guys. can do help me ?
    1)where do i get the standard photo of all items ?
    2)when i try to put the url into the .json file. nth appeared.
     
  11. Make sure you right click on the pic, go to properties and copy image URL

    Items
     
  12. is this working 100% properly for anyone? If so, what other mods are you running in tandem with this one. Could other mods be interfering with RP points and player data for ServerRewards. I badly want to get this working in my server.
     
  13. some one have a icon bundle for this plugin?
     
  14. I have it running on my server without any issue. I use it with the Playtime Tracker, Kits, and Timed Permission Plug-ins. Some of the other plug-ins I'm running (that aren't used by Server Rewards) are: AdminSpawn, AntiOfflineRaid, Autodoors, Autograde, Clans, CorpseDuration, DeathNotes, InfoPanel, Jail, NoAdminOwnership, Notfier, NTeleporation, Prod, Quicksmelt, RemoverTool, ServerInfo (unmaintained), SignArtist, Spawns, StackSizeController, Tickets, VoteForMoney, Where's my Corpse, XPManager, ZLevelsRemastered, and Zone Manager.
    Phew...that's quiet a list. Might have to think about paring it down a bit...

    Looking at some of your earlier posts, you might have a problem with file locations. Check your /oxide/data/ServerRewards/data/serverrewards_rewards.json file for issues. There's a double '/data' in the path. If you've edited it, or the config file check 'em with http://jsonlint.com/ a misplaced comma can kill a plugin.


    My advice ('cause it's what I do) is to pull from rust.wikia.com . Just find the item you want, and right click on the picture and "Copy Image Location" (in Firefox, your browser may vary). For example, if you want the Small Present, go to Small Present and get the link which is:
    Code:
    http://vignette2.wikia.nocookie.net/play-rust/images/d/da/Small_Present_icon.png/revision/latest/scale-to-width-down/100?cb=20151217230749
    You can trim everything after the '.png' to get
    Code:
    http://vignette2.wikia.nocookie.net/play-rust/images/d/da/Small_Present_icon.png
    For custom images, I upload 'em to TinyPic and then send them over using the "LoadImages" command.

    Otherwise, you've already got 'em. Got to the application's folder and copy 'em out. On my Windows PC they're under:
    Code:
    D:\Program Files (x86)\SteamLibrary\steamapps\common\Rust\Bundles\items
    You might have 'em under the C:\ Drive depending on your setup. For Mac/Linux, your on your own. XD

    For 1) see my note to Jinnai above.
    2) remember when you add the url you have to use "LoadImages" in RCON (Rusty or RustAdmin). Even after that, I end up reloading the plug-in by typing "reload ServerRewards" in RCON.
    If that doesn't work, or if you have any questions, let me know.
     
    Last edited by a moderator: Oct 2, 2016
  15. (17:31:48) | [Oxide] 17:33 [Error] Failed to call hook 'OnPlayerInit' on plugin 'ServerRewards v0.3.27' (NullReferenceException: Object reference not set to an instance of an object)

    (17:31:48) | [Oxide] 17:33 [Debug] at Oxide.Plugins.ServerRewards.OnPlayerInit (.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
     
  16. Is the path for the ServerRewards data not supposed to be:
    /home/user/serverfiles/server/rust-server/oxide/data/ServerRewards/data ?
    If the .json file was messed up, it wouldn't even load the plugin, pretty sure it would just give an error & considering I did an entirely fresh install of the plugin, the only way a .json file would be messed up, is if it the dev incidentally left it that way. But I'll double-check, thanks for the ideas. Plus the Mod seems to know where the filepath to its data files are, because it adds NPC's to the serverrewards_npcids.json file no problem. But it is saving nothing to the serverrewards_players.json file for me. No idea why, its driving me nuts.
     
    Last edited by a moderator: Oct 3, 2016
  17. If you need help pm me your skype info am up for another few hrs
     
  18. i just updated the plugin and made my datafile work again: all 137 skinned items

    remember to do console command "loadimages" after reloading the plugin
     

    Attached Files:

  19. I'm not getting any errors, but the icons all stopped working at some point today. All we're getting is white boxes.

    Anyone else having this problem?