Jump to content

admin.cfg usage in shrubbot


JohnDory

Recommended Posts

  • Subscriber

Silent use's the admin.cfg file to store users guid's and levels.

Can you confirm that this is the default admin.cfg

 

[admin]
name = name of the admin (can be left empty)
guid = full 32 character PB GUID (this field is used to identify players in the database)
sguid = full 32 character GUID silent (this field is used to identify players in the database)
level = level number
personal admin flags = flags (can be left empty)
personal greeting = greeting (can be left empty)
greeting_sound = path to personal greeting sound (can be left empty)

 

Also which guid should we use the PB, Silent or both. If we should use only one should the other line be deleted ?

Link to comment
Share on other sites

  • Management
As Dragon posted. The file is not used to store admins but it is used to add admins to the databse if they haven't been on the server yet. Using the !readadmins command. The block is correct one for the use. You can use either one of the GUID fields to insert admins. You should know, however, that if you use the silEnT GUID then the admins PB GUID will not be inserted to the database later even if he would have one. You don't need to delete any lines from the block, you can just leave the value empty.
Link to comment
Share on other sites

  • 1 month later...

Hello,

I have a problem.

If I go through the command in the console setLevel it makes me very rights that I ask.

But we have many users in our shrubbot I shrubbot therefore depends on which I put some below.

Quans but I did that he could not recognize the levels to people and I have the following error messsage.

Could you help me I'm in 0.5.1.

Thank you in advance

 

Shrubbot
[admin]
name = |^2M^3T^1C^7|^2*^eSerial Killer^2*
guid = EEC9825DE6C064C5EE3E0C2930D75CDA
level = 7
flags =
greeting =
greeting_sound =
[admin]
name = ^7|^2M^3T^1C^7|^s*^IM^+y^+r^qe^s*
guid = C96EF89F34B0218CB43FD2CD52F151AF
level = 7
flags =
greeting =
greeting_sound =
Console message
readconfig: [level] parse error near [admin] on line 2372
readconfig: [level] parse error near guid on line 2375
readconfig: [level] parse error near = on line 2375
readconfig: [level] parse error near EEC9825DE6C064C5EE3E0C2930D75CDA on line 2376
readconfig: [level] parse error near [admin] on line 2384
readconfig: [level] parse error near guid on line 2387
readconfig: [level] parse error near = on line 2387
readconfig: [level] parse error near C96EF89F34B0218CB43FD2CD52F151AF on line 2388
readconfig: loaded 8 levels, 64 bans, 0 subnet bans, 49 commands and 0 warnings

Link to comment
Share on other sites

  • Management
You need to put the admin blocks into a separate file named admins.cfg. Then you need to use the !readadmins command. The !readconfig command does not recognize admin blocks. The reason for that is that if it would, it would overwrite all the changes made with the online admin commands.
Link to comment
Share on other sites

  • 1 year later...

You need to put the admin blocks into a separate file named admins.cfg. Then you need to use the !readadmins command. The !readconfig command does not recognize admin blocks. The reason for that is that if it would, it would overwrite all the changes made with the online admin commands.

What do I put into admins.cfg, and where would I put that file exactly?  Is there examples somewhere?

Link to comment
Share on other sites

  • Management

If you previously had an ETPub server, you can add the old admins to the silEnT database usig this method. You need to copy the admin blocks from the ETPub shrubbot.cfg to a file named admins.cfg and place that file to the database folder. When you issue the !readadmins command, the admin blocks are read from the admins.cfg file and added to the silEnT database.

 

http://mygamingtalk.com/wiki/index.php/Silent_Shrubbot#.21readadmins

Link to comment
Share on other sites

If you previously had an ETPub server, you can add the old admins to the silEnT database usig this method. You need to copy the admin blocks from the ETPub shrubbot.cfg to a file named admins.cfg and place that file to the database folder. When you issue the !readadmins command, the admin blocks are read from the admins.cfg file and added to the silEnT database.

 

http://mygamingtalk.com/wiki/index.php/Silent_Shrubbot#.21readadmins

Yes, the problem is I need to see what an example admins.cfg file actually looks like...I can't seem to find an example one anywhere via google!  =(

Link to comment
Share on other sites

Yes, the problem is I need to see what an example admins.cfg file actually looks like...I can't seem to find an example one anywhere via google!  =(

[admin]
name = ETPlayer
sguid = 12345678912345678912345678912345
guid = 98765432198765432198765432198765
level = 5
flags =
greeting =
greeting_sound =

[admin]
name =
sguid = 98765432198765432198765432198765
guid = 12345678912345678912345678912345
level = 3
flags = AbC
greeting =
greeting_sound =
Link to comment
Share on other sites

[admin]
name = ETPlayer
sguid = 12345678912345678912345678912345
guid = 98765432198765432198765432198765
level = 5
flags =
greeting =
greeting_sound =

[admin]
name =
sguid = 98765432198765432198765432198765
guid = 12345678912345678912345678912345
level = 3
flags = AbC
greeting =
greeting_sound =

Can you tell me where to find these 'guid' and 'sguid' numbers please?

Link to comment
Share on other sites

Can you tell me where to find these 'guid' and 'sguid' numbers please?

I don't know if you can get them in-game but they surely can be found in your server log:

19:42:18 Userinfo: \cg_ident\1234567891234567\cg_etver\1\cg_c\0.8.1\cg_cmodbuild\win-x86 Nov 11 2013\cg_uinfo\13 0 100\sil_guid\<your_sguid>:2\g_password\none\cl_guid\<your_guid>\cl_punkbuster\1\cl_anonymous\0\snaps\20\rate\45000\name\ETPlayer\cl_wwwDownload\1\ip\x.x.x.x:27960

Link to comment
Share on other sites

  • Management

The log is usually in the fs_basepath/fs_game folder. But why do you need the !readadmins command? This is relevant only when you had old server from where you copy admins without them visiting the new server. For a new server, first set yourself to the highest admin level by doing !setlevel as rcon to yourself. After that, you can continue with !setlevel to all the admins when they come. Or if they are not online, but have already visited the server, using the !useredit command.

 

http://mygamingtalk.com/wiki/index.php/Silent_Shrubbot#.21setlevel

http://mygamingtalk.com/wiki/index.php/Silent_Shrubbot#.21useredit

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...