EasyVote

Moved

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

5/5, 14 likes
  1. The chat commands doesnt do anything when I type them on the server please help me?
     
  2. Check if server print any error to console
     
  3. Still not working after update.

    Code:
    (21:54:00) | [Oxide] 21:54 [Info] EasyVote was compiled successfully in 1984ms
    (21:54:00) | [Oxide] 21:54 [Info] Loaded plugin EasyVote v1.1.53 by Exel80
    (21:54:00) | [Oxide] 21:54 [Error] Failed to initialize plugin 'EasyVote v1.1.53' (NullReferenceException: Object reference not set to an instance of an object)
    (21:54:01) | [Oxide] 21:54 [Debug]   at Oxide.Core.Libraries.Lang.GetMessage (System.String key, Oxide.Core.Plugins.Plugin plugin, System.String userId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.BuildRewardList () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.Loaded () [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 (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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    (21:54:01) | [Oxide] 21:54 [Info] Unloaded plugin EasyVote v1.1.53 by Exel80
    (21:54:01) | [Oxide] 21:54 [Info] No previous version to rollback plugin: EasyVote
    (21:55:32) | [Oxide] 21:55 [Warning] [BoxLooters] Saved Boxlooters data
    (21:56:41) | [Oxide] 21:56 [Info] [Notifier] Airdrop incoming, drop coordinates are: -1259.129, 0, -948.1376.
    (21:56:41) | [Oxide] 21:56 [Info] [FancyDrop] Timed Airdrop incoming at: (-1259.1, 0.0, -948.1)
    (21:56:41) | [Oxide] 21:56 [Info] [FancyDrop] Next timed Airdrop in 28 minutes
    (21:58:32) | [Oxide] 21:58 [Info] Loaded plugin EasyVote v1.1.53 by Exel80
    (21:58:32) | [Oxide] 21:58 [Error] Failed to initialize plugin 'EasyVote v1.1.53' (NullReferenceException: Object reference not set to an instance of an object)
    (21:58:32) | [Oxide] 21:58 [Debug]   at Oxide.Core.Libraries.Lang.GetMessage (System.String key, Oxide.Core.Plugins.Plugin plugin, System.String userId) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.BuildRewardList () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.EasyVote.Loaded () [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 (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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
     
  4. [Error] Failed to initialize plugin 'EasyVote v1.1.53' (NullReferenceException: Object reference not set to an instance of an object)

    Anyone know how to fix?
     
  5. I tried what was listed under the FAQ and it didn't work. If anybody knows, please help!
     
  6. Oxidemod changed language folders directions. I dont get it why it not make language file in right folder.
    I check the code and try found the issue about this error now.


    @PaCe Failed to initialize plugin v1.1.153 · Issue #5 · exel80/EasyVote · GitHub
    [DOUBLEPOST=1477117927][/DOUBLEPOST]Okay, so basically its not plugin fault that you get "at Oxide.Core.Libraries.Lang.GetMessage (System.String key, Oxide.Core.Plugins.Plugin plugin, System.String userId)" error.

    You have to manually move language file right direction => Oxide/lang/en
    If you dont have language file, you need copy it from frontpage. Name it EasyVote.json and copy it to en folder.

    I added 1.1.53 version language json file in this post.
     

    Attached Files:

  7. Hi,

    I am getting this error:
    [Oxide] 15:15 [Error] Web request callback raised an exception (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
    [Oxide] 15:15 [Debug] at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote+<cmdReward>c__AnonStorey1.<>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

    Is this just Toprustservers that have issues?

    Cheers
     
  8. @Merpz
    Can you post your config file? Remember remove api keys
     
  9. Sure here it is:

    {
    "Reward": {
    "vote1": [
    "ammo.pistol: 32"
    ],
    "vote3": [
    "ammo.pistol: 64"
    ],
    "vote6": [
    "ammo.pistol: 64",
    "ammo.rifle: 50",
    "addlvl: 1"
    ],
    "vote10": [
    "ammo.pistol: 64",
    "ammo.rifle: 100",
    "addlvl: 1",
    "grantperm: signartist.url"
    ]
    },
    "Settings": {
    "Annoucment": "true",
    "BeancanID": "",
    "BeancanKEY": "",
    "GlobalAnnouncment": "true",
    "HighestVoter": "false",
    "HighestVoterRewardGroup": "hero",
    "Prefix": "<color=cyan>[EasyVote]</color>",
    "RustServersID": "",
    "RustServersKEY": "",
    "TopRustServersID": "",
    "TopRustServersKEY": ""
    },
    "Variables": {
    "addgroup": "addgroup {playerid} {value} {value2}",
    "addlvl": "xp addlvl {playername} {value}",
    "grantperm": "grantperm {playerid} {value} {value2}",
    "money": "eco.c deposit {playerid} {value}",
    "rp": "sr add {playername} {value}",
    "zlvl-mg": "zlvl {playername} MG +{value}",
    "zlvl-s": "zlvl {playername} S +{value}",
    "zlvl-wc": "zlvl {playername} WC +{value}"
    }
    }
     
  10. There is error in your config. You forgot add time how long player grantPermission. Here is fixed version

    Code:
    {
        "Reward": {
            "vote1": [
                "ammo.pistol: 32"
            ],
            "vote3": [
                "ammo.pistol: 64"
            ],
            "vote6": [
                "ammo.pistol: 64",
                "ammo.rifle: 50",
                "addlvl: 1"
            ],
            "vote10": [
                "ammo.pistol: 64",
                "ammo.rifle: 100",
                "addlvl: 1",
                "grantperm: signartist.url-1d"
            ]
        },
        "Settings": {
            "Annoucment": "true",
            "BeancanID": "",
            "BeancanKEY": "",
            "GlobalAnnouncment": "true",
            "HighestVoter": "false",
            "HighestVoterRewardGroup": "hero",
            "Prefix": "<color=cyan>[EasyVote]</color>",
            "RustServersID": "",
            "RustServersKEY": "",
            "TopRustServersID": "",
            "TopRustServersKEY": ""
        },
        "Variables": {
            "addgroup": "addgroup {playerid} {value} {value2}",
            "addlvl": "xp addlvl {playername} {value}",
            "grantperm": "grantperm {playerid} {value} {value2}",
            "money": "eco.c deposit {playerid} {value}",
            "rp": "sr add {playername} {value}",
            "zlvl-mg": "zlvl {playername} MG +{value}",
            "zlvl-s": "zlvl {playername} S +{value}",
            "zlvl-wc": "zlvl {playername} WC +{value}"
        }
    }
     
  11. Thank you! :)
     
  12. This is the error I get:

    13:21 [Info] Loaded plugin EasyVote v1.1.53 by Exel80
    13:21 [Error] Failed to initialize plugin 'EasyVote v1.1.53' (NullReferenceException: Object reference not set to an instance of an object)
    13:21 [Debug] at Oxide.Core.Libraries.Lang.GetMessage (System.String key, Oxide.Core.Plugins.Plugin plugin, System.String userId) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.BuildRewardList () [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.Loaded () [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 (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.Plugins.CSharpPlugin.HandleAddedToManager (Oxide.Core.Plugins.PluginManager manager) [0x00000] in <filename unknown>:0
    13:21 [Info] Unloaded plugin EasyVote v1.1.53 by Exel80
    13:21 [Info] No previous version to rollback plugin: EasyVote
     
  13. Plugin not found language json file. Check FAQ section, i writed there how you can fix it
     
  14. Hmm... I have tried the following:

    • Q: [Error] Failed to initialize plugin 'EasyVote' (NullReferenceException: Object reference not set to an instance of an object)
    • A: Backup config and data file. Then delete all EasyVote.json files (lang/en/easyvote.json, config/easyvote.json &data/easyvote.json) + reload easyvote
    even re-downloaded the plugin and installed but still no luck :(
     
  15. @Senn This should help,
    • Q: Error: "at Oxide.Core.Libraries.Lang.GetMessage (System.String key, Oxide.Core.Plugins.Plugin plugin, System.String userId)"
    • A: Oxidemod change language files direction. You have to manually move language file right direction => Oxide/lang/en
      If you dont have language file, you need copy it from frontpage. Name it EasyVote.json and copy it to en folder.
     
  16. Exel80 Still having the same issue, even after i changed the configfile:


    Command not found
    [Oxide] 18:07 [Error] Web request callback raised an exception (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
    [Oxide] 18:07 [Debug] at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.EasyVote+<cmdReward>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0
    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0

    Configfile looks like this now:


    {
    "Reward": {
    "vote1": [
    "ammo.pistol: 32"
    ],
    "vote3": [
    "ammo.pistol: 64"
    ],
    "vote6": [
    "ammo.pistol: 64",
    "ammo.rifle: 50",
    "addlvl: 1"
    ],
    "vote10": [
    "ammo.pistol: 64",
    "ammo.rifle: 100",
    "addlvl: 1",
    "grantperm: signartist.url-1d"
    ]
    },
    "Settings": {
    "Annoucment": "true",
    "BeancanID": "",
    "BeancanKEY": "",
    "GlobalAnnouncment": "true",
    "HighestVoter": "false",
    "HighestVoterRewardGroup": "hero",
    "Prefix": "<color=cyan>[EasyVote]</color>",
    "RustServersID": "",
    "RustServersKEY": "",
    "TopRustServersID": "",
    "TopRustServersKEY": ""
    },
    "Variables": {
    "addgroup": "addgroup {playerid} {value} {value2}",
    "addlvl": "xp addlvl {playername} {value}",
    "grantperm": "grantperm {playerid} {value} {value2}",
    "money": "eco.c deposit {playerid} {value}",
    "rp": "sr add {playername} {value}",
    "zlvl-mg": "zlvl {playername} MG +{value}",
    "zlvl-s": "zlvl {playername} S +{value}",
    "zlvl-wc": "zlvl {playername} WC +{value}"
    }
    }

    Is there any required plugins to get the permissions to work? Cause i think it is only on people with 10 or more votes.
     
  17. Yes, you need have Timed Permissions | Oxide plugin in your server.
     
  18. Exel80 updated EasyVote with a new update entry:

    1.2

     
  19. Hello again,

    Still the same issues:

    (12:32:30) | [Oxide] 12:32 [Info] [XP Manager] 1 levels were given to Merpz.

    (12:32:30) | [Oxide] 12:32 [Info] [Timed Permissions] ----> unknown (STEAMID) - Permission Granted: signartist.url for 1.00:00:00

    (12:32:30) | [Oxide] 12:32 [Error] Web request callback raised an exception (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)

    (12:32:30) | [Oxide] 12:32 [Debug] at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0

    at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0

    at System.String.Format (System.String format, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.Lang (System.String key, System.String id, System.Object[] args) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.RewardHandler (.BasePlayer player) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote.ClaimReward (Int32 code, System.String response, .BasePlayer player, System.String url) [0x00000] in <filename unknown>:0

    at Oxide.Plugins.EasyVote+<cmdClaim>c__AnonStorey1.<>m__0 (Int32 code, System.String response) [0x00000] in <filename unknown>:0

    at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0

    This is the latest version aswell.

    Any ideas? It only happends with people with 10 or more votes.

    Also the server does not show that someone has voted.
     
    Last edited by a moderator: Oct 29, 2016
  20. @Merpz If its only happen when voted 10 time, then it has to be that permission grant variable. I try debug it now