Vote Checker & Rewarder

Give rewards to users for voting on game-servers.top & rust-servers.net

Total Downloads: 1,969 - First Release: Jul 12, 2015 - Last Update: Feb 15, 2016

5/5, 12 likes
  1. hm i have this now after new version..
    2/10/2016 9:22:55 AM] [Oxide] 9:22 AM [Error] Failed to call hook 'ChatCmd_Rewards' on plugin 'VoteChecker v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [2/10/2016 9:24:22 AM] [Oxide] 9:24 AM [Error] Failed to call hook 'ChatCmd_Rewards' on plugin 'VoteChecker v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [2/10/2016 9:25:49 AM] [Oxide] 9:25 AM [Error] Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
    [2/10/2016 9:26:21 AM] [Oxide] 9:26 AM [Error] Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
    [2/10/2016 9:26:24 AM] [Oxide] 9:26 AM [Error] Failed to call hook 'ChatCmd_Rewards' on plugin 'VoteChecker v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)
    [2/10/2016 9:29:03 AM] [Oxide] 9:29 AM [Error] Failed to call hook 'ChatCmd_Rewards' on plugin 'VoteChecker v2.1.0' (NullReferenceException: Object reference not set to an instance of an object)

    at Oxide.Plugins.VoteChecker.WebRequestCallback (Int32 code, System.String response, .BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker+<GetRewardsForThisPlayer>c__AnonStorey3.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0

    have set api key and id manuel in conf and reward first manuel than in game....
    /rewards say get rewards for daily votes..../getreward no reaktion

    but version befor after server restart..reset rewards to pistol and ammo and than it have work good ?but not sure whit multiple rewards..

    EDIT: 'VoteChecker v2.1.0' is it correkt version what i have download?
     
    Last edited by a moderator: Feb 10, 2016
  2. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    Changelog 2.1.5D


    [DOUBLEPOST=1455132091][/DOUBLEPOST]
    You should never manually edit the config files or reward files. If the plugin picks up issues in any of these it will revert it to stock. Only use commands to add new stock to avoid breaking anything.
    [DOUBLEPOST=1455132130][/DOUBLEPOST]
    That is strange. Which files did you manually edit?
    [DOUBLEPOST=1455132351][/DOUBLEPOST]
    Listforge is the company that owns rust-servers.net, hurtworld-servers.net ect.
     
  3. Code:
    [Oxide] 1:35 PM [Error] Failed to initialize plugin 'VoteChecker v2.1.0' (JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Oxide.Plugins.VoteChecker+RewardItem' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '[0]', line 2, position 4.)
    [Oxide] 1:35 PM [Debug] at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList (IList list, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonArrayContract contract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, System.String id) [0x00000] in <filename unknown>:0
    
     
  4. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.51D


    [DOUBLEPOST=1455133280][/DOUBLEPOST]
    You rewards file is very old, please try the new update, it will try and convert your pre V2 file.
     
  5. Yes, for some reason I installed the latest version and after about ~10 minutes it converted the rewards file. Sorry about that!
     
  6. Great. Everything working now?
     
  7. Sby

    Sby

    /rewardconf api <tgs/listforge> youServerApiKey what is tgs/listforge?
     
  8. ok this version at me...
    -cant set api and id whit chat commands...no reaktion
    -/getreward no reaktion
    -rewards set and /reward all ok

    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    [2/10/2016 10:23:43 PM] [Oxide] 10:23 PM [Debug] at Oxide.Plugins.VoteChecker.giveItems (.BasePlayer player, Int32 voteCount) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker.WebRequestCallback (Int32 code, System.String response, .BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker+<GetRewardsForThisPlayer>c__AnonStorey3.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0

    [2/10/2016 9:30:35 PM] [Oxide] 9:30 PM [Error] Failed to load plugin 'votechecker' (no source found)
    [2/10/2016 9:33:56 PM] [Oxide] 9:33 PM [Error] Failed to call hook 'ChatCmd_Config' on plugin 'VoteChecker v2.1.0' (IndexOutOfRangeException: Array index is out of range.)
    [2/10/2016 9:39:10 PM] [Oxide] 9:39 PM [Error] Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
    )
     
  9. @jackherroor Please send me the files I requested in the uodate version. Without them I can not help.
    [DOUBLEPOST=1455168087][/DOUBLEPOST]
    listforge is rust-servers.net
    tgs is game-servers.top
     
  10. Sby

    Sby

    Thanks but like jackherror said , there's no reaction when you put any command in the chat , is it meant to do that?
     
  11. Seriously. You guys need to read the updateds.

    Changelog 2.1.51D
    • DEBUG VERSION, if you are having issues, please install this version. It will print all info I need to the logfile, and will help solve some of the issues users are experiencing.
    • Rewards error fixed.
    • Added automatic conversion of rewards file if problems detected.
    So from that, I need your files relating to the plugin. Without this I cannot help. But in short no it's nor suppose to do that if everything was setup correctly.
     
  12. Sby

    Sby

    You might aswell make a video on how to do it if people keep complaining to be honest.
     
  13. Pho3niX90 updated Vote Checker & Rewarder with a new update entry:

    2.1.52D


    [DOUBLEPOST=1455171167][/DOUBLEPOST]
    A video to show how to read the updates? Or to show how to setup the plugin?
    A video is way overkill for a plugin that is extremely straight forward to setup, the issue comes with users that seem to be using translators to understand what is happening. Even if I do create a video it will still be in english, and the problem will still persist. This is why I am offering the support I am trying to solve all users issues individually, but I cannot do this if I do not receive the files I request, this causes frustration for both me and the user.
     
  14. [Oxide] 9:25 PM [Debug] at Oxide.Plugins.VoteChecker.giveItems (.BasePlayer player, Int32 voteCount) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker.WebRequestCallback (Int32 code, System.String response, .BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.VoteChecker+<GetRewardsForThisPlayer>c__AnonStorey3.<>m__1 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0

    Everytime someone type /getreward.
     
  15. The plugin recognises that a player (owner) has voted 3 times as indicated via rcon but it fails to provide the rewards and it also fails to record player details in the relevant data file. The rewards are set to auto give.
    All of the API details are correct, however they have been edited out as I do not wish to share them around.

    Code:
    (10:20:53) | [Oxide] 12:14 PM [Warning] [VoteChecker] TGS Passing: http://game-servers.top/api/query.php?apikey=****************&interval=1&period=week&steamid=76561197960975674&app
    (10:20:53) | [Oxide] 12:14 PM [Warning] [VoteChecker] LF Passing: http://api.cyberscene.co.za/listforge/votechecker.php?steamid=76561197960975674&ver=2.1.0&api=************&mode=week&interval=1&platform=rust
    (10:20:53) | [Oxide] 12:14 PM [Warning] [VoteChecker] Game-Servers votes is 1
    (10:20:54) | [Oxide] 12:14 PM [Warning] [VoteChecker] Listforge votes is 2
    (10:20:54) | [Oxide] 12:14 PM [Warning] [VoteChecker] Votecount passed to giveitems is 3
    (10:20:54) | [Oxide] 12:14 PM [Error] Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)
     

    Attached Files:

  16. Can you tell me if the plugin printed anything to the chat?
     
  17. Nothing via chat in logs and I saw nothing whilst I was in game either.
     
  18. Please try this one. In all honesty I have no idea why it's throwing NRE in web request after it completed.

    Could you then post your findings here. Just delete the plugin, wait for it to unloaded completely and then upload this into plugins folder
    [DOUBLEPOST=1455189037][/DOUBLEPOST]
    I need your logfile.
     

    Attached Files:

  19. Okay, I unloaded, removed the old plugin file and then uploaded the new one. It loaded correctly with no issues. In game we can use the command to see the reward list so that part is fine. I tried to manually get the rewards however this failed with the same error as previously posted. I have also closed Rust completely and rejoined to see if it was an issue with manually getting the rewards and it turns out that the error persist on connect too. The plugin still hasn't written any player info into \Data\VoteCheckerUserVotes.json though I am not sure how the plugin handles that.
     
  20. Okay could you upload your log? if it contains sensitive data then PM it to me. I need to see what is happening