Ulysses Stuff > Ulysses Release Archives

UTeam - Set teams based on usergroup.

<< < (3/52) > >>

spbogie:
How are you adding users to this custom group. If you are adding them using the settings/users.txt, and have ULib installed, then you may encounter problems trying to use custom user groups. Instead try adding your users to /data/ULib/users.txt. The format is different' but shouldn't be too difficult to understand if you already have some other users in there (admins and superadmins from /settings/users.txt are added there automatically).

If you are using the list in /data/ULib/users.txt, then please check for any errors on startup/connect (both server and clientside), and post your /data/ULib/users.txt & /data/ULib/groups.txt files.

jjb123:
Yep, only added the user to the data/ulib files. Here is my users file


--- Code: ---"Out"
{
"jjb123"
{
"type" "steamid"
"groups"
{
"1" "superadmin"
"2" "immunity"
}
"ID" "xxxxxxxxxx"
}
"Patty"
{
"ID" "xxxxxxxxxx"
"type" "steamid"
"groups"
{
"1" "vip"
}
}
}

--- End code ---

and my groups file


--- Code: ---"Out"
{
"Admin"
{
"deny"
{
"1" "ulx ban"
"3" "ulx exec"
"2" "ulx cexec"
}
}
"vip"
{
"allow"
{
"1" "ulx noclip"
"3" "ulx god"
"2" "ulx gimp"
"5" "ulx ungod"
"6" "ulx goto"
}
}
}


--- End code ---

spbogie:
Shouldn't be a problem, but you missed 4 in vip allow.
Could you also post your UTeam.txt, and the output of "status" and "lua_run PrintTable(ULib.ucl)" in server console while both you and your VIP are on the server.

jjb123:
Sure, here is my uteam file


--- Code: ---"Out"
{
"teams"
{
"1"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
}
"2"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"3"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
}
"4"
{
"name" "VIP"
"group" "vip"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "44"
"g" "211"
"r" "255"
}
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}

--- End code ---

and the output of status (of course, xxxxxxx is id)


--- Code: ---hostname:  gbserver
version : 1.0.0.0/7 3048 secure
udp/ip  :  192.168.0.101:27015
map     :  gm_battle_arena_v5 at: -1567 x, -752 y, 832 z
players :  2 (8 max)

# userid name uniqueid connected ping loss state adr
#  2 "jjb123" xxxxxxxxxxx 02:41 35 0 active 127.0.0.1:27005
#  3 "patty" xxxxxxxxxxx 01:25 81 0 active 69.246.72.184:27005

--- End code ---

and here is the return of ua_run PrintTable(ULib.ucl)


--- Code: ---
> PrintTable(ULib.ucl)...
passTimeout = function: 01D05A98
addAccessCallback = function: 01D05AC8
checkAuth = function: 01D05A80
callbacks:
1 = function: 019090B4
2 = function: 01D06050
groups:
immunity:
allow:
deny:
superadmin:
allow:
deny:
admin:
allow:
deny:
1 = ulx ban
3 = ulx exec
2 = ulx cexec
vip:
allow:
1 = ulx noclip
3 = ulx god
2 = ulx gimp
5 = ulx ungod
6 = ulx goto
deny:
addUser = function: 01D05A20
awaitingauth:
addGroup = function: 01D05A08
authed:
Player [1][jjb123]:
deny:
type = steamid
groups:
1 = superadmin
2 = immunity
account = jjb123
id = xxxxxxxxx
allow:
uniqueid = 3121351647
Player [2][patty]:
deny:
type = steamid
groups:
1 = vip
account = patty
id = xxxxxxxxx
allow:
uniqueid = 632034427
users:
jjb123:
deny:
type = steamid
groups:
1 = superadmin
2 = immunity
id = xxxxxxxxxxxxx
pass =
allow:
patty:
deny:
type = steamid
groups:
1 = vip
id = xxxxxxxxxxxx
pass =
allow:
query = function: 01D05AE0
removeUser = function: 01D05A38
probe = function: 01D05A50
checkPass = function: 01D05A68
callCallbacks = function: 01D05AB0

--- End code ---

spbogie:
Ah, found the problem. Teams take priority based on order, and all players have usergroup user. Change the user and vip teams around (make vip 3 and user 4).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version