1. OK, so I started over. Reloaded the lua file, then let it create a new json file.
    I went to the web console and typed in:
    oxide.grant user 76561197985710728 whitelist
    My json file did not change...so I either have the wrong syntax or I am doing this in the wrong place.
     
  2. Wulf

    Wulf Community Admin

    The data/oxide.users.json file is where Oxide stores permissions. The permission is only for access to the commands, not to whitelist you. See the Overview for the commands to use after you have access to the commands.
     
  3. so I started over and here is what I have now:

    ownerid "76561197985710728" "Ben4jammin"
    Added owner Ben4jammin, steamid 76561197985710728
    [Oxide] 7:23 PM [Info] Loaded plugin Whitelist v0.3.1 by Wulfspider
    > oxide.grant user 76561197985710728 whitelist
    User '76561197985710728' not found
    > oxide.grant user Ben4jammin whitelist
    User 'Ben4jammin' not found
    > oxide.grant user ben4jammin whitelist
    User 'ben4jammin' not found

    No idea why I am not found once I am added as owner
    [DOUBLEPOST=1437190895][/DOUBLEPOST]Ok, as I suspected it was my "newbness" that was causing me to miss a step that may be assumed by more experienced people running Rust servers. Everything worked great...when I did it AFTER I LOGGED INTO THE SERVER AS A PLAYER
    So, log into the server as a player (which will give you access to the chat commands)
    THEN upload the file to install the whitelist plugin.
    then all the commands work.
    Just wanted to note this in case someone else was having the same issue. I saw one commenter that mentioned not being able to log into their server after installing whitelist.
    My problem was I am starting a new server so I was looking at whitelist as part of the setup I would do BEFORE playing the server.

    Anyway, thank you Wulf for making this plugin. I am not much of a programmer beyond the odd powershell script so this plugin is great and much appreciated
     
  4. Wulf

    Wulf Community Admin

    You shouldn't have to login to assign a permission to a Steam ID, but I'll look into that.
     
  5. Any chance of getting an example of what the DATA json file looks like? Plugin loads just fine, but my user data is empty - so even I can't get on the server to add players. You told one guy he could edit the file and reload the plugin at will. I just need to know what that format would look like so I can edit the file and add my users. Thanks
     
  6. Wulf

    Wulf Community Admin

    The data file can only be edited with the commands, or when the server is shutdown. To add the initial user, it's generally best to either already be on the server with the permission granted to use the commands, or use RCON or the server console directly to assign the first user by their Steam ID.

    I have provided an example of the oxide/data/Whitelist.json file below, but I would recommend familiarizing yourself with the command method instead.
    Code:
    {
      "76561197960634567": "Wulf",
      "72581928381893892": "YourName"
    }
     
  7. Thx Wulf. That got me up and running! Yay!
     
  8. Hello , i just want to start off first with how new i am to the server admin/plugin side of things. i downloaded Whitlist and had it working perfectly fine but now it seems to have stoppd working and is allowing anyone to join? Is there something i should be looking at? or is it because after the latest update it stopped the pluggin from working/ out of date? any help would be greatly appreciated. Dont want randoms to join my server as its a family fun server to build and explore. Thanks again
     
  9. Wulf

    Wulf Community Admin

    Check your oxide/logs for errors, and make sure you have Oxide installed.
     
  10. i have checked the logs and i dont see any errors that it has stopped working. also have oxide installed . could i some how private message you my server for you to possibly test if it prompts u with an error? Sorry for the hassle
     
    Last edited by a moderator: Jul 29, 2015
  11. Wulf

    Wulf Community Admin

    Please upload your latest oxide/logs files prefixed with oxide_.
     
  12. I get this error... Please advise
    Code:
    10:21 PM [Info] Loading Oxide core v2.0.1217...
    10:21 PM [Info] Loading extensions...
    10:21 PM [Info] Loaded extension CSharp v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension JavaScript v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension Lua v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension MySql v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension Python v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension SQLite v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension Unity v1.0.1217 by Oxide Team
    10:21 PM [Info] Loaded extension Rust v1.0.1217 by Oxide Team
    10:21 PM [Info] Using Covalence provider for game 'Rust'
    10:21 PM [Info] Loading plugins...
    10:21 PM [Info] Loaded plugin Unity Core v1.0.0 by Oxide Team
    10:21 PM [Info] Loaded plugin Rust Core v1.0.0 by Oxide Team
    10:21 PM [Error] Failed to load plugin '1' (no source found)
    11:22 PM [Info] Loaded plugin Whitelist v0.3.1 by Wulfspider
    11:23 PM [Info] Loading Oxide core v2.0.1217...
    11:23 PM [Info] Loading extensions...
    11:23 PM [Info] Loaded extension CSharp v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension JavaScript v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension Lua v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension MySql v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension Python v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension SQLite v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension Unity v1.0.1217 by Oxide Team
    11:23 PM [Info] Loaded extension Rust v1.0.1217 by Oxide Team
    11:23 PM [Info] Using Covalence provider for game 'Rust'
    11:23 PM [Info] Loading plugins...
    11:23 PM [Info] Loaded plugin Unity Core v1.0.0 by Oxide Team
    11:23 PM [Info] Loaded plugin Rust Core v1.0.0 by Oxide Team
    11:23 PM [Info] Loaded plugin Whitelist v0.3.1 by Wulfspider
    11:23 PM [Error] Failed to load plugin '1' (no source found)
     
    Last edited by a moderator: Jul 30, 2015
  13. I downloaded the Whitelist.lua file from the site and added it to plugins folder via FTP. Then restarted the server. Other then that this oxide plugin site doesn't offer much help on how to get any of these plugins working. Or i'm just not seeing directions.
    [DOUBLEPOST=1438229606][/DOUBLEPOST]latest log
    Code:
    12:08 AM [Error] Failed to call hook 'cmdGrant' on plugin 'Rust Core' (DirectoryNotFoundException: Could not find a part of the path "c:\games\8_2_122_183_28016\1148501\ruste\server\1148501\oxide\data\oxide.users.json".)
    12:08 AM [Debug]  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
      at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
      at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
      at Oxide.Core.DataFileSystem.WriteObject[Dictionary`2] (System.String name, System.Collections.Generic.Dictionary`2 Object) [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.SaveUsers () [0x00000] in <filename unknown>:0
      at Oxide.Core.Libraries.Permission.GrantUserPermission (System.String userid, System.String perm, Oxide.Core.Plugins.Plugin owner) [0x00000] in <filename unknown>:0
      at Oxide.Game.Rust.RustCore.cmdGrant (.Arg arg) [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
    12:11 AM [Error] Failed to call hook 'ConsoleCommand' on plugin 'Whitelist'
    File: Whitelist.lua Line: 129 Could not find a part of the path "c:\games\8_2_122_183_28016\1148501\ruste\server\1148501\oxide\data\Whitelist.json".:
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000] in <filename unknown>:0
      at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) [0x00000] in <filename unknown>:0
      at System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
      at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool,System.Text.Encoding)
      at System.IO.File.WriteAllText (System.String path, System.String contents, System.Text.Encoding encoding) [0x00000] in <filename unknown>:0
      at System.IO.File.WriteAllText (System.String path, System.String contents) [0x00000] in <filename unknown>:0
      at Oxide.Core.Configuration.DynamicConfigFile.Save (System.String filename) [0x00000] in <filename unknown>:0
      at Oxide.Core.DataFileSystem.GetDatafile (System.String name) [0x00000] in <filename unknown>:0
      at Oxide.Ext.Lua.Libraries.LuaDatafile.SaveDataTable (System.String name) [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
     
    Last edited by a moderator: Jul 30, 2015
  14. Wulf

    Wulf Community Admin

    That isn't anything of concern, just remove "-load" from your startup script or command-line.

    You have an issue with your server setup that is causing the server to be unable to access files; it may be the underscores in the one folder, but unsure.
     
  15. my server does not show on the servers browser


    pleaseeeee helpppppp!!!!!
     
  16. Wulf

    Wulf Community Admin

    This plugin doesn't do anything to your server listing. I'd recommend searching for similar threads about your issue.
     
  17. Wulf; I had whitelist working before the latest update....anyway I ran the command oxide.grant user nocturnalj whitelist from Rusty, it added whitelist permission to the oxide.user.json file in the data sub directory but did not add any information to the whitelist.json file in the data sub directory. I tried to add manually but I am still denied access due to not being whitelisted.

    Appreciate any help, thank you
     
  18. Wulf

    Wulf Community Admin

    You still have to whitelist the user, it stores via data file after you add with the commands.
     
  19. Wulf...made some progress, was able to add myself using steam id, but got the following ([Oxide] 1:18 PM [Info] [Whitelist] Invalid player or Steam ID! Please try again) when trying to use the command whitelist add Nocturnalj I also tried whitelist add user Nocturnalj and whitelist add player Nocturnalj

    Thoughts on what the issue is?
     
  20. Wulf

    Wulf Community Admin

    I'd recommend using the Steam ID instead of the name.