Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Stevess on July 03, 2007, 12:41:50 PM

Title: Request for admin groups
Post by: Stevess on July 03, 2007, 12:41:50 PM
I've tried to make admin groups in ulib but it's really hard to do. If anyone that knows how and would help i only need 3.
Title: Re: Request for admin groups
Post by: Megiddo on July 03, 2007, 05:48:01 PM
"ulx adduser name admin"
Title: Re: Request for admin groups
Post by: SkuD on July 11, 2007, 08:44:13 AM
I think he means he wants to create 3 groups of admins, so he can add users to those groups.  Like Super Admin, Admin, Basic Admin.  I don't think he is asking how too add a user to admin.  Also, don't forget that not everyone knows code or understands things as well as you do.  Explanations can go along way.
Title: Re: Request for admin groups
Post by: JamminR on July 11, 2007, 03:25:26 PM
Skud, We understand. Thanks. :)
However. We've explained until we're blue in the face. (and other colors that the human face just shouldn't turn)
Both on this forum (which, actually, contains some of the best explanations I think), and on facepunch.

Most (not all, but, unfortunately, most) aren't willing to read and research what we've attempted to explain in various answers here and on FP seemingly hundreds of times before.
So, we often limit ourselves to one or two sentence answers.

Stevess,
The best way to learn is to look at examples on this forum (search for groups.txt or groups), or look at the file which we include in your addons/Ulib/data/format.txt
Title: Re: Request for admin groups
Post by: SkuD on July 12, 2007, 07:28:41 AM
Indeed, people tend to post first, and search later.  I would answer his questions but I have not yet jumped into the full extent of the lua code for ulx.  You could probably have a giant READ ME FIRST ALL YOUR QUESTIONS ANSWERED HERE post, and people who still ask questions.  :D
Title: Adding groups manually to groups.txt
Post by: Jethro on July 28, 2007, 03:00:30 PM
I read the format.txt and the readme but this isn't precise enough to me.
I have searched Groups & Groups.txt and have not found anything(on the forum like suggested).
Im looking to add 3 groups into the groups.txt manually with different levels of access.
I currently have this written in there(I don't know why it was just in there).
Code: [Select]
"Out"
{
"superadmin"
{
}
}
This code doesn't match the code in the format.txt
I need 3 groups.
Super Admin; which currently works fine with the code that is currently in the .txt
Super Moderators
and Moderators.

If someone could show me the format of what 3 user groups look like it would be very helpful.

Super Admins of coarse get total access
Super Moderators can; ulx kick ulx ban
Moderators can; ulx kick
Could you show me how to do this as im confused on editing the file.
Title: Re: Request for admin groups
Post by: JamminR on July 28, 2007, 07:56:54 PM
What the <censor> is not to understand about the groups section of format.txt
Code: [Select]
Format of group in groups.txt--
"Out"
{
     "<group_name>"
     {
           "allow"
           {
          "1" "ulx kick"
          "2" "ulx ban"
           }
                   "deny"
           {
         "1" "ulx cexec"
                   }
     }
}

SO..
Rinse, repeat. But add your own groups.

Code: [Select]
"Out"
{
     "superadmin"
     {
     }
     "supermoderator"
     {
           "allow"
           {
          "1" "ulx blah1"
          "2" "ulx blah2"

           }
                   "deny"
           {
         "1" "ulx blah3"
                   }
     }
     "moderator"
     {
           "allow"
           {
          "1" "ulx blah1"
           }
                   "deny"
           {
         "1" "ulx blah3"
                   }
     }
}

By default, any custom group gets the same access as users. That is, they get ulx who, thetime, ulx help, and a few others I don't remember on the top of my head.
You would add/adjust the deny list for each group if you didn't want them having access to something normally given to users. (ulx who, etc)
You would add/adjust the allow list to give your custom groups the commands you wanted.

For safety, if you allow someone access to a command that also has a corresponding "un" command, add both. (Example, ulx ghost, ulx unghost)

Though we might have, or will in future, change code to be smart enough that if you give someone the original command, I'm not sure we have yet, nor is Spbogie

There, I've done half your work for you. Its not even my <censor> server.
I'm a sucker. Gimme karma. Preferably, register and become donator to our server.
Title: Re: Request for admin groups
Post by: Jethro on July 29, 2007, 05:07:49 AM
Ok Thank You very much JamminR.
I'm sorry for being Retarded but I could not work out why the super moderator had a different format, or where to start the position of the next user.
All is sorted now=)... hopefully.

EDIT:
I need to know what a default user gets?
so far you have said they get:
ulx who

Im guessing the defaults are:
ulx adminmenu
ulx clientmenu
ulx help
ulx menu
ulx motd
ulx thetime
ulx who

(are there anymore)

Buy is that all?
I need to know if I have to give them eg. ulx adminmenu
I could not find a readme that says what are the default commands all users can get.
Title: Re: Request for admin groups
Post by: JamminR on July 29, 2007, 01:27:50 PM
I could not work out why the super moderator had a different format,

Technically, it doesn't. By default, superadmin can do anything, so, there are no "allow" or "deny" subgroups listed.
You could specify that superadmin have some commands "denied" if you wanted by adding that "deny" list.
I've known one server host that denied "ulx rcon" "ulx ent" and "ulx luarun" to the super admins he had. He reallly only implicitly trusted one or two to have that access, and shared his actual rcon password with them.

Though I help code ULX, I don't know all the default "user" access commands by heart.
My recommendation to get them would be to, as a superadmin, follow the instructions in this post (http://forums.ulyssesmod.net/index.php/topic,525.0.html), then run a ulx help in your own client console. The commands that list would be default once your access is removed.
Title: Re: Request for admin groups
Post by: Jethro on July 30, 2007, 09:26:08 AM
Very sorry to be such a pain but it hasn't worked.

This is my groups.txt now

Code: [Select]
"Out"
{
     "superadmin"
     {
     }
     "administrator"
     {
           "allow"
           {
          "1" "ulx adminmenu
          "2" "ulx ban
          "3" "ulx blind
          "4" "ulx bring
          "5" "ulx clientmenu
          "6" "ulx cloak
          "7" "ulx csay
          "8" "ulx ent
          "9 "ulx exec
          "10" "ulx freeze
          "11" "ulx ghost
          "12" "ulx gimp
          "13" "ulx god
          "14" "ulx goto
          "15" "ulx hp
          "16" "ulx ignite
          "17" "ulx jail
          "18" "ulx kick
          "19" "ulx map
          "20" "ulx mapsmenu
          "21" "ulx mute
          "22" "ulx noclip
          "23" "ulx playsound
          "24" "ulx ragdoll
          "25" "ulx rcon
          "26" "ulx slap
          "27" "ulx slay
          "28" "ulx spectate
          "29" "ulx sslay
          "30" "ulx teleport
          "31" "ulx toolallow
          "32" "ulx toolallowuser
          "33" "ulx tooldeny
          "34" "ulx tooldenyuser
          "35" "ulx tsay
          "36" "ulx unblind
          "37" "ulx uncloak
          "38" "ulx unfreeze
          "39" "ulx unghost
          "40" "ulx ungimp
          "41" "ulx ungod
          "42" "ulx unjail
          "43" "ulx unmute
          "44" "ulx unragdoll
          "45" "ulx userallow
          "46" "ulx userdeny
          "47" "ulx veto
          "48" "ulx vote
          "49" "ulx voteban
          "50" "ulx votekick
          "51" "ulx votemap2
          "52" "ulx whip
           }
     }
     "supermoderator"
     {
           "allow"
           {
          "1" "ulx adminmenu
          "2" "ulx ban
          "3" "ulx bring
          "4" "ulx clientmenu
          "5" "ulx csay
          "6" "ulx freeze
          "7" "ulx ghost
          "8" "ulx gimp
          "9" "ulx jail
          "10" "ulx kick
          "11" "ulx map
          "12" "ulx mapsmenu
          "13" "ulx mute
          "14" "ulx ragdoll
          "15" "ulx slap
          "16" "ulx slay
          "17" "ulx spectate
          "18" "ulx sslay
          "19" "ulx teleport
          "20" "ulx tooldeny
          "21" "ulx tsay
          "22" "ulx unfreeze
          "23" "ulx unghost
          "24" "ulx ungimp
          "25" "ulx unjail
          "26" "ulx unmute
          "27" "ulx unragdoll
          "28" "ulx vote
          "29" "ulx voteban
          "30" "ulx votekick
          "31" "ulx votemap2
           }
     }
     "moderator"
     {
           "allow"
           {
          "1" "ulx adminmenu
          "2" "ulx ban
          "3" "ulx bring
          "4" "ulx clientmenu
          "5" "ulx csay
          "6" "ulx jail
          "7" "ulx kick
          "8" "ulx map
          "9" "ulx mapsmenu
          "10" "ulx mute
          "11" "ulx ragdoll
          "12" "ulx slap
          "13" "ulx slay
          "14" "ulx spectate
          "15" "ulx tsay
          "16" "ulx unjail
          "17" "ulx unmute
          "18" "ulx unragdoll
          "19" "ulx vote
          "20" "ulx voteban
          "21" "ulx votekick
           }
     }
}

This is my users.txt
Code: [Select]
"Out"
{
"Redrum"
{
"type" "steamid"
"groups"
{
"1" "administrator"
}
"id" "STEAM_0:1:2781740"
}
"Elmo"
{
"id" "STEAM_0:0:14122588"
"type" "steamid"
"groups"
{
"1" "administrator"
}
}
"Jethro"
{
"id" "STEAM_0:1:11827370"
"type" "steamid"
"groups"
{
"1" "superadmin"
}
}
}


Its not working, Redrum has no Admin. Superadmin works.

I have made sure that there are no default "allow" commands like:
 o asay
 o help
 o menu
 o motd
 o psay
 o thetime
 o votemap
in the "Allow Section".
It still doenst work so I don't know what ive done wrong this time.
Only superadmin works.
Title: Re: Request for admin groups
Post by: spbogie on July 30, 2007, 11:21:04 AM
Please read the Sticky and come back with the requested info.
Title: Re: Request for admin groups
Post by: JamminR on July 30, 2007, 04:00:52 PM
Remember spbogie, we have to do all the work for this guy.
Give them the link.
http://forums.ulyssesmod.net/index.php/topic,383.0.html
Title: Re: Request for admin groups
Post by: JamminR on July 30, 2007, 04:05:37 PM
Wait, bogie, meg, I'm confused myself.
I just looked at our server groups.txt ... there is no "Out" { }
Is that still required or not? If not, we need to update our format.txt
Title: Re: Request for admin groups
Post by: spbogie on July 30, 2007, 07:54:16 PM
It is required in the current released versions, but in the next version we are using our own KeyValues generator/parser and have removed the need for it.
Title: Re: Request for admin groups
Post by: JamminR on July 30, 2007, 08:07:44 PM
Gotcha. I'd seen the keyvalue addition, but didn't realise thats what it did. Thanks.
(see all, Ulysses is a team!)
Title: Re: Request for admin groups
Post by: Jethro on July 31, 2007, 06:44:10 AM
My server has been brought from invision-gaming.com so I don't think my server is the only GMOD server running off it.
ULib 2.05
ULX 3.11
Description of my symptoms:
Group superadmin = works fine
administrator = does not work
supermoderator = does not work
moderator = does not work

Look at my previous post to see my users.txt and my groups.txt .


RCON COMMANDS TO BE ENTERED:
]status
Results:
hostname: -CO- www.CounterOperations.com --> RolePlay Server
version : 1.0.0.0/7 3152 secure
udp/ip : 77.74.197.228:27015
map : RP_HomeTown2000 at: 0 x, 0 y, 0 z
players : 5 (16 max)

# userid name uniqueid connected ping loss state adr
# 2 "Gmod player" STEAM_0:0:10456641 02:41 92 0 active 85.29.68.175:27005
# 3 "Black Tower" STEAM_0:0:11898409 02:40 63 0 active 81.149.139.47:27005
# 4 "2shade" STEAM_0:0:5062832 02:40 68 0 active 80.132.149.194:32948
# 5 "Redrum Lewis" STEAM_0:1:2781740 02:36 80 0 active 172.188.38.225:27005
# 6 "liquid snake" STEAM_0:1:13990747 02:32 65 0 active 86.152.193.24:27005
_____

] ulx luarun PrintTable( util.KeyValuesToTable( file.Read( "../settings/users.txt" ) ) )
Results:
(ADMIN) (Console) ran lua_run: PrintTable ( util.KeyValuesToTable ( file.Read ( ../settings/users.txt ) ) )
> PrintTable ( util.KeyValuesToTable ( file.Read ( ../settings/users.txt ) ) )...
SERVER: Error running string:
SERVER: stdin:1: unexpected symbol near '..'

