It's a battlefield server. And all of the high 6K+ ranges were with a M4.
Addition: Not to mention medkits.
Death API [Unmaintained]
Discussion in 'Plugin Support' started by Hatemail, Jan 20, 2014.
-
Everything works well, except I get the following error:
Code:mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\ThomasK\11957\save\oxide\pl..."]:202: 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\ThomasK\11957\save\oxide\pl..."]:202: : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\ThomasK\11957\save\oxide\pl..."]:202: 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
-
Great job on the latest update! Distance is something I've been wanting on the death handler for a while now! 5 stars!
-
Code:
[Oxide] Lua error (DeathHandler) mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\AlexF\917\save\oxide\plugin..."]:202: 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\AlexF\917\save\oxide\plugin..."]:202: : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\AlexF\917\save\oxide\plugin..."]:202: 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
Also, what timezone are the logs in? They seem to be out of sync with server/GSP time. -
if you'd like to help me out, put ahead of line 202.
print("Debug Info for Hatemail")
print(damage.bodyPart)
print(damage.bodyPart:GetType().Name)
print("End of Debug")
replace on line 197-199
if(self.Config.distance) then
distanceMsg = " - " .. tostring(math.floor(dist)) .. "m"
end
with
if(self.Config.distance) then
print("Avatar Distance: " .. tostring(math.floor(dist)))
print("Last Know Position Distance" .. tostring(math.floor(selfistanceFromPlayers(damage.attacker.client.netUser.playerClient.lastKnownPosition,damage.victim.client.netUser.playerClient.lastKnownPosition) )) )
distanceMsg = " - " .. tostring(math.floor(dist)) .. "m"
end -
So ClanForge only creates the version 1.3 config file for some reason. My death messages do not show distance in all chat, but it shows up to the right side of the screen, for the person who got the kill. Does anyone have a config file or code I can add to show distance? This is currently what I have for my death messages.
{
"right":"**",
"bodyPart":true,
"deathByEntity":false,
"logToFile":true,
"configVersion":"1.3",
"broadCastChat":true,
"logToConsole":false,
"chatName":"Rust Fanatice",
"left":"**",
"logToAdminConsole":true,
"weapon":true,
"player":true
} -
-
I'm not sure if the above exception has been causing my server lag, even though it seems to still work. Can I get a confirmation that this particular error doesn't generate lag so I can decide whether to add it back or not for the time being? Thanks Hate.
-
does anyone know how you get the symbol that looks like a circle with a plus sign in it? I've been looking through sites on special characters and havent been able to find it. I aks here becuase some other folks use it on the deathhandler messages like I would.
-
The only idea I really have is try to see if u can at least set it in game for the suicide msg by using the in game configuration option's.
-
http://oxidemod.org/threads/death-handler.562/page-10 -
-
-
got a little bug every now and again it will throw out the wrong distance in meters
One killed ManoloSkobar using a (Bolt Action Rifle) with a shot to the right calve - 419m
RoW | DaDo2401 killed Korvin Hood using a (P250) with a shot to the right bicep - 6579m
Wymz killed =[Ozstriker]= Geronimo using a (Shotgun) with a shot to the right shoulder - 7275m
--------------
and this
--------------
2:21 AM: ERROR: Lua error (DeathHandler)
mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "\plugin..."]: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 "\plugin..."]:199: : NLua.Exceptions.LuaScriptException: [string "\plugin..."]: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
-----------------------------------------------------
any ideas hatemail? -
-
[Oxide] Lua error (DeathHandler)
mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\kd17752\140\save\oxide\plug..."]:161: 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\kd17752\140\save\oxide\plug..."]:161: 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 -
Look there :
-
Code:
7:56 PM: ERROR: Lua error (DeathHandler) mscorlib: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\ThomasK\17939\save\oxide\pl..."]:202: 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\ThomasK\17939\save\oxide\pl..."]:202: : NLua.Exceptions.LuaScriptException: [string "C:\TCAFiles\Users\ThomasK\17939\save\oxide\pl..."]:202: 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
-
Update in about 15 minutes with a few fix's and some extra debug information.