FriendlyFire

Toggle friendly fire on/off for Friends API

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

5/5, 15 likes
  1. Code:
    [12/12/2015 10:06:09 PM] [Oxide] 10:06 PM [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FriendlyFire v1.5.3'
    File: FriendlyFire.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 
     
  2. Keep on getting this error in the console (we use 0friendsAPI and not Rust:IO)
    Code:
    [12/27/2015 12:16:22 AM] [Oxide] 12:16 AM [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FriendlyFire v1.5.3'
    File: FriendlyFire.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
     
  3. so how does this work exactly? like if you have a friend on your friends list on steam and u enable ff itll protect you from ur friend shooting at u?
     
  4. Wulf

    Wulf Community Admin

    No, it works with the Friends API, but I may look into the Steam friends idea. ;)
     
  5. Its not working for me after the rust update. It doesnt even create a config file. Tried to reinstall the plugin and restarting server.
     
  6. Wulf

    Wulf Community Admin

    Check your oxide/logs for errors please. I don't see any issues with it locally.
     
  7. Code:
    [2/6/2016 5:20:25 PM] [Oxide] 5:20 PM [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FriendlyFire v1.5.3'
    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 
    [DOUBLEPOST=1454940895,1454772165][/DOUBLEPOST]The server worked 40 hours and began to appear many of errors and the server became lag!
     
  8. Nogrod updated FriendlyFire with a new update entry:

    2.0.0

     
  9. Not works on my server.
     
  10. Wulf

    Wulf Community Admin

    What exactly doesn't work? Any errors in your log? Did you delete the old?
     
  11. Nop sir.
    [DOUBLEPOST=1456529523][/DOUBLEPOST]Just, it don't disable friend fire between 2 friends. Plugin load correctly and no error in logs.

    I did a fresh install, no old config or data.
     
    Last edited by a moderator: Feb 26, 2016
  12. Have you tried updating your Friends API if you haven't already? I don't think it's required, but it's worth a try.
     
  13. Wulf

    Wulf Community Admin

    This uses the Friends API plugin, so pretty sure it needs to use the latest of it too.
     
  14. Argh... Right, i have lua version of Friends xD. sorry
     
  15. Ah, yeah, for clarification I mean't I don't (didn't) think the update is required, I'm not that stupid that I can't see the plugin uses Friends API, haha.
     
  16. Not working for me, i have the updated Friends plugin, should i use this FriendlyFire or IO: FriendlyFire? I am confused.
     
  17. Wulf

    Wulf Community Admin

    This plugin uses Friends API. Rust:IO Friendly Fire is only for use with Rust:IO.
     
  18. Ok, i got this one loaded and friends, still no work..anything special we need to do to make it work?
     
  19. Wulf

    Wulf Community Admin

    Are you sure you are using the latest of each? Only the latest version of each is compatible, older ones will not work together.
     
  20. Player confusion, since i changed from Rust:IO to this one, /friend add wasnt being done by players.

    Thanks!