1. There really needs autoban for the killings with Hunting Bow. Many cheaters use Silent Aim and kill from 200/300 meters with Hunting Bow but are not banned, and, in the config file of AntiCheat, I put maximum range of 155 meters.
     
  2. +++++
     
  3. @Reneb, just a quick question... Does the "Anti SleepingBag through Walls" makes our lives easier because it makes the plugin "sleepover" unnecessary? Since there no other way to glitch and put a sleeping bag inside of someones house?

    I was wondering if there would need a remake of the Sleepover...
     
  4. I'm Not coding for legacy anymore
     
  5. Reneb,
    Please plug-in for the arena without arena ... very boring on the server (.
     
  6. Wulf

    Wulf Community Admin

    For those using the latest Oxide snapshot, use the below version with the unnecessary imports removed.
     

    Attached Files:

  7. Hello, I've rented a VPS which I have installed Windows Server 2012 R2 64-bit on.

    I installed SteamCMD, downloaded Rust files and then downloaded Oxide. Everything seemed to work out fine. Suddenly, my server was ddosed + there were some other issues with the server at the time, so we had to revert / go into rescue mode.

    After this incident I wasn't able to start my server without getting "CSharpCompiler.exe crashed" error.

    I removed plugins one by one, and I found out that I couldn't start the server if RemoverTool.cs was installed.

    It works if I remove the RemoverTool plugin before starting the server, and then installing the plugin after the server has been launched.

    Now I am getting a lot of errors and my AntiCheat plugin is not really working.

    These errors come very frequently:

    Code:
    (10:29:12) | [Oxide] 10:29 AM [Error] Failed to call hook 'OnPlayerConnected' on plugin 'Rust Legacy Core' (NullReferenceException: Object reference not set to an instance of an object)(10:33:46) | [Oxide] 10:33 AM [Error] Failed to call hook 'OnServerInitialized' on plugin 'AntiCheat' (NullReferenceException: Object reference not set to an instance of an object)(15:57:07) | [Oxide] 3:57 PM [Error] Failed to call hook 'cmdChatTeleport' on plugin 'AdminTeleportation' (NullReferenceException: Object reference not set to an instance of an object)
    
    Image of console: http://i.imgur.com/wR10vj6.png

    Could it be a problem with .NET Framework or something on my PC? I tried downloading Rust files again using SteamCMD and I downloaded the newest release of Oxide 2.0 for Legacy, but that still didn't fix the issue. I have also updated to the newest Windows Updates without success..

    If you need any more info, please let me know.

    NOTE: I just noticed that the post was merged into this thread. However, I also get this error:

    Code:
    (15:57:07) | [Oxide] 3:57 PM [Error] Failed to call hook 'cmdChatTeleport' on plugin 'AdminTeleportation' (NullReferenceException: Object reference not set to an instance of an object)
    I am however able to use /tp as an admin, and some parts of the AntiCheat still works (norecoil, overkill) but speed,fly and superjump anti-cheat is not working.
     
    Last edited by a moderator: May 21, 2015
  8. I've been trying to add so people without Rcon access can see when someone gets detected by Anticheat, as some doesn't get banned because the hacker know when to take a little "break"
    Code:
    static void AntiCheatBroadcastAdmins(string message)
            {
                if (!broadcastAdmins) return;
                foreach (PlayerClient player in PlayerClient.All)
                {
                    if (player.netUser.CanAdmin())
                        ConsoleNetworker.SendClientCommand(player.netPlayer, "chat.add AntiCheat \"" + message + "\"");
                }
            }
    permission.UserHasPermission(netuser.playerClient.userID.ToString(), "cananticheat");

    Tried adding that but only broke the plugin. Yes i'm a noob, thanks in advance for any help! :)
     
    Last edited by a moderator: May 22, 2015
  9. i'm not sure you really want all the players to see it, or the hackers could also see it ^^
     
  10. Of course i don't want everyone to see it, i mean i want my mods to see whenever someone is detected. Hence why i tried to add the "cananticheat" permission into the code. This is what i tried, but only broke it :p
    Code:
    static void AntiCheatBroadcastAdmins(string message)
            {
                if (!broadcastAdmins) return;
                foreach (PlayerClient player in PlayerClient.All)
                {
                    if (player.netUser.CanAdmin())
                    if permission.UserHasPermission(netuser.playerClient.userID.ToString(), "cananticheat");
                        ConsoleNetworker.SendClientCommand(player.netPlayer, "chat.add AntiCheat \"" + message + "\"");
                }
            }
    
     
  11. Code:
    static void AntiCheatBroadcastAdmins(string message)
            {
                if (!broadcastAdmins) return;
                foreach (PlayerClient player in PlayerClient.All)
                {
                    if (player.netUser.CanAdmin() || permission.UserHasPermission(player.userID.ToString(), "cananticheat"))
                        ConsoleNetworker.SendClientCommand(player.netPlayer, "chat.add AntiCheat \"" + message + "\"");
                }
            }
    
     
  12. Thanks Reneb :)
    [DOUBLEPOST=1432486551,1432334257][/DOUBLEPOST]
    Looks like this broke the plugin aswell sadly.
     
  13. maybe it's:
    player.userID.ToString()
    =>
    player.userid.ToString()

    sorry i can't have the rust code with no so i don't remember and can't check
     
  14. Code:
    [Oxide] 11:00 PM [Warning] Ignored obsolete game extension reference 'Oxide.Ext.RustLegacy' in plugin 'AntiCheat'
    [Oxide] 11:00 PM [Error] Plugin failed to compile: AntiCheat (leaving previous version loaded)
    [Oxide] 11:00 PM [Error] AntiCheat plugin failed to compile!
    [Oxide] 11:00 PM [Error] AntiCheat.cs(820,86): error CS1061: Type `PlayerClient' does not contain a definition for `userid' and no extension method `userid' of type `PlayerClient' could be found. Are you missing an assembly reference?
    [Oxide] 11:00 PM [Info] Unloaded plugin AntiCheat v2.0.13 by Reneb
    [Oxide] 11:00 PM [Error] Unable to load AntiCheat. AntiCheat.cs(820,86): error CS1061: Type `PlayerClient' does not contain a definition for `userid' and no extension method `userid' of type `PlayerClient' could be found. Are you missing an assembly reference?
    
     
  15. I'm sorry i cant help you more atm, you should as' mughisi or wulfspider
     
  16. I use Reneb's Anticheat on my server, and i'd love to be able to broadcast the Anticheat messages to my mods who only have flags.

    Reneb suggested to do this:

    Code:
     static void AntiCheatBroadcastAdmins(string message)
            {
                if (!broadcastAdmins) return;
                foreach (PlayerClient player in PlayerClient.All)
                {
                    if (player.netUser.CanAdmin() || permission.UserHasPermission(player.userID.ToString(), "cananticheat"))
                        ConsoleNetworker.SendClientCommand(player.netPlayer, "chat.add AntiCheat \"" + message + "\"");
                }
            }
    
    This breaks the plugin and i get this error
    Code:
     [Oxide] 11:00 PM [Warning] Ignored obsolete game extension reference 'Oxide.Ext.RustLegacy' in plugin 'AntiCheat'
    [Oxide] 11:00 PM [Error] Plugin failed to compile: AntiCheat (leaving previous version loaded)
    [Oxide] 11:00 PM [Error] AntiCheat plugin failed to compile!
    [Oxide] 11:00 PM [Error] AntiCheat.cs(820,86): error CS1061: Type `PlayerClient' does not contain a definition for `userid' and no extension method `userid' of type `PlayerClient' could be found. Are you missing an assembly reference?
    [Oxide] 11:00 PM [Info] Unloaded plugin AntiCheat v2.0.13 by Reneb
    [Oxide] 11:00 PM [Error] Unable to load AntiCheat. AntiCheat.cs(820,86): error CS1061: Type `PlayerClient' does not contain a definition for `userid' and no extension method `userid' of type `PlayerClient' could be found. Are you missing an assembly reference?
    
    Reneb didn't have any other suggestion to get this to work, so hence why i post it here.
    So does anyone have a clue how i can make this work? Thanks in advance :)
     
  17. player.userID.ToString()
    should have worked :x
     
  18. Tried it again, got a different Error this time tho.

    Code:
    [Oxide] 11:22 PM [Warning] Ignored obsolete game extension reference 'Oxide.Ext.RustLegacy' in plugin 'AntiCheat'
    [Oxide] 11:22 PM [Error] Plugin failed to compile: AntiCheat (leaving previous version loaded)
    [Oxide] 11:22 PM [Error] AntiCheat plugin failed to compile!
    [Oxide] 11:22 PM [Error] AntiCheat.cs(820,50): error CS0120: An object reference is required to access non-static member `Oxide.Plugins.RustLegacyPlugin.permission'
    
     
  19. How user's report that he got banned for putting sleeping bag under his Wood Stairs > rSleepHack (WoodStairs)
     
  20. I've never had that problem on my server, haven't even seen a such ban either. I suggest if the problem persist and you know for sure it's because of the stated reason you change the
    Code:
     "Sleeping Bag Hack: Punish ": true, 
    to
    Code:
    "Sleeping Bag Hack: Punish ": false,
    Believe it still delete the sleeping bag if anyone tries to place it through the wall.
     
    Last edited by a moderator: Jun 4, 2015