Rust:IO Friends List API

A simple API designed to interact with RustIOs friend list

Total Downloads: 3,849 - First Release: Apr 1, 2016 - Last Update: May 9, 2016

5/5, 6 likes
  1. Alphawar submitted a new resource:

    Rust:IO Friends List API - Easily edit the Rust:IO friends list via chat

    Read more about this resource...
     
  2. Alphawar updated Rust:IO Friends List API with a new update entry:

    1.0.0

     
  3. He gave me that doesn't work.
     

    Attached Files:

  4. Thanks for reporting that, I see whats happened, if you could rename the file to: RustIOFriendListAPI.cs
    This has happened as I had not included uppercase in the upload (sorry for that)
    Let me know if this solves your issue
     
  5. You can run the
     
  6. Sorry not sure what that means, are you saying it worked?
    If so that will be fixed when I get back home and do some work on the mod.
     
  7. Works if you do that :D :p
     
  8. Yeah what had happened is that I was at work, so I downloaded the pastebin version but the text file was all lowercase, the proper file has caps :).
    Didnt notice it till after the error haha :).
    Lesson learnt
     
  9. Alphawar updated Rust:IO Friends List API with a new update entry:

    1.0.1

     
  10. Hehe I thought as much :p When I saw the error, I just changed the file name to what it was asking for :D
     
  11. hehehe :) glad to hear.
     
  12. I think something goes wrong... /friend + command give that message to console:

    (12:49:31) | [Oxide] 12:49 [Error] Failed to call hook 'friendFunction' on plugin 'RustIOFriendListAPI v1.0.1' (NullReferenceException: Object reference not set to an instance of an object)
     
  13. I am aware of this, I am currently trying to debug the mod.
    [DOUBLEPOST=1459687742,1459677535][/DOUBLEPOST]
    I have located that cause but im trying to get hooks to work properly as I am having issues with another mod im making that calls to this, so once I get that working I will then reupload this mod properly, untill then you can roleback as previus version only needs to have the .cs file renamed (as above) or find the function HasFriend at like 176 and delete that function, that should fix the issue.
     
  14. this error, do that give any PROBLEMS besides the error in consol?
    if it only gives the error it is "cosmetical" problem i would think?

    i am going threw my plugins to make them compatible, as i am using higly modded plugins in some cases because i want different usages (mainly entity owner comps :p).

    But for this to work i ONLY need to change the reference name? so a single word needs to go from old friends to this friends name?
    [DOUBLEPOST=1459702775][/DOUBLEPOST]i thought i changed the NoEscape plugin to be compatible with this instead of "Friends".
    However i get a error when i did this.
    I THINK this is because noescape asks for a full friendlist from friendsapi to put affects on them. (blocked from teleporting).

    Code:
    [Oxide] 17:56 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'NoEscape v0.2.9' (KeyNotFoundException: The given key was not present in the dictionary.)
    [Oxide] 17:56 [Debug]   at System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]].get_Item (System.String key) [0x00000] in <filename unknown>:0  at Oxide.Plugins.NoEscape.getFriendList (System.String player) [0x00000] in <filename unknown>:0  at Oxide.Plugins.NoEscape.getFriends (System.String player) [0x00000] in <filename unknown>:0  at Oxide.Plugins.NoEscape.StructureAttack (.BaseEntity targetEntity, .BaseEntity sourceEntity, System.String weapon, Vector3 hitPosition) [0x00000] in <filename unknown>:0  at Oxide.Plugins.NoEscape.OnEntityTakeDamage (.BaseCombatEntity entity, .HitInfo hitInfo) [0x00000] in <filename unknown>:0  at Oxide.Plugins.NoEscape.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0  at Oxide.Plugins.CSharpPlugin.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) [0x00000] in <filename unknown>:0  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, 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 
     
  15. Thanks for fast response. It helps for me!
     
  16. You would be right in saying that it is asking for a fall friends list, I will have to have a look at how to add that to compatibility.
    In terms of the mod, once removing the HasFriend function at line 176 all other functions seem to work.
    Hopefully tonight I will get some time to add the list function in for compatibility.
     
  17. Alphawar updated Rust:IO Friends List API with a new update entry:

    1.1.0

     
  18. Have not yet testet this and the main reason is doorsharing.
    Would it be possible to add some kind of doorshare inbetween friends?(The other friends has it).
     
  19. I might not have time to do that today, But I will indeed have a look at it.
     
  20. Thank you!
    -Another request. Will perhaps not be possible but I'll try.
    Would it be possible to use this plugin as friendcheck with m-Teleportation & Entityowner?

    edit
    No worries, take your time:) I'm not in a hurry.
     
    Last edited by a moderator: Apr 5, 2016