Ulysses Stuff > Ulysses Release Archives
UTeam - Set teams based on usergroup.
JamminR:
As I previously stated, this release topic is not the are to discuss Kyzer's modification of the UTeam code.
Please delete/reask your question in the thread where the weapon control code is located.
Wizard of Unrespsonsiveness:
I also have a little problem and can't figure out whats wrong.
I changed my groups structur and since I did that the scoreboard doesn't shows team color and team name anymore. Just unassigned...
Uteam file:
--- Code: ---"Out"
{
"teams"
{
"1"
{
"name""Owner"
"group""owner"
"armor""10000"
"hp""10000"
"color"
{
"a""255"
"B""245"
"g""245"
"r""245"
}
}
"2"
{
"name""Superadmin"
"group""superadmin"
"armor""1000"
"hp""1000"
"color"
{
"a""255"
"B""54"
"g""54"
"r""179"
}
}
"3"
{
"name""Admin"
"group""admin"
"armor""500"
"hp""500"
"color"
{
"a""255"
"B""64"
"g""164"
"r""237"
}
}
"4"
{
"name""Moderator"
"group""moderator"
"armor""300"
"hp""300"
"color"
{
"a""255"
"B""0"
"g""69"
"r""255"
}
}
"5"
{
"name""Golden VIP"
"group""gvip"
"armor""250"
"hp""250"
"color"
{
"a""255"
"B""0"
"g""15"
"r""255"
}
}
"6"
{
"name""Silver VIP"
"group""svip"
"armor""250"
"hp""250"
"color"
{
"a""255"
"B""192"
"g""192"
"r""192"
}
}
"7"
{
"name""VIP"
"group""vip"
"armor""250"
"hp""250"
"color"
{
"a""255"
"B""0"
"g""140"
"r""255"
}
}
"8"
{
"name""Respected"
"group""respected"
"armor""150"
"hp""150"
"color"
{
"a""255"
"B""0"
"g""165"
"r""255"
}
}
"9"
{
"name""Friend"
"group""friends"
"hp""100"
"color"
{
"a""255"
"B""152"
"g""251"
"r""152"
}
}
"10"
{
"name""Guest"
"group""user"
"hp""100"
"color"
{
"a""255"
"B""238"
"g""238"
"r""175"
}
}
"11"
{
"name""MingeBag"
"group""minge"
"hp""1"
"color"
{
"a""150"
"B""19"
"g""69"
"r""139"
}
}
}
"gamemodes"
{
"1""sandbox"
}
}
--- End code ---
Even I know the problem is not related to this file because it works fine i post it anyway.
--- Code: ---"superadmin"
{
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx groupallow"
"ulx hiddenecho"
"ulx luarun"
"ulx physgunplayer"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx renamegroup"
"ulx runlua"
"ulx userallow"
"ulx userdeny"
}
"inherit_from" "admin"
}
"gvip"
{
"allow"
{
"ulx ban"
"ulx banid"
"ulx blind"
"ulx blind"
"ulx csay"
"ulx freeze"
"ulx gag"
"ulx ghost"
"ulx gimp"
"ulx jail"
"ulx maul"
"ulx mute"
"ulx physgunplayer"
"ulx playsound"
"ulx ragdoll"
"ulx send"
"ulx spectate"
"ulx sslay"
"ulx tsay"
"ulx unblind"
"ulx ungag"
"ulx unghost"
"ulx ungimp"
"ulx unjail"
"ulx unmaul"
"ulx unmute"
"ulx unragdoll"
"ulx whip"
}
"inherit_from" "svip"
}
"user"
{
"allow"
{
"ulx"
"ulx asay"
"ulx help"
"ulx motd"
"ulx psay"
"ulx showmotd"
"ulx thetime"
"ulx who"
}
}
"owner"
{
"allow"
{
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx votebanminvotes"
"ulx votebansuccessratio"
"ulx voteecho"
"ulx votekickminvotes"
"ulx votekicksuccessratio"
"ulx votemap2minvotes"
"ulx votemap2successratio"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
"ulx_cvar"
"ulx_getgamemodes"
"ulx_valueupdate"
}
"inherit_from" "superadmin"
}
"friends"
{
"allow"
{
"ulx"
"ulx asay"
"ulx getbans"
"ulx help"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx votekick"
"ulx who"
}
"inherit_from" "user"
}
"minge"
{
"allow"
{
}
"inherit_from" "user"
}
"admin"
{
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx adminmenu"
"ulx chattime"
"ulx physgunplayer"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx spawnecho"
"ulx toolallow"
"ulx toolallowuser"
"ulx tooldeny"
"ulx tooldenyoverride"
"ulx tooldenyuser"
"ulx unfreeze"
"ulx usermanagementhelp"
"ulx welcomemessage"
}
"inherit_from" "moderator"
}
"respected"
{
"allow"
{
"ulx"
"ulx clientmenu"
"ulx goto"
"ulx help"
"ulx kick"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx votemap"
"ulx who"
}
"inherit_from" "friends"
}
"moderator"
{
"allow"
{
"ulx banmenu"
"ulx physgunplayer"
"ulx seeasay"
"ulx unban"
"ulx unigniteall"
}
"inherit_from" "gvip"
}
"svip"
{
"allow"
{
"ulx armor"
"ulx clientmenu"
"ulx cloak"
"ulx god"
"ulx hp"
"ulx ignite"
"ulx noclip"
"ulx physgunplayer"
"ulx slap"
"ulx slay"
"ulx strip"
"ulx uncloak"
"ulx ungod"
"ulx unignite"
"ulx veto"
"ulx vote"
"ulx voteban"
"ulx whip"
}
"inherit_from" "vip"
}
"vip"
{
"allow"
{
"ulx bring"
"ulx map"
"ulx mapsmenu"
"ulx teleport"
"ulx votemap2"
}
"inherit_from" "respected"
}
--- End code ---
I put the Uteam.txt into the Ulib folder(I also edited the path in the Uteam.lua so its ok).
JamminR:
Possibile issues
1) Though SPBogie supposedly made group names non-case sensitive, Gamemodes may be? Try changing sandbox to Sandbox
2) You have two ULib groups inherit from user. That may be throwing UTeam off. (Technically, if no inherit from group is specified at all (""), user is assumed.
3) Did it work before you removed spaces? Gmod is picky about whitespace, or at least has been at times.
4) You have no "none" group as specified in our current ULX release version... that too may be throwing ULib off.
4.5) If using ULib SVN, I'm not sure if UTeam is compatible with it.
5) Modified path/lua incorrectly.
Wizard of Unrespsonsiveness:
Its not important to uppercase the "S" in "sandbox" because UTeam doesn't case sensitive.
The inherit thing could be the problem but im not sure.
I tried it with and without whitespaces.
I never used or saw a "non" group...
It worked with the svn version before so thats not the problem.
The path is correct.
But it seems that uTeam didn't load all the time even I remove uTeam it still shows unassigned.
I added
--- Code: ---Msg("uTeam loaded\n")
--- End code ---
in the file to check if it even gets loaded and it does.
I still think its something in the uTeam.txt but there is no mistake...
Wizard of Unrespsonsiveness:
SOLVED.
One of my admins thought it would be a good idea to change the gamemode name somewhere in the gamemode files so uTeam failed because the gamemode wasn't registered in the uTeam.txt
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version