Raised This Month: $32 Target: $400
 8% 

[help] admin.cfg file error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dacomb
Senior Member
Join Date: Oct 2009
Old 12-18-2009 , 13:51   [help] admin.cfg file error
Reply With Quote #1

Hey all,
An error is triggering off my admin.cfg file and I'm not really sure why.

Here's my admin.cfg file copied out with Number Lines added for clarity
Code:
1                     
2  /**
3  * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
4  *
5  * Each admin should have its own "Admin" section, followed by a name.
6  * The name does not have to be unique.
7  *
8  * Available properties: (Anything else is filtered as custom)
9  *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
10 *                        "steam"  - Steam based authentication
11 *                        "name"   - Name based authentication
12 *                        "ip"    - IP based authentication
13 *                        Anything else is treated as custom.
14 *                     Note: Only one auth method is allowed per entry.
15 *
16 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
17 *                     Note: Only one identity is allowed per entry.
18 *
19 *      "password"      - Optional password to require.
20 *      "group"         - Adds one group to the user's group table.
21 *      "flags"         - Adds one or more flags to the user's permissions.
22 *        "immunity"        - Sets the user's immunity level (0 = no immunity).
23 *                          Immunity can be any value.  Admins with higher 
24 *                          values cannot be targetted.  See sm_immunity_mode 
25 *                          to tweak the rules.  Default value is 0.
26 *
27 * Example:
28    "BAILOPAN"
29    {
30        "auth"            "steam"
31        "identity"            "STEAM_0:1:16"
32        "flags"            "abcdef"
33    }
24 *
35 */
36 Admins
37
38    "dacomb"
39    {
40        "auth"            "steam"
41        "identity"            "STEAM_0:1:xxxxxxx"
42        "flags"            "z"
43        "immunity"         "5"
44    }
45
46    "Bad Taste"
47    {
48        "auth"            "steam"
49        "identity"            "STEAM_0:0:xxxxxx"
50        "flags"            "z"
51        "immunity"         "5"
52    }
53
54    "Nippaa Uguu"
55    {
56        "auth"            "steam"
57        "identity"            "STEAM_0:1:xxxxxxxx"
58        "flags"            "z"
59        "immunity"         "5"
60    }
61
62    "seeyouNextTuesday"
63    {
64        "auth"            "steam"
65        "identity"            "STEAM_0:0:xxxxxxx"
66        "flags"            "cde"
67        "immunity"            "0"
68
69    }
And here's the error I've been getting for a while now.

Code:
L 12/18/2009 - 02:46:15: SourceMod error session started
L 12/18/2009 - 02:46:15: Info (map "l4d_airport01_greenhouse") (file "errors_20091218.log")
L 12/18/2009 - 02:46:15: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 12/18/2009 - 02:46:15: [admin-flatfile.smx]  (line 38) A property was declared outside of a section
L 12/18/2009 - 12:04:05: Error log file session closed.
L 12/18/2009 - 12:04:41: SourceMod error session started
L 12/18/2009 - 12:04:41: Info (map "l4d_airport01_greenhouse") (file "errors_20091218.log")
L 12/18/2009 - 12:04:41: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 12/18/2009 - 12:04:41: [admin-flatfile.smx]  (line 38) A property was declared outside of a section
As far as I can tell I inserted the admins correctly. I actually just copy and pasted the example and edited as necessary.

It doesn't seem to keep me from being able to do anything but I'd rather correct the problem if it is one...

Thanks!
dacomb is offline
ymam
Junior Member
Join Date: Nov 2009
Old 12-18-2009 , 16:15   Re: [help] admin.cfg file error
Reply With Quote #2

Code:
36 "Admins"
37{
38    "dacomb"
39    {
40        "auth"            "steam"
41        "identity"            "STEAM_0:1:xxxxxxx"
42        "flags"            "z"
43        "immunity"         "5"
44    }
45
46    "Bad Taste"
47    {
48        "auth"            "steam"
49        "identity"            "STEAM_0:0:xxxxxx"
50        "flags"            "z"
51        "immunity"         "5"
52    }
53
54    "Nippaa Uguu"
55    {
56        "auth"            "steam"
57        "identity"            "STEAM_0:1:xxxxxxxx"
58        "flags"            "z"
59        "immunity"         "5"
60    }
61
62    "seeyouNextTuesday"
63    {
64        "auth"            "steam"
65        "identity"            "STEAM_0:0:xxxxxxx"
66        "flags"            "cde"
67        "immunity"            "0"
68     }
70}
Try that...
Added " " around Admins
Added { line below "Admins"
Added } the very bottom
ymam is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 12-18-2009 , 17:07   Re: [help] admin.cfg file error
Reply With Quote #3

I do believe that did the trick.

Thanks man!
dacomb is offline
Zverina
Senior Member
Join Date: Aug 2009
Location: California, USA
Old 12-20-2009 , 01:59   Re: [help] admin.cfg file error
Reply With Quote #4

Actually just an FYI u don't need to use the same basic idea for adding an admin like the example, the way i do it is like this
"Blablabla" "z" "blablabla"
and i used blablabla obviously i dont want to reveal anything but u get the point, i just type that in and go a line down for the next admin lol
Zverina is offline
dacomb
Senior Member
Join Date: Oct 2009
Old 12-20-2009 , 02:53   Re: [help] admin.cfg file error
Reply With Quote #5

yeah, i actually use the adminsimple.ini and the admin.cfg.

silly directions... I don't know why I bothered to read them
dacomb 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 22:07.


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