EasyVote

Moved

Total Downloads: 4,115 - First Release: Aug 27, 2016 - Last Update: Mar 24, 2018

5/5, 14 likes
  1. CVC

    CVC

    Thank you for the prompt response.
    Pheww, i been searching for those thing all day long. I didn't expecting that. I thought i have to search or generate link or something like that.
    One more question please.
    But I have to copy paste the Vote Link (URL) part right or just leave it with the default settings?

    In case you wanna see part of my config:
    Code:
    "VoteSitesAPI": {
        "Beancan": {
          "API Claim Reward (GET URL)": "http://beancan.io/vote/put/{0}/{1}",
          "API Vote status (GET URL)": "http://beancan.io/vote/get/{0}/{1}",
          "Vote link (URL)": "http://beancan.io/server/vote/rust-dolt" -> I get this from the URL when I want to vote.
        },
     
  2. No dont do that. Add ID and APIKEY (aka KEY) under Servers.
    You can rename ServerName1/2 what every you want.
    Code:
    "Servers": {
        "ServerName1": {
          "Beancan": "ID:KEY",
          "RustServers": "ID:KEY"
        },
        "ServerName2": {
          "Beancan": "ID:KEY"
        }
      },
    Here exmaple.. (i added # to sensor real KEY & ID)
    Code:
    "Servers": {
        "Alpha": {
          "Beancan": "249##:2e#####bcb",
          "RustServers": "944##:ts7dus028###############984s2ruiu1c"
        },
        "Beta": {
          "RustServers": "1369##:l8IXZmL####################hZOZmKLU"
        }
      },
    
     
  3. CVC

    CVC

    Got it. Will try it and reload right away!
    Thank you ;)

    Edit:
    @Exel80
    Found it on oxide log:
    Code:
    EasyVote was compiled successfully in 127ms
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)Unloaded plugin EasyVote v2.0.32 by Exel80
    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)Non platform assembly: data-00000000E520EF80 (this message is harmless)
    Fallback handler could not load library C:/games/rust/exp-oxide/RustDedicated_Data/Mono/data-00000000E520EF80.dll
    Loaded plugin EasyVote v2.0.32 by Exel80
    and this in compiler.txt
    Code:
    [SERVER v1.0.24] Started as service
    [SERVER v1.0.24] Running as service
    [SERVER v1.0.24] Got Message: Ready
    [SERVER v1.0.24] Got Message: Compile
    [SERVER v1.0.24] Console:
    [SERVER v1.0.24] Got Message: Compile
    [SERVER v1.0.24] Console: EasyVote.cs(840,17): warning CS0162: Unreachable code detected[SERVER v1.0.24] Connection closed.
    [SERVER v1.0.24] Shutdown
    What did I missed ? :(
     
    Last edited by a moderator: Jan 9, 2018
  4. Code:
    (12:27:22) | Failed to call hook 'OnPlayerSleepEnded' on plugin 'EasyVote v2.0.32' (IndexOutOfRangeException: Array index is out of range.)
      at Oxide.Plugins.EasyVote.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 hook, System.Object[] args) [0x00000] in <filename unknown>:0
    Anyone else seeing this "randomly" in console?
    Supplied cs / json with API + Webhooks redacted
     

    Attached Files:

  5. Load default config and start again. :)
     
  6. You dont have ID or KEY set. Use format ID:KEY
    Code:
    "Servers": {
        "PGS 20X": {
          "Beancan": "",
          "RustServers": ""
        },
        "ServerName2": {
          "Beancan": "ID:KEY"
        }
      },
     
  7. CVC

    CVC

    Right, now it’s working well.
    Seems the issue isnt about this plugin but the host server provider.
    Thanks alot for the response ;)
     
  8. All works fine except the fake cast vote from rust-servers i dont know why?
     
  9. What do you mean by that?
     
  10. Feature Request:

    Auto Voting Detection with message to chat and Reward per Command.

    btw, Thx for your work! Plugin works great!
     
  11. On rust-servers.net you can cast a vake vote which would give you the reward but doesnt count on the votes and i cant claim a "fake" vote ingame.
     
  12. mine is stuck at Checking the voting server. please wait. whats wrong?
     
  13. Can you send your config? Privatly ofc
     
  14. Yessir, Thanks!
     
  15. There is json syntax error in your config.
    Code:
    SyntaxError: Duplicate key '# CENSURE #' on line 48
    If you other have weird error after config editing. Please use JSONLint -> The JSON Validator
     
  16. and u was 100% correct, i does work now, however it does not announce in chat that players voted, nor does it send it to discord.

    also i get a huge error in my log: and my json is valid according to the validator

    Web request callback raised an exception (IndexOutOfRangeException: Array index is out of range.)
    at Oxide.Plugins.EasyVote.GaveRewards (.BasePlayer player, System.Collections.Generic.List`1 rewardValue) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url, System.String serverName) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    Web request callback raised an exception (IndexOutOfRangeException: Array index is out of range.)
    at Oxide.Plugins.EasyVote.GaveRewards (.BasePlayer player, System.Collections.Generic.List`1 rewardValue) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url, System.String serverName) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
    Web request callback raised an exception (IndexOutOfRangeException: Array index is out of range.)
    at Oxide.Plugins.EasyVote.GaveRewards (.BasePlayer player, System.Collections.Generic.List`1 rewardValue) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player, System.String serverName) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url, System.String serverName) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey3.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00000] in <filename unknown>:0
     
  17. You had empty Rewards strings. Check my PM, how to fix it.
     
    Last edited by a moderator: Jan 20, 2018
  18. thank you! :) i hope the anouncing will be fixed too :) i have to wait for next vote :D
    [DOUBLEPOST=1516485740][/DOUBLEPOST]worked like a charm! now everyone sees the voted player :) however nothing in discord, ive made the webhook and assigned a channel, applied the url to the config wich i sent b4, but nothing. any ideas?
     
  19. No problem :)
    You had installed DiscordMessages , right?
     
  20. derp, no i did not, works flawlessly now! Thank you soo much!!