____

You said i needed to run these commands. but i didn't know if i needed to do it on "Redrum" as a member of each group or just once. So i did.
underneth. I did the command when he was a superadmin (superadmin works fine), administrator, supermoderator and moderator.

] ulx luarun PrintTable( ULib.ucl )


When he is a superadmin:
Code: [Select]
Results:
(ADMIN) (Console) ran lua_run: PrintTable ( ULib.ucl )
> PrintTable ( ULib.ucl )...
initClient = function: 022C9B20
passTimeout = function: 022C92F8
checkPass = function: 022C9328
checkAuth = function: 022C9310
callbacks:
1 = function: 022C9B20
2 = function: 022CBF98
3 = function: 026BACDC
addGroup = function: 022C92C8
addUser = function: 022C92B0
awaitingauth:
addAccessCallback = function: 022C8AA0
authed:
Player [4][Redrum Lewis]:
deny:
type = steamid
groups:
1 = superadmin
account = redrum
id = STEAM_0:1:2781740
allow:
uniqueid = 2588102196
Player [5][Yuri Stefenberg]:
type = guest
groups:
1 = user
id =
account = Yuri Stefenberg
acl:
allow:
deny:
uniqueid = 2730563584
Player [2][Black Tower]:
type = guest
groups:
1 = user
id =
account = Black Tower
acl:
allow:
deny:
uniqueid = 1647449457
Player [3][Linda Limhoved]:
type = guest
groups:
1 = user
id =
account = Linda Limhoved
acl:
allow:
deny:
uniqueid = 2680219053
Player [1][2shade]:
type = guest
groups:
1 = user
id =
account = 2shade
acl:
allow:
deny:
uniqueid = 1246157322
users:
redrum:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:2781740
pass =
allow:
elmo:
deny:
type = steamid
groups:
1 = administrator
id = STEAM_0:0:14122588
pass =
allow:
jethro:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:11827370
pass =
allow:
query = function: 022C8A40
removeUser = function: 022C9298
probe = function: 022C92E0
groups:
administrator:
allow:
toolallow = 32
ulx votekick
= 31
ulx teleport
= 31

