EasyVote

Moved

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

5/5, 14 likes
  1. @LTrix, In your reward list has some typos, here is fixed version.
    Also you reward list is long, so it will not shown in chat. Because chat has char limits.

    Code:
      "Reward": {
        "vote1": [
          "wood: 10000"
        ],
        "vote3": [
          "wood: 10000",
          "stones: 10000"
        ],
        "vote6": [
          "wood: 10000",
          "stones: 10000",
          "metal.ore: 5000"
        ],
        "vote10": [
          "wood: 10000",
          "stones: 10000",
          "metal.ore: 5000",
          "sulfur.ore: 5000"
        ],
        "vote15": [
          "wood: 10000",
          "stones: 10000",
          "metal.ore: 5000",
          "sulfur.ore: 5000",
          "hq.metal.ore: 1000"
        ],
        "vote25": [
          "rifle.ak: 1",
          "ammo.rifle: 200",
          "metal.ore: 10000",
          "sulfur.ore: 10000",
          "hq.metal.ore: 2000"
        ],
        "vote35": [
          "rifle.bolt: 1",
          "ammo.rifle.hv: 50",
          "addlvl: 2"
        ],
        "vote50": [
          "weapon.mod.small.scope: 1",
          "ammo.rifle.hv: 50",
          "weapon.mod.silencer: 1",
          "addlvl: 2"
        ],
        "vote70": [
          "metal.fragments: 10000",
          "autoturret: 3",
          "addlvl: 2"
        ],
        "vote90": [
          "explosive.timed: 50",
          "rocket.launcher: 1",
          "ammo.rocket.hv: 50",
          "addlvl: 2"
        ],
        "vote100": [
          "addgroup: voter"
        ]
      },
    [DOUBLEPOST=1476126822][/DOUBLEPOST]@Frank Costello, Thanks! Its late now, but i check next day what is the issue here.
     
  2. Thanks Exel80 ! :)

     
  3. I get this error:

    (11:52:25) | [Oxide] 11:52 AM [Warning] Waiting for another application to stop using script: EasyVote

    (11:52:26) | [Oxide] 11:52 [Debug] Load requested for plugin which is already loading: EasyVote

    (11:52:27) | [Oxide] 11:52 [Info] EasyVote was compiled successfully in 1762ms

    (11:52:27) | [Oxide] 11:52 [Info] Loaded plugin EasyVote v1.1.53 by Exel80

    (11:52:27) | [Oxide] 11:52 [Error] Failed to initialize plugin 'EasyVote v1.1.53' (NullReferenceException: Object reference not set to an instance of an object)

    (11:52:27) | [Oxide] 11:52 [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

    (11:52:27) | [Oxide] 11:52 [Info] Unloaded plugin EasyVote v1.1.53 by Exel80

    (11:52:27) | [Oxide] 11:52 [Info] No previous version to rollback plugin: EasyVote

    (11:52:29) | Saved 24,030 ents, serialization(0.00), write(0.00), disk(0.00) totalstall(0.01).
     
  4. @Tommy_vr can you upload your config file? Plugin works fine for me.
     
  5. @Frank Costello - Ye, here is my files:
     

    Attached Files:

    Last edited by a moderator: Oct 15, 2016
  6. You might want to remove your RustServers API Key from showing to the public
     
  7. Thank you for telling me, i have removed my API key from the uploaded file.
     
    Last edited by a moderator: Oct 15, 2016
  8. @Tommy_vr Try delete lang/easyvote.json file. And if it not working, backup and delete all easyvote json files. (lang/easyvote.json, config/easyvote.json, data/easyvote.json)
     
  9. @Exel80

    Re-Installed all the EasyVote files. Still gets this error:

    (13:42:58) | [Oxide] 13:42 [Info] EasyVote was compiled successfully in 1844ms

    (13:42:58) | [Oxide] 13:42 [Info] Loaded plugin EasyVote v1.1.53 by Exel80

    (13:42:58) | [Oxide] 13:42 [Error] Failed to initialize plugin 'EasyVote v1.1.53' (NullReferenceException: Object reference not set to an instance of an object)

    (13:42:58) | [Oxide] 13:42 [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:42:58) | [Oxide] 13:42 [Info] Unloaded plugin EasyVote v1.1.53 by Exel80

    (13:42:58) | [Oxide] 13:42 [Info] No previous version to rollback plugin: EasyVote
     
  10. Add support so multiple servers can be voted for.
     
  11. @Exel80 - I am running Oxide an version: 2.0.2469
     
  12. Say I have 3 different servers to vote for

    I can define the amount of points for voting for each server. A player can vote for any, and receive the defined amount.
     
  13. It should generate lang file by its self. If its not working, then copy language file from Overview section and name it EasyVote.en.json . Make new folder in lang folder, and name it en. Then place json file in en folder.
     
  14. IT works, someone sent me a lang file!! :D
     
    Last edited by a moderator: Oct 16, 2016
  15. @Droodic - Did you reload the plugin, after you made the changes? ( oxide.reload EasyVote )
     
  16. Plugin would not load getting same error as Tomm_vr i copied the lang file from overview and created file myself and it compiles seems to work but anything i edit lang file is does not change.
     
  17. @PUREjaguar - Try to use this exact file:

    OXIDE -> LANG -> EN (You may not have an EN folder, then skip this) -> PASTE THE FILE
     

    Attached Files: