1. Code:
    10:09 PM [Error] Failed to run a 1.00 timer in vote
    File: vote.lua Line: 42 attempt to index field 'rootControllable' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass1.CallFunction () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
     

    Attached Files:

  2. Hi, if you can test this one.

    I think the error came because you have family-share blocke; and after player is kicked vote-plugin still tries to get inventory.
     

    Attached Files:

  3. And how can you solve the problem?
     
  4. I added check that if playerClient doesn't exist it won't try add inventory to a table, fixed version is on my last post
     
  5. Code:
    [Oxide] 4:52 PM [Error] Failed to call hook 'cmdReward' on plugin 'Vote Rewards'
    File: vote.lua Line: 207 attempt to compare number with string:
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [Oxide] 4:52 PM [Error] Failed to call hook 'cmdReward' on plugin 'Vote Rewards'
    File: vote.lua Line: 174 attempt to concatenate field 'price' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
    [Oxide] 2:48 PM [Error] Failed to run a 1.00 timer in vote
    File: vote.lua Line: 42 attempt to index field 'rootControllable' (a nil value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass1.CallFunction () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Timer+TimerInstance.Update () [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: May 5, 2015
  6. Can you show your config
     
  7. It doesnt show anything up in /vote check - I added only my API key for TopRustServers.
    Though if I vote and press /vote check I get my point and can claim my reward but still no msg..

    Rust-Servers works fine though.


    //Edit: Another question is: How do I add a help text to the plugin so when people type /help it tells them a short msg like: "Vote Rewards: Type /vote to claim some sweet rewards today!"
     
    Last edited by a moderator: May 5, 2015
  8. It should show message and shows for me (self.Config.Messages.HasVoted in your config file) if you have voted @ TopRustServer. Are you sure you have the correct apiKey for TopRustServers? And ofc you have voted?


    There is some plugins that makes /help list things you have added to it. Like http://oxidemod.org/plugins/helptext.962/
     
  9. Hey again,

    Yes I get my voting point after I use /vote check buuut after claiming my point it doesnt show any messages on /vote check
    I thought there will be a message that shows up if I have already voted on TRS or not and not just *nothing at all* - maybe you can change that?
    [DOUBLEPOST=1430943603,1430867763][/DOUBLEPOST]Constantly getting the following error lately: Could not connect to TopRustServers!
    It worked earlier today but now it doesn't anymore, even though TRS is online.
     
  10. Its not possible to get your reward, a player gets the vote point however the reward doesn't actually get given to the player
     
  11. Gramexer updated Vote Rewards with a new update entry:

    Few new configurable messages and fixes

     
  12. Code:
    9:51 PM [Error] Failed to call hook 'cmdReward' on plugin 'Vote Rewards'
    File: vote.lua Line: 215 attempt to compare number with string:
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
     
  13. I am getting this error on trying to check for points: /vote check
    Code:
    4:14 PM [Error] Exception raised in web request callback
    File: vote.lua Line: 254 attempt to perform arithmetic on local 'points' (a string value):
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at NLua.Method.LuaDelegate.CallFunction (System.Object[] args, System.Object[] inArgs, System.Int32[] outArgs) [0x00000] in <filename unknown>:0
      at LuaGeneratedClass2.CallFunction (Int32 , System.String ) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>m__1 () [0x00000] in <filename unknown>:0
    And this error when doing /reward guns
    Code:
    4:15 PM [Error] Failed to call hook 'cmdReward' on plugin 'Vote Rewards'
    File: vote.lua Line: 207 attempt to compare number with nil:
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    Anyone know what the issue is?
    [DOUBLEPOST=1433081618][/DOUBLEPOST]The plugin is not working at all. I deleted the plugin + config file and done everything again, still same issue.
     
    Last edited by a moderator: May 31, 2015
  14. Yeah, I'm getting a ton of errors from the vote plugin too - perhaps a new build release of oxide that makes it incompatible?

    I've got oxide core v2.0.1667
    Code:
    6:13 PM [Error] Failed to call hook 'cmdReward' on plugin 'vote v1.0.5'
    File: vote.lua Line: 160 Object reference not set to an instance of an object:
      at Oxide.Plugins.ExtensionMethods.Quote (System.String str) [0x00000] in <filename unknown>:0
      at Oxide.Game.RustLegacy.Libraries.RustLegacy.QuoteSafe (System.String str) [0x00000] in <filename unknown>:0
      at Oxide.Game.RustLegacy.Libraries.RustLegacy.SendChatMessage (.NetUser netUser, System.String name, System.String message) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    [DOUBLEPOST=1451019757,1450837220][/DOUBLEPOST]

    So, this worked fine on 2.0.1581 - now on .1667 it fails with the above error whenever rust.SendChatMessage function is called. For example, the error above is on line 160:

    rust.SendChatMessage(player, "[color #0066CC]---------------------------------------------------")


    Was this function call changed in 2.0.1667 ?
     
  15. Wulf

    Wulf Community Admin

    I'll take a look once I get a chance.
     
  16. Thanks Wulf!

    I am seeing this in another plugins that use the same method. the Admin <-> Player plugin throws the same error and similar trace stack.
     
  17. i downloaded vote rewards but its saying Player Databse isnt installed when it is..? any ida why it says that? here are my logs.
     

    Attached Files:

  18. Yeah you need to download and install the player data base plugin
     
  19. i did download it
     
  20. So did it work?