{
= allow
ulx tooldenyuser
= 35
unmute = 44
ulx unfreeze
= 23

{
= 1
ulx ignite
= 17
map = 12
veto = 48
ulx = ent
sslay = 30
ulx unmute
= 27
ulx sslay
= 19
ulx ragdoll
= 15
ulx whip
}
}
= supermoderator
votemap2:
ulx toolallowuser
= 33
uncloak = 38
teleport = 20
playsound = 24
jail = 10
exec = 10
ulx gimp
= 9
ghost = 8
slap = 16
spectate = 18
ulx unragdoll
= 45
ulx noclip
= 23
mute = 14
ulx unblind
= 37
1 = ulx adminmenu

3 = ulx blind

2 =
5 = ulx clientmenu

4 =
ulx slap
= 27
6 =
8 =
ulx goto
= 15
ulx kick
= 11
ulx userdeny
= 47
9 = ulx
tsay = 22
ulx mapsmenu
= 13
hp = 16
unragdoll = 28
unjail = 26
ulx tooldeny
= 21
ulx slay
= 17
ulx unjail
= 43
csay = 6
bring = 4
ungod = 42
tooldeny = 34
slay = 28
7 = ulx csay

ulx spectate
= 29
ulx ban
= 3
adminmenu = 2
ulx ungimp
= 25
god = 14
= ulx
rcon = 26
ulx vote
= 29
userallow = 46
ulx clientmenu
= 5
voteban = 30
ulx freeze
= 7
unghost = 24
deny:
superadmin:
allow:
deny:
moderator:
allow:
21 = ulx votekick
}
}
}
20 =
19 = ulx vote

