Raised This Month: $51 Target: $400
 12% 

Bug Report SB suddenly deciding to change the name of admin groups?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-22-2015 , 03:49   SB suddenly deciding to change the name of admin groups?
Reply With Quote #1

This started appearing in all of my error logs out of nowhere one day.

Code:
L 01/21/2015 - 04:27:40: SourceMod error session started
L 01/21/2015 - 04:27:40: Info (map "vsh_spotline_b8") (file "errors_20150121.log")
L 01/21/2015 - 04:27:40: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 15) Unknown group "Admin"
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 21) Unknown group "Admin"
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 27) Unknown group "Admin"
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 45) Unknown group "Admin"
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 51) Unknown group "Admin"
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 81) Unknown group "Admin"
L 01/21/2015 - 04:27:40: [admin-flatfile.smx]  (line 87) Unknown group "Admin"
L 01/21/2015 - 05:48:32: Error log file session closed.
I looked at admins_groups.cfg or whatever it's called, and surely enough, the group "Admin" was suddenly lowercase, whereas other groups (such as "Donor") are just fine.

I'm confused as to how this is happening. In the webpanel, the group name appears as "Admin" like it should.

Luckily, it seems as if it isn't actually affecting my admins... ???
__________________

Last edited by Chdata; 01-22-2015 at 03:51.
Chdata is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-23-2015 , 13:25   Re: SB suddenly deciding to change the name of admin groups?
Reply With Quote #2

Okay... I changed it to lowercase.

It fixed it for all but one server...

Code:
L 01/23/2015 - 01:02:31: SourceMod error session started
L 01/23/2015 - 01:02:31: Info (map "plr_hightower") (file "errors_20150123.log")
L 01/23/2015 - 01:02:31: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 15) Unknown group "admin"
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 21) Unknown group "admin"
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 27) Unknown group "admin"
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 45) Unknown group "admin"
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 51) Unknown group "admin"
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 81) Unknown group "admin"
L 01/23/2015 - 01:02:31: [admin-flatfile.smx]  (line 87) Unknown group "admin"
And on this server, admin-group.cfg shows it as "admin" with proper keyvalue syntax and stuff. admin.cfg shows them all as being in the "admin" group. It matches just fine yet admin-flatfile does this. Wtf.
__________________
Chdata is offline
Danyas1337
Member
Join Date: May 2013
Location: Kyiv, Ukraine
Old 01-23-2015 , 21:00   Re: SB suddenly deciding to change the name of admin groups?
Reply With Quote #3

groups.cfg

PHP Code:
"Groups"
{
//

Or

PHP Code:
"groups"
{
//

?
__________________
<3 AM

Last edited by Danyas1337; 01-23-2015 at 21:01.
Danyas1337 is offline
Send a message via Skype™ to Danyas1337
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-25-2015 , 03:41   Re: SB suddenly deciding to change the name of admin groups?
Reply With Quote #4

"Groups"
__________________
Chdata is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-25-2015 , 08:09   Re: SB suddenly deciding to change the name of admin groups?
Reply With Quote #5

The problem here is that SourceBans uses the KV (which is a case-insensitive format) API to write a SMC (which is a case-sensitive format) file. Thus fucking up the case of section names if there is another KV file already loaded with the same name in a different case (because the engine case-insensitively pools the strings internally).
__________________
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode