1. I don't care one way or the other... But my users would really like sleeper kills to be announced and logged like a normal kill.
     
  2. Alright thats something I can work on this weekend, I already have notification to the killer of who he killed plus the distance of the kill noticed to the killer.
    I don't know if I want to have it be logged or broadcast to chat will think about that.
     
  3. and what about fix pick axe tell were hit you .. and add new weapons ( revolver )
     
  4. if the weapons don't get sent to me I can't figure it out sorry not my fault, same with body part if they come in null it's not my fault.
     
  5. Running Death Handler 1.4.2

    9:06 PM: ERROR: Lua error (DeathHandler)
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "<>save\oxide\pl..."]:279: attempt to index local 'damage' (a boolean value)
    --- End of inner exception stack trace ---
    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

    Seems like PLUGIN:OnKilled(takedamage, damage) hook is changed or added something as I use same hook on advanced mission plugin.
     
  6. Just downloaded this version again and uploaded to server and it worked fine for everything. You'll have to give me more to go on when the error occurred.
     
  7. Ok. just updated death handler and oxmin and restarting the server. I hope that helps. Thanks.[DOUBLEPOST=1392411344][/DOUBLEPOST]Still getting it:
    8:51 PM: ERROR: Lua error (DeathHandler)
    Code:
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "14774\save\oxide\pl..."]:279: attempt to index local 'damage' (a boolean value)
      --- End of inner exception stack trace ---
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\MargusR\14774\save\oxide\pl..."]:279: attempt to index local 'damage' (a boolean 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
    
     
    Last edited by a moderator: Feb 14, 2014
  8. Hatemail updated Death Handler with a new update entry:

    Fix's and additions.

     
  9. Do you mean in a notice popup ? I wouldn't like that, if it is, make sure we can turn it off ;)
     
  10. Have you thought about putting the killers remaining health in ( ) next to their feed.

    Sightblack (69hp) killed blahblah with a bolt action rifle. *HEADSHOT*

    Btw, fantastic mod Hatemail. Your death announcer blows Rust++ away!
     
  11. its an inventory popup and last like 2 seconds ha.
    I'll think about it for logging/sending to the victim if they respawn.
     
  12. That is cool !
     
  13. Just had this error:


    Code:
     Lua error (DeathHandler)
    mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\reu_colton1816\960\save\oxi..."]:199: invalid arguments to method call
      --- End of inner exception stack trace ---
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    [string "C:\TCAFiles\Users\reu_colton1816\960\save\oxi..."]:199: : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\reu_colton1816\960\save\oxi..."]:199: invalid arguments to method call
      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 
     
  14. dont think the distance is working or im missing something all it broadcast is the "player killed player using weapon with a shot to there body part" and no distance is this all thats meant to be displayed or am i really missing something?
     
  15. That is all, it just tells the killer. It could be modified for chat though.[DOUBLEPOST=1392525459][/DOUBLEPOST]
    change line 199: to

    if (damage.bodyPart ~= nil and _GetNiceName(damage.bodyPart) ~= nil) then

    will be in the next update if you can't change the lua
     
    Last edited by a moderator: Feb 16, 2014
  16. ahh, please do.
     
  17. Any chance you could add the distance to chat in next update if that's possible then please
     
  18. problem when trying to oxide.relaod plugin


    Code:
    [Oxide] Failed to reload plugin 'DeathHandler'!
    : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\Amphysbaenas\2338\save\oxid..."]:142: too many C levels (limit is 200) in function at line 128 near '2'
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
      at NLua.Lua.LoadString (System.String chunk, System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Main.ReloadPlugin (System.String name) [0x00000] in <filename unknown>:0Failed to invoke Method ConsoleNetworker:SV_RunConsoleCommand with 2 parameters: oxide.reload DeathHandler, Sender: Player Client (1), timestamp: 750.592
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: out of sync
      at System.Collections.Generic.Dictionary`2+Enumerator[System.String,NLua.LuaTable].VerifyState () [0x00000] in <filename unknown>:0
      at System.Collections.Generic.Dictionary`2+Enumerator[System.String,NLua.LuaTable].MoveNext () [0x00000] in <filename unknown>:0
      at Oxide.Main.CallPlugin (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Main.Call (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at ConsoleSystem.RunCommand (.Arg& arg, Boolean bWantReply) [0x00000] in <filename unknown>:0
      at ConsoleSystem.RunCommand_Serverside (System.String strCommand, .NetUser user, System.String& StrOutput) [0x00000] in <filename unknown>:0
      at ConsoleNetworker.SV_RunConsoleCommand (System.String cmd, uLink.NetworkMessageInfo info) [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
      --- End of inner exception stack trace ---
      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
      at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
      at #=qaL2AMBCaBLCj4lGSCwjcBVYUs_5vzeQVgu44HVklVYQ=.#=qG_E6hqIvz6NLWQQCT2N5IA== (System.Object #=qHU1X5mvYu3s1KCG5AbpxtA==, System.Object[] #=qkZ6vhdfn7DFsLIYEdsMCpg==) [0x00000] in <filename unknown>:0