18 =
9 = ulx mapsmenu

ulx = voteban
1 = ulx adminmenu

15 = ulx tsay

3 = ulx bring

2 =
5 = ulx csay

4 =
7 = ulx kick

6 =
14 =
8 =
16 =
17 = ulx unmute

13 = ulx slay

12 =
11 = ulx ragdoll

10 =
deny:
callCallbacks = function: 022C8AB8

When he is a administrator:
Code: [Select]
Results:
(ADMIN) (Console) ran lua_run: PrintTable ( ULib.ucl )
> PrintTable ( ULib.ucl )...
initClient = function: 022C9B20
passTimeout = function: 022C92F8
checkPass = function: 022C9328
checkAuth = function: 022C9310
callbacks:
1 = function: 022C9B20
2 = function: 022CBF98
3 = function: 026BACDC
addGroup = function: 022C92C8
addUser = function: 022C92B0
awaitingauth:
addAccessCallback = function: 022C8AA0
authed:
Player [2][Black Tower]:
type = guest
groups:
1 = user
id =
account = Black Tower
acl:
allow:
deny:
uniqueid = 1647449457
Player [3][Redrum Lewis]:
deny:
type = steamid
groups:
1 = administrator
account = redrum
id = STEAM_0:1:2781740
allow:
uniqueid = 2588102196
Player [1][2shade]:
type = guest
groups:
1 = user
id =
account = 2shade
acl:
allow:
deny:
uniqueid = 1246157322
users:
redrum:
deny:
type = steamid
groups:
1 = administrator
id = STEAM_0:1:2781740
pass =
allow:
elmo:
deny:
type = steamid
groups:
1 = administrator
id = STEAM_0:0:14122588
pass =
allow:
jethro:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:11827370
pass =
allow:
query = function: 022C8A40
removeUser = function: 022C9298
probe = function: 022C92E0
groups:
administrator:
allow:
toolallow = 32
ulx votekick
= 31
ulx teleport
= 31

{
= allow
ulx tooldenyuser
= 35
unmute = 44
ulx unfreeze
= 23

{
= 1
ulx ignite
= 17
map = 12
veto = 48
ulx = ent
sslay = 30
ulx unmute
= 27
ulx sslay
= 19
ulx ragdoll
= 15
ulx whip
}
}
= supermoderator
votemap2:
ulx toolallowuser
= 33
uncloak = 38
teleport = 20
playsound = 24
jail = 10
exec = 10
ulx gimp
= 9
ghost = 8
slap = 16
spectate = 18
ulx unragdoll
= 45
ulx noclip
= 23
mute = 14
ulx unblind
= 37
1 = ulx adminmenu

3 = ulx blind

2 =
5 = ulx clientmenu

4 =
ulx slap
= 27
6 =
8 =
ulx goto
= 15
ulx kick
= 11
ulx userdeny
= 47
9 = ulx
tsay = 22
ulx mapsmenu
= 13
hp = 16
unragdoll = 28
unjail = 26
ulx tooldeny
= 21
ulx slay
= 17
ulx unjail
= 43
csay = 6
bring = 4
ungod = 42
tooldeny = 34
slay = 28
7 = ulx csay

