Raised This Month: $ Target: $400
 0% 

Sourcemod admin.cfg errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 19:43   Sourcemod admin.cfg errors
Reply With Quote #1

Ok so I am looking over a cliff and I might just jump.

Been working to get sourcebans up using sourcemod and metamod for days now.
I've tried everything. Literally.
I'm having the issue of admin.cfg and admin_groups.cfg not talking to one another.

Error: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
[admin-flatfile.smx] (line 8 ) Unknown group "owner"

There's a nice forum on this with attached admin-flat.smx files. I'm trying to use those fixed admin-flat.smx files and I'm not sure if I have to compile them or just rename them and shove them into sourcemod/scripting/ directory.

Bonus: Even without groups set in sourcebans, admin flags refuse to work on specified player connecting to server. Sourcebans is talking to the server, and formatting files pure on steamcmd start, but nothing is lining up for some reason.
rcon passwords are sett accordingly. I can access rcon while in game. I can do everything except use sm_admin.

If someone has a solution to this PLEASE for the love of GOD gimmi a sign!

Last edited by RANDOMINATION; 08-20-2015 at 19:43.
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-20-2015 , 19:49   Re: Sourcemod admin.cfg errors
Reply With Quote #2

For starters it helps to post your config files and show what you exactly tried.
Potato Uno is offline
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 19:56   Re: Sourcemod admin.cfg errors
Reply With Quote #3

Quote:
Originally Posted by Potato Uno View Post
For starters it helps to post your config files and show what you exactly tried.
Use your imagination. The only thing that is not running correctly is that error. I believe it has to do with uppercase and lowercase editing. The admin-flatfile-fix.sp files need to be compiled. How do I go about doing that?
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 20:01   Re: Sourcemod admin.cfg errors
Reply With Quote #4

Config files admin_groups.cfg and admin.cfg respectively

Code:
"groups"
{
	"owner"
	{
		"flags"		"bcdefghijklmn"
		"immunity"		"1001"
	}
	"admin"
	{
		"flags"		"bcdefjk"
		"immunity"		"50"
	}
}
Code:
"Admins"
{
	"randomination"
	{
		"auth"		"steam"
		"identity"		"STEAM_0:******"
		"flags"		"bcdefghijklmn"
		"group"		"owner"
		"password"		"*****"
		"immunity"		"100"
	}
	"AbjectCube"
	{
		"auth"		"steam"
		"identity"		"STEAM_0:****"
		"flags"		"bcdefghijklmn"
		"password"		"*****"
		"immunity"		"101"
	}
}
Understand this is what sourcebans writes to these files, not sourcemod. Editing these is useless because they get turned over to pure from sourcebans on each steamcmd restart.

Last edited by RANDOMINATION; 08-20-2015 at 20:02. Reason: adasd
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 08-20-2015 , 20:23   Re: Sourcemod admin.cfg errors
Reply With Quote #5

What's happening is that SM's admin_groups.cfg parser expects "Groups" and not "groups" but since SB uses Valve's KV parser/writer, it comes out as "groups". Best fix atm is to edit the config parser to make StrEqual for "Groups" read it case-insensitive, you'll find out what to edit on the forums.
__________________

Last edited by WildCard65; 08-20-2015 at 20:24.
WildCard65 is offline
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 20:32   Re: Sourcemod admin.cfg errors
Reply With Quote #6

Ok so I've compiled the .sp files for admin-flatfile_fix.smx
For anyone wondering this does fix that error mentioned before.
Just rename the final compiled smx to admin-flatfile.smx and you're gold.

Now getting sourcebans to do what it is supposed to do. Anyone have ANY idea on why Sourcebans and Sourcemod does not initiate admins on connect and throws no errors when steamcmd is run?

The flags are still set as show above in the config files.
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 21:13   concerning admins_simple.ini
Reply With Quote #7

Is there any reason why sourcemod would not read from this file, or not initiate admins on server even after sm_rehash and sm_reloadadmins?

I'm trying to brute pass some admins by bypassing sourcebans to see if it is sourcebans or sourcemod that is not working correctly. At this point neither are not initializing admin flags on SteamID when connecting.

Code:
"Admins"
{
	"randomination"
	{
		"auth"		"steam"
		"identity"		"STEAM_0:*****"
		"flags"		"bcdefghijklmn"
		"group"		"owner"
		"password"		"****"
		"immunity"		"100"
	}
	"AbjectCube"
	{
		"auth"		"steam"
		"identity"		"STEAM_0:***"
		"flags"		"z"
		"group"		"owner"
		"password"		"****"
	}
}
Code:
"groups"
{
	"owner"
	{
		"flags"		"bcdefghijklmn"
		"immunity"		"1001"
	}
	"admin"
	{
		"flags"		"bcdefjk"
		"immunity"		"50"
	}
}
admins_simple.ini
Code:
 "STEAM_0:0:*****" "abcdefgh"
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 21:46   Re: concerning admins_simple.ini
Reply With Quote #8

Or better yet, do I need to convert sourcebans steam IDs to steamID3? STEAM: to U:

Anybody?
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 08-20-2015 , 22:40   Re: concerning admins_simple.ini
Reply With Quote #9

It depends on your game, which you should provide if you want help.
First, fix your admins.cfg
Code:
"Admins"
{
    "randomination"
    {
        "auth"      "steam"
        "identity"  "STEAM_0:*****"
        "group"     "owner"
        "password"  "****"
        "immunity"  "100"
    }
    "AbjectCube"
    {
        "auth"      "steam"
        "identity"  "STEAM_0:***"
        "flags"     "z"
        "group"     "owner"
        "password"  "****"
    }
}
Fix your admin_groups.cfg
Code:
"Groups"
{
    "owner"
    {
        "flags"     "bcdefghijklmn"
        "immunity"      "100"
    }
    "admin"
    {
        "flags"     "bcdefjk"
        "immunity"      "50"
    }
}
And if you're owner, just use the flag z, and only z. Makes no sense to have all those flags, and if you do, why not all the flags...

Finally... If you're using Sourcebans, this is all irrelevant.
Maxximou5 is offline
RANDOMINATION
Junior Member
Join Date: Aug 2015
Location: Texas
Old 08-20-2015 , 23:00   Re: concerning admins_simple.ini
Reply With Quote #10

Quote:
Finally... If you're using Sourcebans, this is all irrelevant.
Indeed, but logic dictates that if SOMETHING is put into admins_simple.ini, those values should be used in server, therefore those steamIds should come up as admin and be able to use sm_admin.

Am I correct or no? Cus I've been banging my head against a brick wall here for 3 days.
RANDOMINATION is offline
Send a message via Skype™ to RANDOMINATION
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 21:44.


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