Vanish

Allows players with permission to become truly invisible

Total Downloads: 22,660 - First Release: Nov 3, 2015 - Last Update: Jan 9, 2018

5/5, 75 likes
  1. Wulf

    Wulf Community Admin

    I'm not sure what you are referring to.
     
  2. I included /vanish, then hit Shift + L for the flight and through texture, and opened the door. And yet, when i was change a weapon - become visible.
     
  3. (21:03:06) | [Oxide] 10:03 PM [Error] Failed to call hook 'VanishChatCmd' on plugin 'Vanish v0.2.4' (NullReferenceException: Object reference not set to an instance of an object)

    try/catch the error on lines 147 - 153

    visual effect plays when set to false in config also
     
  4. Wulf

    Wulf Community Admin

    Please provide the full stack below the error from your logs.

    The 'VisualEffect' setting no longer exists, see the Update notes.
     
  5. Code:
    6:11 PM [Error] Failed to call hook 'VanishChatCmd' on plugin 'Vanish v0.2.4' (NullReferenceException: Object reference not set to an instance of an object)
    6:11 PM [Debug]   at Network.Implementation.Raknet.RaknetWrite.Send (SendInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Vanish.Disappear (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Vanish.VanishChatCmd (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Vanish.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
    connections.Count returned the amount of players online, if that helps.
    [DOUBLEPOST=1448289155][/DOUBLEPOST]Would this have anything to do with players being bugged?

    For instance when using the AdminRadar plugin I notice that it sometimes draws boxes around players who are offline, and dead. The box stays there until the server restarts.

    Vanish works properly again after a server restart for awhile.
     
    Last edited by a moderator: Nov 23, 2015
  6. Wulf

    Wulf Community Admin

    Yes, it's from the Rust connection bug. :/
     
  7. Ah ;( Is there a solution to this bug or must we wait for Rust to fix it?
     
  8. Wulf

    Wulf Community Admin

    Well, workarounds can probably be made, but ideally it would be fixed in Rust itself.
     
  9. So for bugged players I have noticed (hopefully accurately) that...

    They have a position, so we can't skip if player.transform == null
    They have a name, so can't skip if player.displayName == null
    If we skip on player.IsDead() then we're visible once they respawn
    Pinging their connection wouldn't help...
    When they're offline they appear in activePlayerList... the core of the bug

    What about IsConnected?
    Code:
    if (!player.IsConnected()) continue; // don't add to active connections
    And what about adding (to my plugin or yours)
    Code:
     removed 
    as a temporary solution until Rust fixes the bug
     
    Last edited by a moderator: Nov 23, 2015
  10. Wulf

    Wulf Community Admin

    Have you tested these at all? Something might also have to be done in startup, perhaps in OnClientAuth.
     
  11. Don't use that code, it seems unsafe
     
    Last edited by a moderator: Nov 24, 2015
  12. Code:
    4:15 PM [Error] Failed to call hook 'OnPlayerInit' on plugin 'Vanish v0.2.2' (ArgumentException: An element with the same key already exists in the dictionary.)
    4:15 PM [Debug]   at System.Collections.Generic.Dictionary`2[BasePlayer,Oxide.Plugins.Vanish+OnlinePlayer].Add (.BasePlayer key, Oxide.Plugins.OnlinePlayer value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Hash`2[BasePlayer,Oxide.Plugins.Vanish+OnlinePlayer].Add (.BasePlayer key, Oxide.Plugins.OnlinePlayer value) [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
    Code:
    4:14 PM [Error] Failed to call hook 'VanishChatCmd' on plugin 'Vanish v0.2.2' (NullReferenceException: Object reference not set to an instance of an object)
    4:14 PM [Debug]   at Network.Implementation.Raknet.RaknetWrite.Send (SendInfo info) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Vanish.Disappear (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Vanish.VanishChatCmd (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Vanish.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
     
  13. Update your plugin before pasting your issues? Just a thought.
     
  14. Is there something makeing it to were when i am flying and have vanish on i can go through the rocks or the ground anymore. Or is this just a bug?
     
  15. Wulf

    Wulf Community Admin

    It's a Rust change with no-clip. Vanish has nothing to do with it.
     
  16. I've updated with the latest Rust, Oxide and Vanish. When I tried to use it I get this error message:
    Code:
    [Oxide] 8:49 PM [Error] Failed to call hook 'VanishChatCmd' on plugin 'Vanish v0.2.4' (NullReferenceException: Object reference not set to an instance of an object)
     
  17. CanTeleport doesn't appear to work, . No other installed plugin has CanTeleport() (except m-teleportation). Using canTeleport doesn't appear to matter either.
    Code:
            object CanTeleport(BasePlayer player)
            {
                if (onlinePlayers[player].IsInvisible && !CanUseTeleport) return CantUseTeleport;
                return null;
            }
     
    Last edited by a moderator: Nov 27, 2015
  18. Wulf

    Wulf Community Admin

    Which teleport plugin are you using? The m-Teleportation plugin uses CanTeleport.
     
  19. m-Teleportation.