ulx spectate
= 29
ulx ban
= 3
adminmenu = 2
ulx ungimp
= 25
god = 14
= ulx
rcon = 26
ulx vote
= 29
userallow = 46
ulx clientmenu
= 5
voteban = 30
ulx freeze
= 7
unghost = 24
deny:
superadmin:
allow:
deny:
moderator:
allow:
21 = ulx votekick
}
}
}
20 =
19 = ulx vote

18 =
9 = ulx mapsmenu

ulx = voteban
1 = ulx adminmenu

15 = ulx tsay

3 = ulx bring

2 =
5 = ulx csay

4 =
7 = ulx kick

6 =
14 =
8 =
16 =
17 = ulx unmute

13 = ulx slay

12 =
11 = ulx ragdoll

10 =
deny:
callCallbacks = function: 022C8AB8

When he is a supermoderator:
Code: [Select]
Results:
(ADMIN) (Console) ran lua_run: PrintTable ( ULib.ucl )
> PrintTable ( ULib.ucl )...
initClient = function: 022C9B20
passTimeout = function: 022C92F8
checkPass = function: 022C9328
checkAuth = function: 022C9310
callbacks:
1 = function: 022C9B20
2 = function: 022CBF98
3 = function: 026BACDC
addGroup = function: 022C92C8
addUser = function: 022C92B0
awaitingauth:
addAccessCallback = function: 022C8AA0
authed:
Player [3][Redrum Lewis]:
deny:
type = steamid
groups:
1 = supermoderator
account = redrum
id = STEAM_0:1:2781740
allow:
uniqueid = 2588102196
Player [4][liquid snake]:
type = guest
groups:
1 = user
id =
account = liquid snake
acl:
allow:
deny:
uniqueid = 202302896
Player [1][Black Tower]:
type = guest
groups:
1 = user
id =
account = Black Tower
acl:
allow:
deny:
uniqueid = 1647449457
Player [5][2shade]:
type = guest
groups:
1 = user
id =
account = 2shade
acl:
allow:
deny:
uniqueid = 1246157322
Player [2][Gmod player]:
type = guest
groups:
1 = user
id =
account = Gmod player
acl:
allow:
deny:
uniqueid = 296275053
users:
redrum:
deny:
type = steamid
groups:
1 = supermoderator
id = STEAM_0:1:2781740
pass =
allow:
elmo:
deny:
type = steamid
groups:
1 = administrator
id = STEAM_0:0:14122588
pass =
allow:
jethro:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:11827370
pass =
allow:
query = function: 022C8A40
removeUser = function: 022C9298
probe = function: 022C92E0
groups:
administrator:
allow:
toolallow = 32
ulx votekick
= 31
ulx teleport
= 31

{
= allow
ulx tooldenyuser
= 35
unmute = 44
ulx unfreeze
= 23

{
= 1
ulx ignite
= 17
map = 12
veto = 48
ulx = ent
sslay = 30
ulx unmute
= 27
ulx sslay
= 19
ulx ragdoll
= 15
ulx whip
}
}
= supermoderator
votemap2:
ulx toolallowuser
= 33
uncloak = 38
teleport = 20
playsound = 24
jail = 10
exec = 10
ulx gimp
= 9
ghost = 8
slap = 16
spectate = 18
ulx unragdoll
= 45
ulx noclip
= 23
mute = 14
ulx unblind
= 37
1 = ulx adminmenu

3 = ulx blind

2 =
5 = ulx clientmenu

4 =
ulx slap
= 27
6 =
8 =
ulx goto
= 15
ulx kick
= 11
ulx userdeny
= 47
9 = ulx
tsay = 22
ulx mapsmenu
= 13
hp = 16
unragdoll = 28
unjail = 26
ulx tooldeny
= 21
ulx slay
= 17
ulx unjail
= 43
csay = 6
bring = 4
ungod = 42
tooldeny = 34
slay = 28
7 = ulx csay

ulx spectate
= 29
ulx ban
= 3
adminmenu = 2
ulx ungimp
= 25
god = 14
= ulx
rcon = 26
ulx vote
= 29
userallow = 46
ulx clientmenu
= 5
voteban = 30
ulx freeze
= 7
unghost = 24
deny:
superadmin:
allow:
deny:
supermoderator:
allow:
deny:
moderator:
allow:
21 = ulx votekick
}
}
}
20 =
19 = ulx vote

18 =
9 = ulx mapsmenu

ulx = voteban
1 = ulx adminmenu

15 = ulx tsay

3 = ulx bring

2 =
5 = ulx csay

4 =
7 = ulx kick

6 =
14 =
8 =
16 =
17 = ulx unmute

13 = ulx slay

12 =
11 = ulx ragdoll

10 =
deny:
callCallbacks = function: 022C8AB8

