FriendlyFire

Toggle friendly fire on/off for Friends API

Total Downloads: 12,857 - First Release: Oct 26, 2014 - Last Update: Mar 9, 2017

5/5, 15 likes
  1. Wulf

    Wulf Community Admin

    Try the version below please, though it likely won't make a difference.
     

    Attached Files:

  2. This version of plugin is working very well and without errors.
     
  3. I'm using this version (latest) with the required FriendsAPI. I then turned friendly fire off manually and got me and another guy /friend add and i shot him and he went down. No errors in the log also. This is a feature that is needed alot on my server and would appriciate a quick patch.
     
  4. Wulf

    Wulf Community Admin

    It hasn't changed, try the version posted above.
     
  5. Code:
    [8/3/2015 6:51:12 PM] [Oxide] 6:51 PM [Error] Failed to call hook 'OnPlayerAttack' on plugin 'Friendly Fire'^M
    File: FriendlyFire.lua Line: 57 attempt to call method 'ToPlayer' (a nil value):^M
      at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 ^M
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 ^M
      at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 ^M
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 ^M
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 ^M
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 ^M
    
     
  6. Wulf

    Wulf Community Admin

    Try http://oxidemod.org/threads/friendly-fire.5857/page-8#post-107000.
     
  7. Wulf

    Wulf Community Admin

    I'll test again shortly.
     
  8. Code:
    Failed to call hook 'OnPlayerAttack' on plugin 'Friendly Fire'
    File: FriendlyFire.lua Line: 59 attempt to call method 'ToPlayer' (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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
    Last edited by a moderator: Aug 9, 2015
  9. Wulf

    Wulf Community Admin

    Try http://oxidemod.org/threads/friendly-fire.5857/page-8#post-107000.
     
  10. Code:
    [9/10/2015 7:53:16 PM] [Oxide] 7:53 PM [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FriendlyFire v1.5.4'
    File: FriendlyFire.lua Line: 57 attempt to index field 'HitEntity' (a number 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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0
      at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
     
  11. Wulf

    Wulf Community Admin

    Try Friendly Fire | Page 8 | Oxide.
     
  12. Code:
    [Oxide] 8:33 PM [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FriendlyFire(1) v1.5.3' File: FriendlyFire(1).lua Line: 63 instance method 'CallHook' requires a non null target object: 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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    error....
     
  13. Wulf

    Wulf Community Admin

    From the looks of it, either the attacker or the target doesn't have a Steam ID.
     
  14. This is happening to everyone on my server for some reason, I don't know why. Everyone has a steamid in the server. Is there a way to fix this?
     
  15. Wulf

    Wulf Community Admin

    What is the filename of your FriendsAPI plugin? It should be 0friendsAPI.lua.
     
  16. 0friendsAPI.lua yeah, but I think the errors may be coming from the plugin FriendlyFire because that's where the error is coming from.
     
  17. Wulf

    Wulf Community Admin

    Try this version please: Friendly Fire | Page 8 | Oxide.
     
  18. I did, now I'm getting this
    Code:
    [Oxide] 9:24 PM [Error] Failed to call hook 'cmdFriend' on plugin '0friendsAPI v1.2.5' File: 0friendsAPI.lua Line: 171 attempt to compare number with nil: 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 NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <filename unknown>:0 at NLua.LuaFunction.Call (System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Ext.Lua.Plugins.LuaPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
    [DOUBLEPOST=1442716673][/DOUBLEPOST]Chatmute isn't working either, I'm guessing that this does have something to do with steamid, but the server was just fine and then it's like this stuff just broke, not sure how.
    [DOUBLEPOST=1442718785][/DOUBLEPOST]@Wulf I tried to do status in f1 and it said this global.status -Exception has been thrown by the target of an invocation. (mscorlib)