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. I cant help you if you're not willing to help me. All you do is keep posting error messages.
     
  2. Code:
    1:15 PM [Error] friendsfriendlyfire: [string "friendsfriendlyfire.lua"]:37: 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 (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
    1:15 PM [Info] ☠ Kirito bled to death.
    1:16 PM [Info] [Welcome Gifts] Welcome gift(s) given to Ton4uk
    1:16 PM [Info] Matt. killed Vakabiel (Waterpipe Shotgun) with a hit to their (neck) at 13m
    1:16 PM [Error] friendsfriendlyfire: [string "friendsfriendlyfire.lua"]:37: 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 (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
    1:16 PM [Info] De-Killer murdered Microsoft Word while sleeping using a (Stone Spear) at 0m
    1:16 PM [Info] [Welcome Gifts] Welcome gift(s) given to marcel-kuropatwa
    1:16 PM [Error] friendsfriendlyfire: [string "friendsfriendlyfire.lua"]:37: 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 (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
    1:17 PM [Info] Cb SouzaSilva murdered [BA] iiLiq while sleeping using a (Stone Hatchet) at 0m
    1:17 PM [Info] BF'T killed UdderDefeat (Stone Spear) with a hit to their (spine3) at 2m
    1:17 PM [Info] [Welcome Gifts] Welcome gift(s) given to Shrek the President
    1:17 PM [Error] friendsfriendlyfire: [string "friendsfriendlyfire.lua"]:37: 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 (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
    1:17 PM [Info] [Welcome Gifts] Welcome gift(s) given to Neyto
    1:17 PM [Info] ☠ XBudderMongerzX bled to death.
    1:17 PM [Info] ☠ UdderDefeat died of natural causes.
    1:17 PM [Info] DrunkleFrank killed NeO (Waterpipe Shotgun) with a hit to their (l_eye) at 7m
    1:17 PM [Info] kengoldie killed SquibZ (Waterpipe Shotgun) with a hit to their (r_clavicle) at 9m
    1:17 PM [Info] UdderDefeat murdered Luke while sleeping using a (Rock) at 1m
    1:17 PM [Error] chathandler: [string "chathandler.lua"]:739: attempt to concatenate local 'wordFilterList' (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 (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
    1:18 PM [Info] ☠ JoeiMan died of natural causes.
    1:18 PM [Info] scatmandoodoo killed NeO (Stone Hatchet) with a hit to their (spine3) at 4m
    1:18 PM [Error] chathandler: [string "chathandler.lua"]:739: attempt to concatenate local 'wordFilterList' (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 (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
    1:18 PM [Info] [NG]misterjokeman killed De-Killer (Hunting Bow) with a hit to their (r_upperarm) at 3m
    1:18 PM [Info] ☠ [NG]misterjokeman bled to death.
    1:18 PM [Info] MaksikxD killed Rellsworth (Stone Hatchet) with a hit to their (spine1) at 3m
    1:18 PM [Info] scatmandoodoo killed [TBW]Natan (Stone Hatchet) with a hit to their (spine4) at 1m
    1:18 PM [Info] [Welcome Gifts] Welcome gift(s) given to [Hooligans] Sanyok
    1:18 PM [Info] ☠ [TBW]Natan died of natural causes.
    1:18 PM [Info] rettspy killed MaksikxD (Stone Hatchet) with a hit to their (head) at 1m
    1:18 PM [Info] rettspy killed [DM] DeadPool (Stone Hatchet) with a hit to their (head) at 1m
    1:18 PM [Info] ☠ KIMCHI bled to death.
    1:18 PM [Info] smallcool killed [Hz]GabrielDMC (Stone Hatchet) with a hit to their (spine4) at 2m
    1:18 PM [Info] I Know You killed JeremyB (Stone Spear) with a hit to their (spine4) at 1m
    1:19 PM [Info] ☠ B3K bled to death.
    1:19 PM [Info] scatmandoodoo killed [TBW]Natan (Stone Hatchet) with a hit to their (spine4) at 1m
    1:19 PM [Info] TomNOR murdered PoweR while sleeping using a (Stone Hatchet) at 1m
    1:19 PM [Info] MrKill killed Ruric (Stone Hatchet) with a hit to their (l_eye) at 1m
    1:19 PM [Info] ☣☢Dennis☢☣ killed Estheim (Stone Spear) with a hit to their (spine1) at 2m
    1:19 PM [Info] Alagoinha killed smallcool (Stone Spear) with a hit to their (spine4) at 7m
    1:19 PM [Info] ☠ the evil shrimp bled to death.
    1:19 PM [Info] Message10
    1:20 PM [Info] Loading Oxide core...
    1:20 PM [Info] Loading extensions...
    1:20 PM [Info] Loaded extension Lua version 1.0.0 by Oxide Team
    1:20 PM [Info] Loaded extension Rust version 1.0.0 by Oxide Team
    1:20 PM [Info] Loaded extension Unity version 1.0.0 by Oxide Team
    1:20 PM [Info] Loading plugins...
    1:20 PM [Info] Loaded plugin FriendsAPI (v1.0.1) by #Domestos
    1:20 PM [Info] Loaded plugin Auto Broadcast (v0.1.1) by Taffy
    1:20 PM [Info] Loaded plugin Build (v0.2.0) by Reneb
    1:20 PM [Info] Loaded plugin Building Owners (v1.2.8) by Reneb
    1:20 PM [Info] Loaded plugin Chat Handler (v2.0.1) by #Domestos
    1:20 PM [Info] Loaded plugin Enhanced Ban System (v2.0.2) by #Domestos
    1:20 PM [Info] Loaded plugin Friends Friendly Fire (v1.0.3) by #Domestos
    1:20 PM [Info] Loaded plugin Give Plugin (v0.3.2) by Reneb
    1:20 PM [Info] Loaded plugin Helptext (v1.1.1) by #Domestos
    1:20 PM [Info] Loaded plugin Kits (v0.2.1) by Reneb
    1:20 PM [Info] Loaded plugin AutoBagsDespawner Alpha (v9.9.9) by Mughisi
    1:20 PM [Info] Loaded plugin Increased Building Rate (v0.1.0) by Mughisi
    1:20 PM [Info] Loaded plugin Increased Crafting Rate (v0.1.1) by Mughisi
    1:20 PM [Info] Loaded plugin Fast Gathering (v0.1.0) by Mughisi
    1:20 PM [Info] Loaded plugin Godmode (v1.0.0) by Mughisi
    1:20 PM [Info] Loaded plugin Rust Ban Saver (v1.0.1) by Mughisi
    1:20 PM [Info] Loaded plugin Advanced Teleportation System (v1.1.1) by Mughisi
    1:20 PM [Info] Loaded plugin Locks Fix (v1.0.1) by Mughisi & Reneb
    1:20 PM [Info] Loaded plugin Players list (v1.1.2) by #Domestos
    1:20 PM [Info] Loaded plugin Player location (v1.0.2) by #Domestos
    1:20 PM [Info] Loaded plugin Portgun (v1.1.0) by Reneb
    1:20 PM [Info] Loaded plugin Private Messaging (v1.0.4) by #Domestos
    1:20 PM [Info] Loaded plugin Death Messages (v0.2.5) by Reneb
    1:20 PM [Info] Loaded plugin R-Remover Tool (v1.3.0) by Reneb
    1:20 PM [Info] Loaded plugin Reserved (v0.1.2) by Wulf
    1:20 PM [Info] Loaded plugin Save (v1.0.0) by Reneb
    1:20 PM [Info] Loaded plugin User Connection Notification (v1.1.4) by Taffy
    1:20 PM [Info] Loaded plugin Welcome Gifts (v0.1.1) by Wulf
    1:20 PM [Info] Loaded plugin Rust Core (v1.0.0) by Oxide Team
    1:20 PM [Info] Loaded plugin Unity Core (v1.0.0) by Oxide Team
    1:20 PM [Info] Successfully initialized Building Owners1:21 PM [Info] Crafting rate set to 0% of the normal speed.
    
    [DOUBLEPOST=1415472773][/DOUBLEPOST]well hopefully that can help. that's when it crashed and you can see the plugins I am using.
     
  3. Can you try using the attached version please? It contains some debug prints. If you run it it should print some messages containing [Debug] in your console and log file. Please post them after getting your error.
     

    Attached Files:

  4. ok thanks
    [DOUBLEPOST=1415479789][/DOUBLEPOST]That just crashed my server It sent to much info or something.
    [DOUBLEPOST=1415479994][/DOUBLEPOST]Heres the log
     

    Attached Files:

  5. Domestos updated Friends Friendly Fire with a new update entry:

    Bugfix



    I dont have a populated server so i need you guys to report if this works.
     
  6. Tested a bit and no one is saved by the hits of other friends. I've joined my own server added a bunch of friends and tried it out without lucky... hit to death anyway.

    Edit:
    Corrected the issue from my side pal, here its what I've changed in your code:

    Original - local hasFriend = friendsAPI:HasFriend(attackerSteamID, targetSteamID)
    Solution - local hasFriend = friendsAPI:IsFriendFrom(targetSteamID, attackerSteamID)

    Tnx for your plugin :)
     
    Last edited by a moderator: Nov 17, 2014
  7. Could we get a update please this plugin stopped working :/
     
  8. can some one fork this poleaase?!?!
     
  9. Wulf

    Wulf Community Admin

    What is wrong with it? The plugin looks fine. Any errors?
     
  10. NM these players on my server are knuckle heads......
     
    Last edited by a moderator: Jan 11, 2015
  11. Try this one.
     

    Attached Files:

  12. Hello guys! :)

    I can't make it work and I don't know why. The plugin loads correctly (whether I restart or not the server) but if I get into the game and type in chat /fff it doesn't get on, so people is able to kill their friends still.

    I have tried Mughisi's file as well , just in case, but same result.

    Any idea will more likely appreciated a lot.

    Thank you.
     
  13. Do you have http://oxidemod.org/resources/friends-api.686/ installed as well?
     
  14. Yes I do ^_^
     
  15. When you run the /fff command, does it show you a message in the chat?
     
  16. No it doesn't :(
     
  17. Hmm, are you flagged with ownerid or moderatorid?
     
  18. Sorry for delay , family matters.

    Yes I Am. Even more , I did a wipe in the server (oh man poor players haha), and still the same.

    Well, I will figure it out some day, thank you Mughisi :)

    EDIT:

    I have noticed it works for activate or desactivate it , but not message in console neither in chat (I check it out connecting in FTP and checking the config file).
    But even when active I make players on server test it and no luck.
    Any idea ? :(
     
    Last edited by a moderator: Jan 19, 2015