When he is a moderator:
Code: [Select]
Results:
(ADMIN) (Console) ran lua_run: PrintTable ( ULib.ucl )
> PrintTable ( ULib.ucl )...
initClient = function: 022C9B20
passTimeout = function: 022C92F8
checkPass = function: 022C9328
checkAuth = function: 022C9310
callbacks:
1 = function: 022C9B20
2 = function: 022CBF98
3 = function: 026BACDC
addGroup = function: 022C92C8
addUser = function: 022C92B0
awaitingauth:
addAccessCallback = function: 022C8AA0
authed:
Player [4][Redrum Lewis]:
deny:
type = steamid
groups:
1 = moderator
account = redrum
id = STEAM_0:1:2781740
allow:
uniqueid = 2588102196
Player [1][Gmod player]:
type = guest
groups:
1 = user
id =
account = Gmod player
acl:
allow:
deny:
uniqueid = 296275053
Player [3][2shade]:
type = guest
groups:
1 = user
id =
account = 2shade
acl:
allow:
deny:
uniqueid = 1246157322
Player [5][liquid snake]:
type = guest
groups:
1 = user
id =
account = liquid snake
acl:
allow:
deny:
uniqueid = 202302896
Player [2][Black Tower]:
type = guest
groups:
1 = user
id =
account = Black Tower
acl:
allow:
deny:
uniqueid = 1647449457
users:
redrum:
deny:
type = steamid
groups:
1 = moderator
id = STEAM_0:1:2781740
pass =
allow:
elmo:
deny:
type = steamid
groups:
1 = administrator
id = STEAM_0:0:14122588
pass =
allow:
jethro:
deny:
type = steamid
groups:
1 = superadmin
id = STEAM_0:1:11827370
pass =
allow:
query = function: 022C8A40
removeUser = function: 022C9298
probe = function: 022C92E0
groups:
administrator:
allow:
toolallow = 32
ulx votekick
= 31
ulx teleport
= 31

{
= allow
ulx tooldenyuser
= 35
unmute = 44
ulx unfreeze
= 23

{
= 1
ulx ignite
= 17
map = 12
veto = 48
ulx = ent
sslay = 30
ulx unmute
= 27
ulx sslay
= 19
ulx ragdoll
= 15
ulx whip
}
}
= supermoderator
votemap2:
ulx toolallowuser
= 33
uncloak = 38
teleport = 20
playsound = 24
jail = 10
exec = 10
ulx gimp
= 9
ghost = 8
slap = 16
spectate = 18
ulx unragdoll
= 45
ulx noclip
= 23
mute = 14
ulx unblind
= 37
1 = ulx adminmenu

3 = ulx blind

2 =
5 = ulx clientmenu

4 =
ulx slap
= 27
6 =
8 =
ulx goto
= 15
ulx kick
= 11
ulx userdeny
= 47
9 = ulx
tsay = 22
ulx mapsmenu
= 13
hp = 16
unragdoll = 28
unjail = 26
ulx tooldeny
= 21
ulx slay
= 17
ulx unjail
= 43
csay = 6
bring = 4
ungod = 42
tooldeny = 34
slay = 28
7 = ulx csay

ulx spectate
= 29
ulx ban
= 3
adminmenu = 2
ulx ungimp
= 25
god = 14
= ulx
rcon = 26
ulx vote
= 29
userallow = 46
ulx clientmenu
= 5
voteban = 30
ulx freeze
= 7
unghost = 24
deny:
superadmin:
allow:
deny:
moderator:
allow:
21 = ulx votekick
}
}
}
20 =
19 = ulx vote

18 =
9 = ulx mapsmenu

ulx = voteban
1 = ulx adminmenu

15 = ulx tsay

3 = ulx bring

2 =
5 = ulx csay

4 =
7 = ulx kick

6 =
14 =
8 =
16 =
17 = ulx unmute

13 = ulx slay

12 =
11 = ulx ragdoll

10 =
deny:
callCallbacks = function: 022C8AB8
[/coode]



Title: Re: Request for admin groups
Post by: spbogie on July 31, 2007, 09:02:15 AM
You need a closing quote after every command in groups.txt
Title: Re: Request for admin groups
Post by: Jethro on July 31, 2007, 11:05:37 AM
wow.. omg :-[ thank you =).
Title: Re: Request for admin groups
Post by: JamminR on July 31, 2007, 05:46:24 PM
HAHAHAHAHA!
I'm laughing at myself. Even I missed that in the post of your groups.txt
Syntax...a coders worst nightmare
Title: Re: Request for admin groups
Post by: spbogie on July 31, 2007, 06:34:38 PM
Yeah, I didn't catch it till I noticed that the allow and deny tables looked horibly messed up in the output of PrintTable.

There's a reason I use a text editor with syntax highlighting.
Title: Re: Request for admin groups
Post by: Jethro on August 09, 2007, 12:22:53 PM
I have the same problem; Maybe it wasn't fixed. Redrum from group Administrators told me that he had no Admin when he tryed.

