Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

admin.cfg usage in shrubbot


  • Please log in to reply
15 replies to this topic

#1
OFFLINE   JohnDory

JohnDory

    Advanced Member

  • Subscriber
  • PipPipPipPip
  • 249 posts
55
Getting Better
  • LocationCornwall, UK
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 ?

#2
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
http://mygamingtalk....t#.21readadmins

#3
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
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.

#4
OFFLINE   JohnDory

JohnDory

    Advanced Member

  • Subscriber
  • PipPipPipPip
  • 249 posts
55
Getting Better
  • LocationCornwall, UK
Got ya thanks :)
So once someone has been added to the database there is no need to keep the admin.cfg file

#5
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
Yes.

#6
OFFLINE   PIPICHE

PIPICHE

    Member

  • Members
  • PipPip
  • 22 posts
3
A step in the right direction
  • LocationMarseille France
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


#7
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland
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.

#8
OFFLINE   PIPICHE

PIPICHE

    Member

  • Members
  • PipPip
  • 22 posts
3
A step in the right direction
  • LocationMarseille France
ok great thank you very much

#9
OFFLINE   LarryWall

LarryWall

    Member

  • Members
  • PipPip
  • 30 posts
9
A step in the right direction

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?



#10
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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....t#.21readadmins



#11
OFFLINE   LarryWall

LarryWall

    Member

  • Members
  • PipPip
  • 30 posts
9
A step in the right direction

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....t#.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!  =(



#12
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland

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 =


#13
OFFLINE   LarryWall

LarryWall

    Member

  • Members
  • PipPip
  • 30 posts
9
A step in the right direction
[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?



#14
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland

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



#15
OFFLINE   LarryWall

LarryWall

    Member

  • Members
  • PipPip
  • 30 posts
9
A step in the right direction

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

Where can I find this server log?  /var/log or ?



#16
OFFLINE   gaoesa

gaoesa

    Advanced Member

  • Management
  • PipPipPipPip
  • 4391 posts
341
Will become famous
  • LocationFinland

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....bot#.21setlevel

http://mygamingtalk....bot#.21useredit






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users