1. It's a battlefield server. And all of the high 6K+ ranges were with a M4.

    Addition: Not to mention medkits.
     
    Last edited by a moderator: Feb 18, 2014
  2. 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 
     
  3. Posted on wrong plugin, sorry
     
    Last edited by a moderator: Feb 18, 2014
  4. Great job on the latest update! Distance is something I've been wanting on the death handler for a while now! 5 stars!
     
  5. 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 
    
    I'm getting this error a lot.

    Also, what timezone are the logs in? They seem to be out of sync with server/GSP time.
     
  6. The time logging will change in the next update, most likely tomorrow latest this weekend.
    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")

    Weird can you put this in the code for debugging.

    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(self:DistanceFromPlayers(damage.attacker.client.netUser.playerClient.lastKnownPosition,damage.victim.client.netUser.playerClient.lastKnownPosition) )) )
    distanceMsg = " - " .. tostring(math.floor(dist)) .. "m"
    end
     
  7. 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
    }
     
  8. They will need to update to the latest version, as the inventory notice was replaced with the one in chat.
     
  9. 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.
     
  10. 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.
     
  11. 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.
     
  12. It's right there on the previous page of this thread.

    http://oxidemod.org/threads/death-handler.562/page-10
     
  13. which one? honestly no exception should cause lag unless it is in a loop.
     
  14. 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?
     
  15. read my post above and add that code in to help me debug.
     
  16. [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
     

  17. Look there :

     
  18. 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
    Getting this error. May be causing server lag.
     
  19. Update in about 15 minutes with a few fix's and some extra debug information.