My garrysmod/settings/users.txt
Code: [Select]
"Users"
{
//
// This is your users file
//
// You can use this file to add people as admins on your server
// Add them to the relevant section
//
// If you're a Lua coder you can add your own sections and use them
// in your script by doing pl:IsUserGroup( "admin" ) etc
//

"admin"
{
"Elmo" "STEAM_0:0:14122588"
}
"superadmin"
{
"Jethro" "STEAM_0:1:11827370"
}
"admin"
{
"Redrum" "STEAM_0:1:2781740"
}


}

My server has been brought from invision-gaming.com so I don't think my server is the only GMOD server running off it.
ULib 2.05
ULX 3.11
Description of my symptoms:
Groups
superadmin = works fine
administrator = does not work

garrysmod/data/Ulib/users.txt

Code: [Select]
"Out"
{
"Redrum"
{
"type" "steamid"
"groups"
{
"1" "administrator"
}
"id" "STEAM_0:1:2781740"
}
"Elmo"
{
"id" "STEAM_0:0:14122588"
"type" "steamid"
"groups"
{
"1" "administrator"
}
}
"Jethro"
{
"id" "STEAM_0:1:11827370"
"type" "steamid"
"groups"
{
"1" "superadmin"
}
}
}


garrysmod/data/Ulib/groups.txt
Code: [Select]
"Out"
{
     "superadmin"
     {
     }
     "administrator"
     {
           "allow"
           {
          "1" "ulx adminmenu"
          "2" "ulx ban"
          "3" "ulx blind"
          "4" "ulx bring"
          "5" "ulx clientmenu"
          "6" "ulx cloak"
          "7" "ulx csay"
          "8" "ulx ent"
          "9 "ulx exec"
          "10" "ulx freeze"
          "11" "ulx ghost"
          "12" "ulx gimp"
          "13" "ulx god"
          "14" "ulx goto"
          "15" "ulx hp"
          "16" "ulx ignite"
          "17" "ulx jail"
          "18" "ulx kick"
          "19" "ulx map"
          "20" "ulx mapsmenu"
          "21" "ulx mute"
          "22" "ulx noclip"
          "23" "ulx playsound"
          "24" "ulx ragdoll"
          "25" "ulx rcon"
          "26" "ulx slap"
          "27" "ulx slay"
          "28" "ulx spectate"
          "29" "ulx sslay"
          "30" "ulx teleport"
          "31" "ulx toolallow"
          "32" "ulx toolallowuser"
          "33" "ulx tooldeny"
          "34" "ulx tooldenyuser"
          "35" "ulx tsay"
          "36" "ulx unblind"
          "37" "ulx uncloak"
          "38" "ulx unfreeze"
          "39" "ulx unghost"
          "40" "ulx ungimp"
          "41" "ulx ungod"
          "42" "ulx unjail"
          "43" "ulx unmute"
          "44" "ulx unragdoll"
          "45" "ulx userallow"
          "46" "ulx userdeny"
          "47" "ulx veto"
          "48" "ulx vote"
          "49" "ulx voteban"
          "50" "ulx votekick"
          "51" "ulx votemap2"
          "52" "ulx whip"
           }
     }
     "supermoderator"
     {
           "allow"
           {
          "1" "ulx adminmenu"
          "2" "ulx ban"
          "3" "ulx bring"
          "4" "ulx clientmenu"
          "5" "ulx csay"
          "6" "ulx freeze"
          "7" "ulx ghost"
          "8" "ulx gimp"
          "9" "ulx jail"
          "10" "ulx kick"
          "11" "ulx map"
          "12" "ulx mapsmenu"
          "13" "ulx mute"
          "14" "ulx ragdoll"
          "15" "ulx slap"
          "16" "ulx slay"
          "17" "ulx spectate"
          "18" "ulx sslay"
          "19" "ulx teleport"
          "20" "ulx tooldeny"
          "21" "ulx tsay"
          "22" "ulx unfreeze"
          "23" "ulx unghost"
          "24" "ulx ungimp"
          "25" "ulx unjail"
          "26" "ulx unmute"
          "27" "ulx unragdoll"
          "28" "ulx vote"
          "29" "ulx voteban"
          "30" "ulx votekick"
          "31" "ulx votemap2"
           }
     }
     "moderator"
     {
           "allow"
           {
          "1" "ulx adminmenu"
          "2" "ulx ban"
          "3" "ulx bring"
          "4" "ulx clientmenu"
          "5" "ulx csay"
          "6" "ulx jail"
          "7" "ulx kick"
          "8" "ulx map"
          "9" "ulx mapsmenu"
          "10" "ulx mute"
          "11" "ulx ragdoll"
          "12" "ulx slap"
          "13" "ulx slay"
          "14" "ulx spectate"
          "15" "ulx tsay"
          "16" "ulx unjail"
          "17" "ulx unmute"
          "18" "ulx unragdoll"
          "19" "ulx vote"
          "20" "ulx voteban"
          "21" "ulx votekick"
           }
     }
}


