Robbery

Moved

Total Downloads: 1,292 - First Release: Dec 15, 2014 - Last Update: Jan 11, 2018

5/5, 11 likes
  1. need an updete for this))
     
  2. is there something wrong?
     
  3. on player kill , the plugin does nothing( no stealing money, no any chat notification.
     
  4. Sorry for the delay...
    I tested with players several times on my server and everything works just fine.
     
  5. and on my server it doesnt((( okay...
     
  6. Code:
    Flashka was killed by Pozzitibun[Oxide] 10:12 AM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RotAG-Roubo'
    File: RotAG-Roubo.lua Line: 56 bad argument #2 to 'format' (number expected, got 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 
     
  7. Maybe due to the last version of Oxide. Let try that one ;)
    [DOUBLEPOST=1429231971,1429191825][/DOUBLEPOST]Everything WAS fine just after this new update :p
    Lets wait for the new Oxide
     
  8. Oxide 2.0.800
    Code:
    [Oxide] 12:58 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RotAG-Roubo'
    File: RotAG-Roubo.lua Line: 56 bad argument #2 to 'format' (number expected, got 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 
    not working
     
  9. Everything working here. No issues with OnEntityDeath... don't know what you did there on your server, but here it works just fine.
     
  10. is it possible a conflict with other plugin?
     
  11. A remote possibility, but yes. Since I use almost one hundred plugins, I doubt it is the case...
     
  12. Can you suggest an algorithm of diagnosing a problem?
     
  13. Tell me, maybe via private message, all the plugins you have right now and I'll analyse what can be going wrong.
     
  14. error
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      13.7 KB
      Views:
      17
  15. i get this error

    Code:
    [5/27/2015 9:01:11 PM] [Oxide] 9:01 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RotAG-Roubo'
    File: RotAG-Roubo.lua Line: 46 attempt to index field 'Initiator' (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&)
      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
    
     
  16. [DOUBLEPOST=1436702880][/DOUBLEPOST]When a player dies from an animal, then get the error:
    Code:
    [Oxide] 2:57 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RotAG-Roubo'
    File: 00-Economics.lua Line: 60 Object reference not set to an instance of an object:
      at System.UInt64.ToString () [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.Libraries.Rust.UserIDFromPlayer (.BasePlayer player) [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 
    Line 59, 60, 61 in 00-Economics.lua:
    Code:
    function API:GetUserDataFromPlayer(player)
        return self:GetUserData(rust.UserIDFromPlayer(player))
    end
     
  17. Code:
    {
      "Messages": {
        "ChatName": "[Server]",
        "RobResult": "Sen %i TL Degerinde Para Çaldın. %s! isimli Oyuncudan!"
      },
      "Settings": {
        "PercSlpng": 25,
        "PercWake": 40
      }
    }
    my Config like this and when I killed a player I get all money from player not 40 :S how can I fix this? Ty,

    EDIT: OK FIXED
     
    Last edited by a moderator: Jul 31, 2015
  18. Code:
    {
      "Messages": {
        "ChatName": "[РЕЗУЛЬТАТ ОБЫСКА ТЕЛА]",
        "RobResult": "В карманах %s Вы обнаружили $%i крышек!"
      },
      "Settings": {
        "PercSlpng": 1,
        "PercWake": 2
      }
    }
    Hello! It is my config and when you kill someone it do nothing and the same time there is errors in console. By the way Encoding seted in UTF-8 (for russian language).
    Can anyone help me or after yesterdays update this plug dont work anymore?
    Thank you!
     
  19. Wulf

    Wulf Community Admin

    I don't see any issues with the plugin. Are you getting any errors?
     
  20. When a player dies from an animal, then get the error:
    Code:
    [Oxide] 2:57 PM [Error] Failed to call hook 'OnEntityDeath' on plugin 'RotAG-Roubo'
    File: 00-Economics.lua Line: 60 Object reference not set to an instance of an object:
    at System.UInt64.ToString () [0x00000] in <filename unknown>:0
    at Oxide.Game.Rust.Libraries.Rust.UserIDFromPlayer (.BasePlayer player) [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 
    Line 59, 60, 61 in 00-Economics.lua:
    Code:
    function API:GetUserDataFromPlayer(player)
    return self:GetUserData(rust.UserIDFromPlayer(player))
    end