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.
Death API [Unmaintained]
Discussion in 'Plugin Support' started by Hatemail, Jan 20, 2014.
-
I don't know if I want to have it be logged or broadcast to chat will think about that. -
and what about fix pick axe tell were hit you .. and add new weapons ( revolver )
-
-
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. -
-
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 -
Hatemail updated Death Handler with a new update entry:
Fix's and additions.
-
-
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! -
-
-
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
-
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?
-
if (damage.bodyPart ~= nil and _GetNiceName(damage.bodyPart) ~= nil) then
will be in the next update if you can't change the luaLast edited by a moderator: Feb 16, 2014 -
Here is a good one that happened on my server http://steamcommunity.com//sharedfiles/filedetails/?id=226813089
-
-
ahh, please do.
-
Any chance you could add the distance to chat in next update if that's possible then please
-
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