status
Code: [Select]
Rcon: "status"
hostname:  -CO- www.CounterOperations.com  --> RolePlay Server
version : 1.0.0.0/7 3152 secure
udp/ip  :  77.74.197.228:27015
map     :  RP_HomeTown2000 at: 0 x, 0 y, 0 z
players :  15 (16 max)

# userid name uniqueid connected ping loss state adr
# 145 "-CO- Redrum" STEAM_0:1:2781740 01:18 110 0 active 172.212.70.25:27005
# 111 "-CO- Gun Reaper" STEAM_0:0:2927536  1:03:32 161 0 active 64.228.219.228:61914
# 143 "Pirate Pete" STEAM_0:1:6055347 02:53 79 0 active 79.65.61.114:64249
# 141 "Ray" STEAM_0:0:12225819 04:22 126 0 spawning 77.132.51.1:27005
# 144 "-CO- Gripen2" STEAM_0:0:1569545 02:49 118 0 active 217.210.199.53:34069
# 142 "Yoyo" STEAM_0:1:12562390 04:08 139 0 active 71.63.15.190:43626
# 146 "CRAZZY RM" STEAM_0:1:51736 00:23 54 74 spawning 82.29.26.125:27005
# 126 "2shade" STEAM_0:0:5062832 36:58 70 0 active 80.132.163.168:33251
# 64 "NBS=DK=John gordion" STEAM_0:1:14912463  2:38:53 141 0 active 74.119.99.197:60637
# 120 "Henry Price" STEAM_0:1:12324000 46:40 67 0 active 86.158.195.184:27005
# 136 "[WP] blah master" STEAM_0:0:9665445 21:00 171 0 active 24.233.157.193:27005
# 118 "Chris Hockle" STEAM_0:1:10954240 56:18 88 0 active 88.88.46.0:64510
# 95 "-CO-Djllb03" STEAM_0:1:14930309  1:51:18 72 0 active 81.156.52.226:54293
# 80 "-CO- DjDegraj" STEAM_0:1:3016449  2:24:20 107 0 active 85.226.141.203:27005
# 138 "ß??a?a?" STEAM_0:0:3141139 19:44 170 0 active 81.226.230.119:27005

ulx luarun PrintTable( ULib.ucl )
Code: [Select]
Results:
game.ConsoleCommand blocked!
(ADMIN) (Console) ran lua_run: PrintTable ( ULib.ucl )
L 08/09/2007 - 20:20:12: rcon from "77.74.197.228:4019": command "ulx luarun PrintTable( ULib.ucl )"

ulx luarun PrintTable( util.KeyValuesToTable( file.Read( "../settings/users.txt" ) ) )
Code: [Select]
Results:
game.ConsoleCommand blocked!
(ADMIN) (Console) ran lua_run: PrintTable ( util.KeyValuesToTable ( file.Read ( ../settings/users.txt ) ) )
L 08/09/2007 - 20:15:48: rcon from "77.74.197.228:4003": command "ulx luarun PrintTable( util.KeyValuesToTable( file.Read( "../settings/users.txt" ) ) )"
Title: Re: Request for admin groups
Post by: Megiddo on August 09, 2007, 12:45:47 PM
Your problem is two fold. First, settings/users.txt needs to be:

Code: [Select]
"Users"
{
//
// This is your users file
//
// You can use this file to add people as admins on your server
// Add them to the relevant section
//
// If you're a Lua coder you can add your own sections and use them
// in your script by doing pl:IsUserGroup( "admin" ) etc
//

"admin"
{
"Elmo" "STEAM_0:0:14122588"
"Redrum" "STEAM_0:1:2781740"
}
"superadmin"
{
"Jethro" "STEAM_0:1:11827370"
}

}

Second, in ULib/users.txt you used "administrator", when it should be "admin".

Also, what do you think of invision-gaming? We're considering getting a server through them. Any complaints or praises? Would you recommend them?
Title: Re: Request for admin groups
Post by: Jethro on August 09, 2007, 02:16:27 PM
Thank you for that; No wonder Admin hasn't been working.

Invision-gaming is new to GMOD. They have been adding more and more servers recently and are constantly upgrading(and gaining in popularity).
Their customer support has been good and I am currently looking to renew my GMOD server somewhere; I have not found anywhere in UK that is any better for Hosting GMOD so I most likely will renew my subscription with them.

I have had no major Issues except at least five times in the last six months, the FTP has been Broken for 2-5 hours. Once the whole website has been down along with the server for about 6 hours aprox. I did have an issue with this because they did not give me any warning; or even an apology for the server going down any of these times until I asked them for the second time.

So, I'm pretty neutral towards them until they become more reliable with their FTP Server's. 8)

Thanks,
Jethro

PS. Someone today said to use this host provider: http://wolfservers.com/servers/