Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: spbogie on January 13, 2007, 12:53:47 PM

Title: UTeam - Set teams based on usergroup.
Post by: spbogie on January 13, 2007, 12:53:47 PM
Description:
UTeam allows you to set a player's team (and a few other things) based on their current usergroup.

Features:

Notes:

ChangeLog:

UTeam_readme.txt
Code: [Select]
UTeam
  By: spbogie [Ulysses Team]

Installation:
  place UTeam.txt in garrysmod/data
  place UTeam.lua in garrysmod/lua/autorun

ChangeLog:
 version 1.1
  +Added support for setting variables on the player table (ie. SprintSpeed)
  *Fixed errors when running on gamemodes not in list
  *Gamemodes are based off name in scoreboare, but are no longer case-sensitive

Config Format (UTeam.txt):
"Out"
{
"teams"
{
"1" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Name" //Name of the team.
"group" "usergroup" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "100" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "500" //(*Optional*) Player's initial health.
"armor" "500" //(*Optional*) Player's initial armor.
"model" "gman" //(*Optional*) Player's model. (None if undefined, Kleiner if invalid) Valid models listed below
"plytable" //(*Optional*) Set values on the Player's table.
{ //Format is key:value

"1" "SprintSpeed:1000" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:500" //Set the player's walk speed (Def. 250)
}
}
}
"gamemodes" //Gamemodes to load on
{
"1" "Sandbox" //To add additional increase number each time
}
}

Valid player Models:
  alyx
  barney
  breen
  charple
  combine
  corpse
  eli
  female1
  female2
  female3
  gman
  kleiner
  male1
  male2
  male3
  monk
  mossman
  odessa
  police
  prison
  super
  zombie

Download:

See http://html-color-codes.com/rgb.html for good list of RGB color combinations
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on January 13, 2007, 01:14:31 PM
Lua king'd :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: maaarten on January 13, 2007, 05:22:07 PM
where do i put it?

in the lua/ulib/modules folder?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on January 13, 2007, 05:57:39 PM
where do i put it?

in the lua/ulib/modules folder?

Quote from: UTeam_readme.txt
Installation:
  place UTeam.txt in garrysmod/data
  place UTeam.lua in garrysmod/lua/autorun

Though, modules would work too.
I think this script isn't reliant on ULib, so, it can just be put in autorun.
Personally, I like putting all of my U-scripts in modules. Only others I put there are ones that I have trouble with, or have had to modify for whatever reason or other (compatibility, gamemode checking, etc)
Title: Re: UTeam - Set teams based on usergroup.
Post by: maaarten on January 14, 2007, 04:29:27 AM
thanks ;D
Title: Re: UTeam - Set teams based on usergroup.
Post by: EscudoDenali on February 01, 2007, 09:58:05 PM
Hey, will this work now that Gmod has this funky new scoreboard?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mank on February 02, 2007, 02:55:03 PM
Hey, will this work now that Gmod has this funky new scoreboard?

I doubt Garry changed the Lua -> Scoreboard functions, I'm pretty sure [[it's be compatibly] - Wow, I can't spell], Garry tries to make sure he doesn't change fundamental things that ruin scripts in each version. =)
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on February 03, 2007, 07:07:09 AM
The script still works, however the new scoreboard doesn't grab any team info. If you use the script you will still be set to the proper team, your name will still appear the right color in chat. You will still be setup with the right model, health, and armor. You just won't see teams in the default scoreboard. That being said there are a few new custom scoreboards that have added back in support for showing teams. I would recomend sui_scoreboard (http://forums.facepunchstudios.com/showthread.php?p=4427377#post4427377), but there are others.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on March 04, 2007, 08:18:26 PM
Can you make it set the player speed too please? :)

To do this, just change the appropriate variable in the player's table.
Title: Re: UTeam - Set teams based on usergroup.
Post by: jjb123 on March 15, 2007, 01:34:20 PM
For some reason it is not recognizing one of my custom groups, a vip group.  It doesn't apply custom health, or color. Whats wrong?
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 15, 2007, 01:51:42 PM
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.
Title: Re: UTeam - Set teams based on usergroup.
Post by: jjb123 on March 16, 2007, 02:15:09 PM
Yep, only added the user to the data/ulib files. Here is my users file

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

and my groups file

Code: [Select]
"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"
}
}
}


Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 16, 2007, 02:56:39 PM
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.
Title: Re: UTeam - Set teams based on usergroup.
Post by: jjb123 on March 16, 2007, 04:31:59 PM
Sure, here is my uteam file

Code: [Select]
"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"
}
}

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

Code: [Select]
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

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

Code: [Select]

> 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
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 16, 2007, 08:01:44 PM
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).
Title: Re: UTeam - Set teams based on usergroup.
Post by: jjb123 on March 17, 2007, 10:51:20 AM
That did the trick, thank you. ;D
Title: Re: UTeam - Set teams based on usergroup.
Post by: VincentAvery on March 21, 2007, 09:16:09 AM
I'm having a problem as well... I'm using ULX, sui_scoreboard, and uteam... and the scoreboard shows everyone as team "Unassigned"

I get this when starting the server:

Code: [Select]
**********************************************************
ERROR: Hook 'UTeamSetupTeams' Failed: includes/modules/hook.lua:43: attempt to index field '?' (a nil value)
Removing Hook 'UTeamSetupTeams'
**********************************************************

Adding Player
**********************************************************
ERROR: Hook 'UTeamSetTeam' Failed: includes/modules/hook.lua:43: attempt to index field '?' (a nil value)
Removing Hook 'UTeamSetTeam'
**********************************************************

here is my uteam.txt file:

Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "SuperAdmins"
"group" "superadmin"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
}
"2"
{
"name" "Admins"
"group" "admin"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"3"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
}
}
"gamemodes"
{
"1" "spacebuild"
}
}
Title: Re: UTeam - Set teams based on usergroup.
Post by: jjb123 on March 21, 2007, 11:53:16 AM
are you sure spacebuild is the name of the gamemode your playing in? IF you dont play in the gamemodes listed in the file by you you will get unassigned people.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on March 21, 2007, 12:20:19 PM
It doesn't work in other gamemodes, this is something I've noticed as well.
Title: Re: UTeam - Set teams based on usergroup.
Post by: VincentAvery on March 21, 2007, 08:43:22 PM
Oh, really? Is there any way around that? Or do you know what causes it? What gamemode does it work in? the spacebuild gamemode is derrived from sandbox, i don't know if that makes a difference or not... I'd really like to get this working. Any ideas?
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 25, 2007, 08:51:10 AM
It works in other gamemodes, it just uses the gamemodes name rather than the value of sv_gamemode (because sv_gamemode could change without the gamemode changing). Use the name that shows up on the scoreboard, it is case-sensitive. (for spacebuild it's "SpaceBuild")
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 25, 2007, 07:12:09 PM
New Version Released

ChangeLog:
Title: Re: UTeam - Set teams based on usergroup.
Post by: The Soup on April 09, 2007, 12:27:43 PM
No one else can hear my Mic after this, but I can't figure out the alltalk variable.

Name is temporary, still waiting for my confirmation EMail.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Kingtendo on April 12, 2007, 06:45:02 AM
In The plytable can you set things like prop limits to each user group. i want to be able to do this but i do not know how
Title: Re: UTeam - Set teams based on usergroup.
Post by: The Soup on April 12, 2007, 01:13:24 PM
Doesn't load?

I get Console error:

LS: -- Error running file ------------------------------------
LS: - File: autorun/server/UTeam.lua
LS: - autorun/server/UTeam.lua:21: table index is nil
LS: ----------------------------------------------------------

Help?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on April 12, 2007, 06:17:13 PM
Doesn't load?

I get Console error:

LS: -- Error running file ------------------------------------
LS: - File: autorun/server/UTeam.lua
LS: - autorun/server/UTeam.lua:21: table index is nil
LS: ----------------------------------------------------------

Help?ntax
Looks like you've edited Uteam.txt , and didn't edit it correctly. (Syntax error, etc)
Title: Re: UTeam - Set teams based on usergroup.
Post by: The Soup on April 19, 2007, 05:56:49 PM
You see, the problem is that, I didn't change anything since it last worked. Cept for copying it around a couple places. I'll go double check it.
Title: Re: UTeam - Set teams based on usergroup.
Post by: The Soup on April 19, 2007, 05:59:59 PM
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Admins"
"group" "superadmin"
"armor" "1000"
"hp" "200"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1500"
"2" "WalkSpeed:1000"
}
"model" "breen"
}
"2"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "150"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"model" "prison"
}
"3"
{
"name" "Admins"
"group" "operator"
"armor" "200"
"hp" "100"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
"model" "police"
}
"4"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}

That's my UTeam.txt file. In the data folder.
Title: Re: UTeam - Set teams based on usergroup.
Post by: The Soup on April 24, 2007, 07:46:43 PM
Anyone have an suggestions or ideas as to what I should do?
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on April 26, 2007, 11:44:06 PM
In the admins team definition you have 2 }'s after player table.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on April 26, 2007, 10:04:02 AM
Yay! The server time was super screwed up. spbogie sent a post into the future! :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on April 26, 2007, 12:59:41 PM
Crap, guess my secret is out. I suppose I couldn't keep my time traveling hidden forever  ::)
Title: Re: UTeam - Set teams based on usergroup.
Post by: kingtendo on May 03, 2007, 05:19:35 AM
can someone tell me what variables are on the player table, or is it just walkspeed and sprintspeed?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Avien on May 13, 2007, 10:31:20 AM
Does this work for the new ULX?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on May 13, 2007, 11:09:20 AM
It works off ULib, which tries to be as backwards compatible as humanly possible. (So, yes!)
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on May 28, 2007, 05:40:18 PM
Nice script! Quick question, what other settings can be changed in the player's table?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on May 28, 2007, 06:00:48 PM
Nothing else of interest in the player table, at least in vanilla GM10.
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on May 28, 2007, 06:07:39 PM
Meh, I was hoping to make noclip speed faster. :(
Title: Re: UTeam - Set teams based on usergroup.
Post by: Grover on July 20, 2007, 07:39:18 PM
I am lost on how to add people in certain groups. I keep reading this thread over and over and i still dont get it. Can someone help?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on July 20, 2007, 07:48:23 PM
You create groups (or team, whatever you call it) with UTeam. Then you create users with ULX users file (addons/ulib/data/ULib/users.txt) by adding them in their respective groups you just created with UTeam.

But i agree..it's a pity that it's not easier to add people.

Here is how i would like to have ulx team, will be much easier.

"Team1_name_Here"
{
    "walkspeed"    "200"
    "sprintspeed"  "500"
    "others options" "etc"

    "users"
    {
        steamid_0_0_123456
        steamid_0_1_654321
    }
}

Title: Re: UTeam - Set teams based on usergroup.
Post by: Grover on July 20, 2007, 08:00:07 PM
maybe im using the wrong version of ulib and ulx. I dont have ulib in my addons folder. All my  ULIB folders are in my Lua floder.
Do i have the wrong version? Everything works fine ingame.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on July 20, 2007, 08:16:20 PM
You're using a pretty old version, you need to upgrade.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Grover on July 20, 2007, 08:19:17 PM
whats the highest version that works in gmod 9?
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on July 20, 2007, 09:01:39 PM
Oh, GM9. Why didn't you say so right away. This script is for GMod10 only.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Grover on July 20, 2007, 10:28:34 PM
LOL, thanks for the help anyway. Ive seen this same concept on a different serv in GM9. Thas why i thought. Do you have any suggestions to where i might find something similar? Anything helps.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Finaldeath on July 21, 2007, 05:07:52 PM
How do i add people to different groups using the newest version of ulx and uteam and am i able to do this ingame.
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on July 21, 2007, 07:43:45 PM
Quote from: the F***ing first post
UTeam allows you to set a player's team (and a few other things) based on their current usergroup.
...

Usergroups can be set through Garry's default file (garrysmod/settings/users.txt), or through ULib/ULX.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Finaldeath on July 21, 2007, 07:51:14 PM
ok but what do i put down for each person like can you post a sample layout of how its suppost to be done
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on July 21, 2007, 07:53:37 PM
http://garrysmod.com/wiki/?title=Admin#Dedicated_Servers (http://garrysmod.com/wiki/?title=Admin#Dedicated_Servers)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Kingtendo on July 30, 2007, 11:36:32 AM
Solved, Bad Lack of attention
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on July 30, 2007, 11:52:26 AM
From the first post of this topic:

Code: [Select]
Valid player Models:
  alyx
  barney
  breen
  charple
  combine
  corpse
  eli
  female1
  female2
  female3
  gman
  kleiner
  male1
  male2
  male3
  monk
  mossman
  odessa
  police
  prison
  super
  zombie

...
Title: Re: UTeam - Set teams based on usergroup.
Post by: TomatoSoup on August 02, 2007, 04:52:41 PM
This seems to of broken with the newest version of GarrysMod.

Atleast, the model setting part is broken.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on August 02, 2007, 05:19:43 PM
Many things are broken with new gmod :[
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on August 02, 2007, 05:40:37 PM
Yes. A lot has changed. You just need to be patient the coders get around to updating their add-ons.
Title: Re: UTeam - Set teams based on usergroup.
Post by: truck on August 05, 2007, 07:42:43 PM
Why i cant talk with other team?? Only my team hear me
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on August 05, 2007, 08:23:41 PM
Set sv_alltalk to 1.
Title: Re: UTeam - Set teams based on usergroup.
Post by: truck on August 06, 2007, 11:19:36 AM
ok thx
Title: Re: UTeam - Set teams based on usergroup.
Post by: Guardian9978 on August 17, 2007, 01:59:34 AM
EDIT:
Alright, I guess it is working... well then can anyone tell me how to add the group name before the players name on the scoreboard?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on August 17, 2007, 05:17:16 AM
Answered here, do what it say and it will work:

http://forums.ulyssesmod.net/index.php/topic,1053.msg4958.html#msg4958
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on August 17, 2007, 06:41:32 PM
Answered here, do what it say and it will work:

http://forums.ulyssesmod.net/index.php/topic,1053.msg4958.html#msg4958

Kyzer, won't editing the default gmod files now get automatically replaced by those in the gmod gcf?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on August 17, 2007, 07:36:58 PM
Well yes, but not on a dedicated server, as no gcf for srcds (at least for our server lol)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Guardian9978 on August 18, 2007, 02:52:14 AM
Answered here, do what it say and it will work:

http://forums.ulyssesmod.net/index.php/topic,1053.msg4958.html#msg4958

Thanks for the help.
Title: Re: UTeam - Set teams based on usergroup.
Post by: PC Camper on January 12, 2008, 01:46:30 PM
Make promotions for this
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on January 14, 2008, 01:57:36 PM
My times have been reset unexpectedly for everyone on my servers. I just hit 20 hours. I'm not sure what caused it.
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on January 14, 2008, 04:36:23 PM
spark, this is the UTeam thread. I'm guessing you're looking for the UTime thread.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on January 14, 2008, 05:54:59 PM
My times have been reset unexpectedly for everyone on my servers. I just hit 20 hours. I'm not sure what caused it.
spark, this is the UTeam thread. I'm guessing you're looking for the UTime thread.

I laughed.
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on January 14, 2008, 05:58:16 PM
 :-[
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chris on February 12, 2008, 10:10:20 PM
Code: [Select]
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}

This is a snippet of code from UTeam.txt...

Code: [Select]
"model" "male1"

I know deleting this line will allow users to use any model they want...however, I want to deny them the use of the metrocop model, for example. If I were to do this:

Code: [Select]
"model" "male1"
"model" "female1"
"model" "combinesoldier"
"model" "male3"
"model" "ChuckNorris etc etc"

If I did that for every model EXCEPT the metrocop model, would it allow them to use every model but the metrocop? Or would it just use the first line and ignore the rest?

Thanks ahead of time.
Title: Re: UTeam - Set teams based on usergroup.
Post by: MrPresident on February 13, 2008, 12:16:57 AM
from what I understand, the model line doesn't allow the use of that model, it sets it reguardless of what the user has their choice set to. I believe it would either use the first one or the last one and ignore the rest.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on February 13, 2008, 09:39:31 AM
Megiddo had custom player models on the UHQ server at one time (may still somewhere, but the forcedownload doesn't push them anymore).
He somehow limited non admins/donators from using those. Perhaps he'll respond and share the code tidbit.
I don't know if it was a non-released addon, or a modification to one of our current products.
Title: Re: UTeam - Set teams based on usergroup.
Post by: _Fate on March 08, 2008, 04:11:39 AM
How do i bind a custom skin to a player group in ulx? is there a command line ?


 Thanks in adv.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on March 08, 2008, 04:19:38 AM
Use UTeam
Title: Re: UTeam - Set teams based on usergroup.
Post by: Fate on March 08, 2008, 07:45:12 AM
I have UTeam but i want custom models on players...

 If you know can you give me an example please
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on March 08, 2008, 09:03:47 AM
Edit: ignore this, see my next post Fate
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on March 08, 2008, 09:15:02 AM
As long as the server, and the client, have the custom model, UTeam should change to the specified player model.
I've not tested player model changing in UTeam since the update that broke speed and health settings.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Chironex on March 08, 2008, 09:24:53 AM
No it will not work, viewing this file: http://code.garrysmod.com/?show=/garrysmod/lua/includes/modules/player_manager.lua#6
customs skins will not be detected.

So Fate, you need to edit UTeam:

In UTeam.lua, locate this line
Code: [Select]
if v.model then timer.Simple( 0.1, ply.SetModel, ply, player_manager.TranslatePlayerModel( v.model ) ) end
and replace it with:
Code: [Select]
if v.model then timer.Simple( 0.1, ply.SetModel, ply, v.model ) end

And now, in the UTeam config file, you will need to change all models to their real file names.

Ex:
Before:
Code: [Select]
"model"    "super"

After:
Code: [Select]
"model"    "models/player/combine_super_soldier.mdl"

(follow the link at the begining of this post, for a list of default player models.)
         
         
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo Hui on March 16, 2008, 03:53:56 PM
Does anybody know how to add more teams than 4, when I tried it didn't work. Thanks! :-[
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on March 16, 2008, 04:24:45 PM
Does anybody know how to add more teams than 4, when I tried it didn't work. Thanks! :-[

What do you mean? I've seen Gman4President's server, and Beast Build server, with several different groups/teams in sui_scoreboard listings, and text color chat.
What isn't working? I just tried finding a limit on Google, and couldn't (but I didn't take more than a minute to search)
Keep the following in mind when you're trying to add;
Notes:
  • Usergroups can be set through Garry's default file (garrysmod/settings/users.txt), or through ULib/ULX.
  • Groups take priority based on their order(1 is highest priority). Set your teams based on decending group level so users don't get put on a lower team. (ie. If admin is before superadmin, superadmins will end up on admin team instead of superadmin team)
  • Use group "user" as your last team to catch everyone who wasn't put on another team.
UTeam_readme.txt
Code: [Select]
"teams"
{
"1" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Name" //Name of the team.
"group" "usergroup" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "100" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "500" //(*Optional*) Player's initial health.
"armor" "500" //(*Optional*) Player's initial armor.
"model" "gman" //(*Optional*) Player's model. (None if undefined, Kleiner if invalid) Valid models listed below
"plytable" //(*Optional*) Set values on the Player's table.
{ //Format is key:value

"1" "SprintSpeed:1000" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:500" //Set the player's walk speed (Def. 250)
}
}
}
[/quote]
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo Hui on March 16, 2008, 07:16:28 PM
 ;D Thanks, I just got the program today and I know very little on ULX.
BTW: how do you make a person on your server higher ranked/ admin. Not sure how to do that.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on March 16, 2008, 07:43:14 PM
Re:Uteam - You're welcome
Re:admin - please read the ulx_readme.txt ... if/when that doesn't answer your question, please explore this forum a little better... We have a FAQ (FREQUENTLY ASKED QUESTIONS) forum that I'm sure will answer any new questions you have.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo001 on March 16, 2008, 10:41:15 PM
Ok, I did manage to make one group correctly, but when I added "owner", the unassigned problem came back. Could someone tell me what I did wrong:

My UTeam.Txt
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Owner"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "255"
"g" "255"
"r" "255"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Moderator"
"group" "owner"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "0"
"g" "240"
"r" "222"
}
}
"3"
{
"name" "HIGHLY Respected"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"4"
{
"name" "Members"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "254"
"g" "172"
"r" "61"
}
}
"5"
{
"name" "N00b"
"group" "n00b"
"armor" "0"
"hp" "50"
"color"
{
"a" "255"
"B" "127"
"g" "127"
"r" "127"
}
}
"6"
{
"name" "Guest"
"group" "user"
"color"
{
"a" "255"
"B" "138"
"g" "0"
"r" "135"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "DarkRP"
}
}

And my groups.Txt
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx addgroup"
"ulx removegroup"
}
"inherit_from"
{
"owner"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx unignite"
"ulx armor"
"ulx strip"
"umaps_extend"
}
"inherit_from"
{
"operator"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"_umaps_chatprint"
"umaps_timeleft"
"umaps_nextmap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
"owner"
{
"deny"
{
}
"allow"
{
"overcomeimmunity"
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx groupallow"
"ulx groupdeny"
}
"inherit_from"
{
"admin"
}
}
"n00b"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"_umaps_chatprint"
"umaps_timeleft"
"umaps_nextmap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}

These are the files I have been messing with. Thanks for helping!
Re:Uteam - You're welcome
Re:admin - please read the ulx_readme.txt ... if/when that doesn't answer your question, please explore this forum a little better... We have a FAQ (FREQUENTLY ASKED QUESTIONS) forum that I'm sure will answer any new questions you have.

Sorry, about not searching, I thought if any of these kind of questons would have been talked about in this thread. But I did find a lot of usfull things searching. ;D
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on March 17, 2008, 08:31:13 AM
You have Owner as the title for superadmin and Moderator as the title for owner?
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 17, 2008, 09:16:14 AM
You don't have a closing bracket ( } ) for the "teams" table.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo001 on March 17, 2008, 02:10:56 PM
You have Owner as the title for superadmin and Moderator as the title for owner?
Well at first it was the other way around, but when I added and started getting problems. I thought It was like, where at the bottom, has to be user. I thought superadmin had to be on top, so I switched them. Still did not fix it. It was the closing bracket that I forgot to put. Now I can switch it back to what it was before. Owner, Superadmin, Moderator, HIGHLY Respected (admin), Members, N00b (lowest rank, but only for people that are N00bs), and Guest.

You don't have a closing bracket ( } ) for the "teams" table.
Thanks you guys have been a lot of help! (I wish I could give you a rating like in Facepunch, Lua King/ Lua Helper/ Gold Star) ;)
Wow, it just stuns me how much human error there is in this kinda stuff. (Well I am sorta new to this, but still)

Oh yea just want to make sure I read this right, If I want a person on my server to be a 'operator', I would put: "ulx adduser <steam name> [operator]" Exactly like that, right?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on March 17, 2008, 03:49:18 PM
They have to be connected at the time, and remove the [], but yes.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo001 on March 17, 2008, 04:00:31 PM
Ok, it is just when you type it in the console it appears like that to me, so I thought that is how you did it.
They have to be connected at the time, and remove the [], but yes.
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 17, 2008, 06:08:40 PM
It is a fairly common standard that <>'s represent an argument that you must enter, and []'s represent that the argument is optional. The group argument of ulx adduser is not optional however. Perhapse you confused it with the immunity argument.
Code: [Select]
ulx adduser <user> <group> [<immunity>] - Add a user to specified group with optional immunity.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo001 on March 17, 2008, 09:05:52 PM
Oh, ok that makes sense, thanks!

Eddit:
That is why I had so much trouble with changing groups  :-\
Title: Re: UTeam - Set teams based on usergroup.
Post by: bobthe2lol on April 25, 2008, 03:32:47 PM
I can not get this to work. Everything about it doesnt work. Color, health, and speed dont work. IE, the entire addon doesnt work, can you fix it?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on April 25, 2008, 06:13:41 PM
I can not get this to work. <snip>
can you fix it?

This works.
Many of the servers from our server forum use it with no major issues.
Though I'm not sure speed and health work, I know color does.
We don't know why you are having troubles, so it makes it difficult to help you fix yours.

Did you follow all the instructions for install and configuration?
Which include but are not limited to installing ULib, configuring ULib for teams, configuring your UTeams.txt file to match the ULib team names, and placing UTeam.txt in the proper folder.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Avien on April 25, 2008, 06:15:12 PM
Health works; Color works, i don't think speed works, not sure.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Typo001 on April 25, 2008, 06:16:06 PM
This works.
Many of the servers from our server forum use it with no major issues.
Though I'm not sure speed and health work, I know color does.
We don't know why you are having troubles, so it makes it difficult to help you fix yours.

Did you follow all the instructions for install and configuration?
Which include but are not limited to installing ULib, configuring ULib for teams, configuring your UTeams.txt file to match the ULib team names, and placing UTeam.txt in the proper folder.

Oh I know health works, on my server I have 1000 health, but my speed seems to be the same, as the others.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on April 25, 2008, 07:26:16 PM
Garry dropped support for changing speed the way UTeam did.
Title: Re: UTeam - Set teams based on usergroup.
Post by: MrPresident on April 26, 2008, 10:06:09 AM
Health works fine Jam =)
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on April 26, 2008, 12:31:48 PM
Health works; <snip>
Oh I know health works, <snip>
Garry dropped support for changing speed the way UTeam did.
(Loose Translation - Health works, speed doesn't)
Health works fine Jam =)

Ok. I get it. Health works. :P Let's hope bobthe2lol gets the idea everything works but speed and that the problem most likely is on his side, not the programs.
:D
Title: Re: UTeam - Set teams based on usergroup.
Post by: bobthe2lol on April 26, 2008, 04:59:48 PM
I get the idea. Uteam.txt:
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}
}
"2"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"3"
{
"name" "Members"
"group" "gold"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
}
"4"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}

"5"
{
"name" "Teh Scout"
"group" "Scout"
"color"
{
"a" "255"
"B" "25"
"g" "0"
"r" "100"
"plytable"
{
"1" "SprintSpeed:2000"
"2" "WalkSpeed:1000"
}
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}
and groups.txt
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"_pw"
"ulib_passtime"
"ulib_passtimeout"
"ulx"
"ulx help"
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx hiddenecho"
"ulx spawnecho"
"ulx psay"
"ulx seeasay"
"ulx asay"
"ulx tsay"
"ulx csay"
"ulx thetime"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx menu"
"ulx adminmenu"
"ulx_valueupdate"
"ulx_cvar"
"ulx clientmenu"
"ulx mapsmenu"
"ulx_getgamemodes"
"ulx motd"
"ulx showmotd"
"ulx banmenu"
"ulx_getbans"
"ulx rcon"
"ulx luarun"
"ulx exec"
"ulx cexec"
"ulx ent"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx usermanagementhelp"
"ulx adduser"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx who"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx addforceddownload"
"ulx debuginfo"
"ulx mingekick"
"ulx physgunplayer"
"ulx voteecho"
"ulx vote"
"ulx votemap2"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekick"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx voteban"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx veto"
"ulx votemapaddmap"
"ulx votemap"
"overcomeimmunity"
"ulx explode"
"ulx adduserid"
}
"inherit_from"
{
}
}
"Scout"
{
"deny"
{
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
}
"allow"
{
"ulx strip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx freeze"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx gimp"
"ulx chattime"
"ulx welcomemessage"
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx slap"
"ulx ignite"
"ulx unignite"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"admin"
}
}
"deny"
{
"ulx mingekick"
"ulx spectate"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx playsound"
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"allow"
{
"ulx strip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx freeze"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx gimp"
"ulx chattime"
"ulx welcomemessage"
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx slap"
"ulx ignite"
"ulx unignite"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"gold"
{
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"teh scout"
{
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
I hope that halps
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on April 26, 2008, 05:49:50 PM
Something is seriously wrong with your groups.txt table. It has an extra deny/allow table that doesn't seem to be connected to anything.
Also, if you've manually edited your groups.txt, always use lowercase, just to keep things constant. ("Scout")

As for uteam.txt, remove the } bracket immediately before group 5.
And since it looks like you're going to have to rebuild/redo groups.txt, change the group Scout to scout.

Once you get groups.txt fixed, perhaps UPS will work for you too (regarding your other posts in UPS)
Title: Re: UTeam - Set teams based on usergroup.
Post by: bobthe2lol on April 27, 2008, 03:31:21 AM
Because it seems that i phail at writing nanyything in those files Etc. is there a way to QUICKLY allow a group access to alot of commands? via the console. btw, this is my groups.txt now:
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"_pw"
"ulib_passtime"
"ulib_passtimeout"
"ulx"
"ulx help"
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx hiddenecho"
"ulx spawnecho"
"ulx psay"
"ulx seeasay"
"ulx asay"
"ulx tsay"
"ulx csay"
"ulx thetime"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx menu"
"ulx adminmenu"
"ulx_valueupdate"
"ulx_cvar"
"ulx clientmenu"
"ulx mapsmenu"
"ulx_getgamemodes"
"ulx motd"
"ulx showmotd"
"ulx banmenu"
"ulx_getbans"
"ulx rcon"
"ulx luarun"
"ulx exec"
"ulx cexec"
"ulx ent"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx usermanagementhelp"
"ulx adduser"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx who"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx addforceddownload"
"ulx debuginfo"
"ulx mingekick"
"ulx physgunplayer"
"ulx voteecho"
"ulx vote"
"ulx votemap2"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekick"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx voteban"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx veto"
"ulx votemapaddmap"
"ulx votemap"
"overcomeimmunity"
"ulx explode"
"ulx adduserid"
}
"inherit_from"
{
}
}
"Scout"
{
"deny"
{
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
}
"allow"
{
"ulx strip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx freeze"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx gimp"
"ulx chattime"
"ulx welcomemessage"
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx slap"
"ulx ignite"
"ulx unignite"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"admin"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"gold"
{
"allow"
{
}
"deny"
{
"ulx ban"
"ulx cexec"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx adminmenu"
"ulx banmenu"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx tooldenyoverride"
"ulx veto"
}
"inherit_from"
{
"admin"
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
Thanks for the help.
Title: Re: UTeam - Set teams based on usergroup.
Post by: bobthe2lol on April 27, 2008, 03:56:23 AM
By the way, Uteam is working. I will have to try the prop protection thinger. thanks btw.thanks btw.
EDIT!!:
Crap. I cant spawn props. even adv dupe cant! Please help me! no errors! Just no prop when i click it! agh! helllp!
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on April 27, 2008, 06:28:02 AM
Please don't double post.
You may be posting in the wrong forum.
UTeam has nothing in it (by default) that would prevent you from spawning props.
If you're using UPPL, please post any errors you're getting in the UPPL forum.
If you're using the SVN of UPS, please make sure you have latest SVN of UPS, and restart the server.
Since UPS uses ULib groups.txt, it's likely you've again mis-edited.
To answer your question about groups, there is no real quick way to add mass commands to a group other than using the inherit feature.
Please create a new post in ULX/ULib help and support for assitance if you need it.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Gareth_25 on May 15, 2008, 06:50:31 AM
I've been an avid user of UTeam since it has first appeared and first and foremost big thanks to all for ULX, ULib and UTeam's respective creators and contributors.

However i've come accross a situation where I would like to know whether the following is possible:

Presently we are running on our server the UTime module (bare with me, it gets more relevent) and once a user reaches a certain length of playtime eg, 10, 20, 40, 60 etc. hours, then we upgrade their rank by the ULX adduser command.

Is it possible to have UTeam configured to automatically upgrade the users to the relevent ranks after X amount of time has surpassed, and further more have "rules" for this to occur. Eg to "Start" at user and cycle through 4 or 5 groups to "stop" before moderator?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on May 15, 2008, 03:55:09 PM
Gareth_25, please see a major discussion similiar to your request here. "Linking the two" [http://forums.ulyssesmod.net/index.php/topic,3308.0.html] (http://forums.ulyssesmod.net/index.php/topic,3308.0.html)
No plans (I know of) by Megiddo or SPBogie are currently in the near future for your idea, at least for UTeam and UTime combined.
Perhaps an addon by someone of our community might be released.
I believe someone posted working code in the above link though.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Alex on May 16, 2008, 04:32:05 PM
Hey guys, there's a problem with my Uteam. Sorry if this is the wrong form but I need help. :)
Heres the problem I tried out Uteam thought It was pretty cool, so I wanted to make my own group. Then when I made it it didn't work when I played Gmod. :'(
So heres my Uteam.txt:
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
                        "model"         "combine"
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
                        "model"         "police"
}
"3"
{
"name" "Operators"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
                }
                "4"
                {
                        "name"          "Moterators
                        "group"         "moterator"
                        "color"
                        {
                                "a"             "255"
                                "B"             "255"
                                "g"             "0"
                                "r"             "100"
                        }
                        "model"         "breen"
}
"5"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}
And heres my groups.txt:
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ups_damage"
"ups_vehicle"
"ups_freeze"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups disableplayers"
"ups miscdeletionaccess"
}
"inherit_from"
{
"operator"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
"moterator"
{
        "deny"
        {
        }
        "allow"
        {
                "ulx mute"
                "ulx unmute"
                "ulx gag"
                "ulx ungag"
                "ulx gimp"
                "ulx ungimp"
        }
        "inherit_from"
        {
        }
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
As you see I added the group "moterator". So I hope you help me fix it soon! :) Again sorry if I posted on the wrong form.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on May 16, 2008, 04:43:00 PM
You have to add someone to the group.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Alex on May 16, 2008, 04:47:41 PM
No, the thing is NO PART of Uteam will work, the user, admin, and superadmin won't work. See what I mean?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on May 16, 2008, 05:15:25 PM
How do you know it's not working? There's no normal indication of groups with a normal setup.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Alex on May 16, 2008, 05:23:11 PM
It's not working because It doesn't do the right things, like on the admin team I put the model "police" well all the admin skins are what they choose. Another example is I set that superadmins get 1000 HP 1000 Armor, well guess what It doesn't happen the HP is 100 and Armor is 0. NOW do you get it? BTW I don't mean to sound mad or anything in this post it's just my way of writing.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on May 16, 2008, 05:25:32 PM
You left a quote off of
                       "name"          "Moterators
 
Also, You may have meant 'moderator'
Title: Re: UTeam - Set teams based on usergroup.
Post by: Alex on May 16, 2008, 06:49:29 PM
THANK YOU SOOOOO MUCH!! ;D This solved my problem! What can I do to repay you? Infact do you want admin on my server? I would be happy to give it to you. :)
Again thank you so much.
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on May 16, 2008, 06:53:36 PM
You don't have a closing " on the name of your new group. I can't say how many times I've seen this error throughout our forums.
People, please double check your config files before posting about problems.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on May 16, 2008, 07:04:44 PM
Welcome, and no thanks to admin.
If you feel like giving something, become a donator (single or subscriber). (Not obligated, only if you wish)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Smoot178 on August 19, 2008, 02:41:27 PM
Any ideas why this won't work for the new spacebuild 3?

http://fileshack.us/get_file.php?id=271153&file=tmpMNlFi.jpg
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on August 19, 2008, 07:32:50 PM
Smoot, attach the actual text file IF the following doesn't work. Use the 'additional options' link below post.

As for few ideas;
What isn't working? Get any errors at server startup, or player join, on either server console or players?
1) You have the same gamemode listed several times. I wouldn't think that would confiuse the script, but it's a possibility.
I believe spbogie changed his code so that case sensitivity doesn't matter (Sandbox is same as sandbox)

2) What is the _real_ name of the gamemode according to the server? Do you have that in the list?
I don't remember the console variable to check that. Sorry. sv_gamemode or gamemode.
Heck, from server console, type "find gamemode" and it will surely show.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Smoot178 on August 20, 2008, 10:41:45 AM
It works now.  Apparently the name was reallllyyy long, but someone over at the SB3 forum helped me.

Thanks anyways :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Burlak01 on August 27, 2008, 05:00:38 PM
What did you type in for the new SpaceBuild 3 gamemode?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Sylar on September 01, 2008, 12:19:39 AM
??... When this addon is enabled, the voice communication is blocked by it :-[
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on September 01, 2008, 12:39:33 AM
No it's not. Just enable alltalk.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Sylar on September 01, 2008, 12:43:15 AM
wow sorry
Title: Re: UTeam - Set teams based on usergroup.
Post by: Gareth_25 on September 05, 2008, 03:22:16 AM
What did you type in for the new SpaceBuild 3 gamemode?

As nobody seems to have answered :

The gamemode name in Uteam should be :  "Spacebuild 3: The New Age (Beta)"
Title: Re: UTeam - Set teams based on usergroup.
Post by: Aqua92 on September 17, 2008, 08:24:42 AM
love this addon but i need help... i added with "ulx addgroup "member"" the group member... now i tried to configure with uteam. thats what i typed in

      "6"
      {
         "name"      "Mechanicfuse.com Member"
         "group"      "member"
         "colour"
         {
            "a"      "255"
            "B"      "0"
            "g"      "255"
            "r"      "0"
         }
         "hp"      "150"
         "armor"      "0"
      }

did i something wrong? caus the guys i added has no title... he is not unassigned he is not guest he is not whatever


/EDIT: found my mistake^^ i wrote "colour" instead of "color"
sry for post
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on September 17, 2008, 08:36:09 AM
Darn differences between British English and American English. :P
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 17, 2008, 03:11:41 PM
Darn differences between British English and American English. :P
And hand gestures... never order two pizzas while holding your middle and index finger up with back of hand facing out.
We learned this the hard way on a Church mission trip many years ago.
:)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Sc00by22 on September 20, 2008, 04:57:40 AM
Using this on my new server, thanks guys
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 21, 2008, 08:50:20 AM
Can I get a little help here?  I was using UTeam then I added a few more groups and it stopped work no errors in the server lua error log.
UTeam.txt - forum mess's up the formating a lil
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Super Admin"
"group" "superadmin"
"armor" "2500"
"hp" "2500"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
}
"2"
{
"name" "Admin"
"group" "admin"
"armor" "750"
"hp" "750"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
"model" "breen"
}
"3"
{
"name" "Developer"
"group" "admindev"
"armor" "750"
"hp" "750"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "0"
}
"model" "breen"
}
"4"
{
"name" "Operators"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
}
"5"
{
"name" "Admiral of the Fleet"
"group" "user12"
"color"
{
"a" "255"
"B" "38"
"g" "38"
"r" "255"
}
"model" "super"
}
"6"
{
"name" "Admiral"
"group" "user11"
"color"
{
"a" "255"
"B" "64"
"g" "38"
"r" "255"
}
"model" "combine"
}
"7"
{
"name" "Vice Admiral"
"group" "user10"
"color"
{
"a" "255"
"B" "94"
"g" "38"
"r" "255"
}
"model" "prison"
}
"8"
{
"name" "Rear Admiral"
"group" "user9"
"color"
{
"a" "255"
"B" "94"
"g" "38"
"r" "255"
}
"model" "police"
}
"9"
{
"name" "Commodore"
"group" "user8"
"color"
{
"a" "255"
"B" "147"
"g" "38"
"r" "255"
}
"model" "barney"
}
"10"
{
"name" "Captain"
"group" "user7"
"color"
{
"a" "255"
"B" "255"
"g" "38"
"r" "246"
}
"model" "mossman"
}
"11"
{
"name" "Commander"
"group" "user6"
"color"
{
"a" "255"
"B" "255"
"g" "38"
"r" "197"
}
"model" "female1"
}
"12"
{
"name" "Lieutenant-Commander"
"group" "user5"
"color"
{
"a" "255"
"B" "255"
"g" "38"
"r" "149"
}
"model" "gman"
}
"13"
{
"name" "Lieutenant"
"group" "user4"
"color"
{
"a" "255"
"B" "25"
"g" "38"
"r" "133"
}
"model" "male2"
}
"14"
{
"name" "Sublieutenant"
"group" "user3"
"color"
{
"a" "255"
"B" "255"
"g" "38"
"r" "98"
}
"model" "monk"
}
"15"
{
"name" "Acting Sublieutenant"
"group" "user2"
"color"
{
"a" "255"
"B" "255"
"g" "38"
"r" "72"
}
"model" "male1"
}
"16"
{
"name" "Cheif Petty Officer"
"group" "user1"
"color"
{
"a" "255"
"B" "255"
"g" "38"
"r" "74"
}
"model" "alyx"
}
"17"
{
"name" "Petty Officer
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" ""
}
"model" "eli"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
"3" "Spacebuild 3: The New Age (Beta)"
}
}
groups.txt
Code: [Select]
"ForumMembers"
{
"deny"
{
}
"allow"
{
"ulx votekick"
"ulx voteban"
}
"inherit_from"
{
"user"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
"ulx gban"
"ulx gbanid"
"ulx gunbanid"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx mingekick"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx settitle"
}
"inherit_from"
{
"operator"
}
}
"admindev"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"admin"
}
}
"user13"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user12"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user11"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user10"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user9"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user8"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user9"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user8"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user7"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user6"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user5"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user4"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user3"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user2"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user1"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 21, 2008, 01:57:07 PM
Two quick things I notice. No idea if either will fix.
When creating actual group names for ULX, or editing "group" fields for Uteam., always use lowercase. ForumMembers should be forummembers.
In UTeam.txt "Name" fields, _then_ they can be named any case you like them, but always use lowercase for groups.

In your Uteam.txt file, the 'R' color paramter for the name = Petty officer, group = user area #17 is blank.

Not sure which or if either will correct it, but it's a start.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 21, 2008, 03:30:18 PM
nope didnt fix it  :'(
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 25, 2008, 01:44:02 PM
I'm still stumped.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 25, 2008, 03:18:45 PM
As am I.
Try this... remove/edit all your user#'s inherit from "user" in your groups.txt. This may be scrambling the team inheritance. All players may appear as a user instead of the 'user#'
In ULX by default, every single player that joins inherits user access.
You can see this with our default "operator". An operator has normal user access, but, gets to see the asay wall/mod chat too.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 26, 2008, 01:50:03 PM
I am pretty sure thats not the problem since APromo is still changing groups of people correctly. UTeam just aint loading up. But I shal try anyways - Reporting back soonish.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 27, 2008, 06:23:29 AM
Ok I'm about to do it now. Really this time  ::)

However It is not loading at all because it shows everyone on Team unasigned on the scoreboard.

EDIT:

Nope didnt work.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 27, 2008, 10:27:30 AM
If I had a problem like your having, I'd go back to basics, and add in one or two groups into the UTeam.txt file at a time.
Yes, this is time consuming, but can eventually show where the problem is.
I know of no team number limit, but perhaps you're hitting one.

I'm betting it's some sort of syntax error, perhaps one not truly visible to the naked eye. (I've seen a  tab out of place ruin a text file of tables)
You're not using Word to edit the text files are you? If you don't have Notepad++ or Context or some other true ASCII text editor, use Notepad.
Title: Re: UTeam - Set teams based on usergroup.
Post by: jay209015 on September 27, 2008, 10:47:08 AM
Also when making changes, make sure your saving the Encoding as ANSI.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 28, 2008, 11:29:07 AM
No I'm not stupid I used notepad++ and notepad for another bit ( Was outside with laptop and it doesn't have ++ )
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 28, 2008, 01:05:19 PM
No I'm not stupid

I wasn't trying to say you were, if it sounded like that.
I really don't know why it's not working for you though.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Killers2 on September 28, 2008, 02:07:29 PM
I wasn't trying to say you were, if it sounded like that.
I really don't know why it's not working for you though.
Now I think I am stupid.  :(

I added the operator group twice :/
Title: Re: UTeam - Set teams based on usergroup.
Post by: jay209015 on September 28, 2008, 03:51:23 PM
Quote
Now I think I am stupid.  Sad

I added the operator group twice :/
    - Don't worry about it, we all make mistakes  ;)
Title: Re: UTeam - Set teams based on usergroup.
Post by: TehBigA on October 13, 2008, 01:55:33 PM
Hello! Long time no see. Just had a quick question. I'm currently working on a gamemode and for my own reasons I wanted to embed UTeam into the game mode and make some changes to it. Is that alright with you guys? Giving you credit of course.
Title: Re: UTeam - Set teams based on usergroup.
Post by: deadeye536 on October 28, 2008, 05:55:51 PM
Hey! I'm having a little problem with UTeam and everyone showing up as unassigned. I have tried a few things as you can see on the UTeam.txt file that i put about 17 case possibilities for Sandbox gamemode. Also, I have tried the UTeam.lua file in 2 locations, /lua/autorun (what the readme said) and /addons/ULib/lua/autorun (noticed the similarity in folder names).

UTeam.txt
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Teh Leader"
"group" "superadmin"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "0"
}
"model" "gman"
}
"2"
{
"name" "Head Admins"
"group" "admin"
"armor" "1336"
"hp" "1336"
"color"
{
"a" "255"
"B" "65"
"g" "28"
"r" "161"
}
"model" "super"
}
"3"
{
"name" "Admins"
"group" "nysa"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "196"
"g" "0"
"r" "111"
{
"model" "Combine"
}
"4"
{
"name" "Community Members"
"group" "member"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "police"
}
"5"
{
"name" "VIP members"
"group" "operator"
"armor" "300"
"hp" "300"
"color"
{
"a" "255"
"B" "200"
"g" "0"
"r" "0"
}
"model" "monk"
}
"6"
{
"name" "Guests"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
"3" "sandbox"
"4" "SANDBOX"
"5" "SandBox"
"6" "sandBox"
"7" "SAndbox"
"8" "SANdbox"
"9" "SANDbox"
"10" "SANDBox"
"11" "SANDBOx"
"12" "sANDBOX"
"13" "saNDBOX"
"14" "sanDBOX"
"15" "sandBOX"
"15" "sandbOX"
"16" "sandboX"
"17" "sAndbox"
"18" "saNdbox"
}
}

and my groups.txt file
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx nomusic"
}
"inherit_from"
{
"operator"
}
}
"nysa"
{
"deny"
{
"ulx tooldeny"
"ulx toolallow"
"ulx exec"
}
"allow"
{
}
"inherit_from"
{
"admin"
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx cloak"
"ulx uncloak"
"ulx slay"
"ulx seeasay"
"ulx noclip"
}
"inherit_from"
{
"operator"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx goto"
"ulx god"
"ulx ungod"
}
"inherit_from"
{
"user"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx music"
"ulx musicurl"
"ulx musicstop"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"ulx nomusicme"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
"ulx music"
"ulx musicurl"
"ulx musicstop"
}
"inherit_from"
{
}
}

Just a note, I have a radio plugiin installed, 1.FM.
Thanks in advanced for any support!
DeaDeye
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 28, 2008, 06:24:49 PM
Group 3/Admins/nysa of Uteam.txt, after colors... instead of closing table bracket }, you have another open {

(I found this using a text editor that checks any specified closing tags. It highlights beginning and end tags - I recommend one for editing such code/config files :) )
Title: Re: UTeam - Set teams based on usergroup.
Post by: deadeye536 on October 28, 2008, 07:23:28 PM
Thanks, that did the trick! All this time it was a little error such as that  :( Well, at least it works now.
Also, I used to have something like that for PY, but that is all it supports, I'll look into Notepad ++ :)
Again, Thanks
DeaDeye
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 28, 2008, 08:49:02 PM
I use Context, it has a Lua plugin. I think some have written Gmod + Lua plugins for Notepad++, if you're so inclined to get them.
Search our forum for the Notepad++ addin. I know it's been mentioned somewhere here.
Back on topic - Syntax - an editors worst nightmare.
You're welcome. And welcome to Ulyssesmod forums.
Hope you enjoy other fine Ulysses (and community) products.
Title: Re: UTeam - Set teams based on usergroup.
Post by: RynO-SauruS on November 04, 2008, 08:52:00 PM
Hi, the download link isn't working. Can someone please re-upload this? I want this so badly.  :(
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on November 05, 2008, 04:00:26 PM
Hi, the download link isn't working. Can someone please re-upload this? I want this so badly.  :(
Apparently Megiddo missed some file restores when we switched hosts. Unfortunately, he's out until next Sunday.
He may be able to restore it then if the file is still available in a backup somewhere.

If not, we'll have to wait until Spbogie can repost or attach it to the thread. (I just looked for it in my collection and can't find it unedited)
Title: Re: UTeam - Set teams based on usergroup.
Post by: RynO-SauruS on November 05, 2008, 04:04:28 PM
Ok, thanks.  ;)


EDIT: Does anyone know of some place I could download this from? If somebody has it already, maybe you could attach the original UTeam 1.1 archive to your post? I would appreciate it very much.

EDIT 2: Oh yes hallelujah:
                                             (http://www.garrysmod.org/img/?t=dll&id=39818) (http://www.garrysmod.org/downloads/?a=view&id=39818)
Title: Re: UTeam - Set teams based on usergroup.
Post by: jay209015 on November 05, 2008, 04:55:10 PM
All I have is UTeam v1.1 in addon format, I'm sure that's not a problem though :D
Title: Re: UTeam - Set teams based on usergroup.
Post by: RynO-SauruS on November 05, 2008, 05:04:09 PM
Thanks.  ;)
Title: Re: UTeam - Set teams based on usergroup.
Post by: hypermx on December 26, 2008, 03:05:35 PM
Hey guys at Ulysses.

I have a problem that it just says unassigned when i am on my server.

Uteam.txt:
Code: [Select]
"Out"
{
"teams"
{
"1"

"name" "ServerOwner"
"group" "serverowner"
"color"
{
"r" "0"
"g" "0"
"b" "0"
"a" "200"
}
"hp" "1337"
"armor" "1337"
"model" "combine"
}
"2"
{
"name" "SuperAdmin"
"group" "superadmin"
"color"
{
"r" "203"
"g" "0"
"b" "0"
"a" "255"
}
"hp" "700"
"armor" "700"
"model" "police"
}
"3"
{
"name" "Admin"
"group" "admin"
"color"
{
"r" "0"
"g" "148"
"b" "189"
"a" "255"
}
"hp" "500"
"armor" "500"
"model" "prison"
}
"4"
{
"name" "RegularPlayer"
"group" "rplayer"
"color"
{
"r" "64"
"g" "173"
"b" "38"
"a" "255"
}
"hp" "200"
"armor" "200"
"model" "gman"
}
"5"
{
"name" "Guest"
"group" "guest"
"color"
{
"r" "0"
"g" "203"
"b" "0"
"a" "255"
}
"hp" "100"
"armor" "100"
"model" "kleiner"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}

and my groups.txt

Code: [Select]
"serverowner"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"superadmin"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"rplayer"
{
"deny"
}
{
"allow"
{
"ulx votekick"
"ulx voteban"
}
"inherit_from"
{
"user"
}
}

"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}

I hope you guys/girls ( :p ) can fix this, cause i can't. :/

EDIT1: FIXED :D - were missing a { in 1 admin group :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 26, 2008, 04:47:57 PM
Hey guys at Ulysses.

I have a problem that it just says unassigned when i am on my server.
Code: [Select]
}
} //<------------------------------ THiS one
"gamemodes"
{
"1" "Sandbox"
}
}

I didn't check anything else, but you have one extra closing bracket that isn't needed above gamemodes.
Get rid of that. Restart. Try again. If that doesn't help, make sure no other brackets or quotes are added or missing within both files.
Title: Re: UTeam - Set teams based on usergroup.
Post by: DiscoBiscuit on December 30, 2008, 07:38:59 PM
The addon works fine, but the Uteams.txt is REALLY picky.
I had to edit like 6 of my friends files for them :P
Title: Re: UTeam - Set teams based on usergroup.
Post by: fabendog on February 12, 2009, 06:42:07 PM
Hey i got uteam not to long ago...  But I have all my coding and yadayada right. On the scoreboard it shows what ranks people are. but the peoples names when they type is invisible.. any ideas?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Hardy on February 12, 2009, 07:01:47 PM
I have one bug with that. For example - i have "mingebag" group on server. I need it to be after "user" group in scoreboard(SUI). But if i put it after in UTeam.txt - mingebag still staying as user. If above - mingebag going above in scoreboard too - it's don't right :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on February 12, 2009, 07:48:56 PM
Sounds like you have 'a' of the rgba colors too low. a = Alpha = visibility.
Set the a's to 200 to 255 ... should then be able to see.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Hardy on February 12, 2009, 09:50:13 PM
No, i mean: usergroups UNDER "user" not parsed. At all.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 13, 2009, 07:11:12 AM
Does this work with a gamemode such as DarkRP? I want it so that the admins get the following in their Job in the scoreboard: <Rank/UTeam> <Job>
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on February 13, 2009, 09:13:14 AM
Hardy,
That's all working as it's supposed to. uesr is the "catch-all" group as every person connected to the server is a member of group "user", and every group inherits from it, thus anything below it on the list will never be reached. The usergroup system was never meant for demoting players. You can still make this work, but you'd have to modify the code for either UTeam or sui_scoreboard to let it sort differently.

Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 13, 2009, 01:19:31 PM
Was that a answer on my post? Also I am good at lua but more in the way of modifying SWEPS and Gamemodes or write simple things in groups.txt, can one of you guys make it work?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 14, 2009, 01:23:57 PM
Well?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on February 14, 2009, 01:34:49 PM
Mastermind, UTeam has no direct control over scoreboard appearance.
You'd have to have a custom written scoreboard for DarkRP to show the job and team name.
UTeam only ties team names into ULib groups, and can control how the player's text, health, speed and model appear depending on that team.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 15, 2009, 12:50:59 AM
Okay, thanks for the information!
Now a official Reqeust by a hardcore Ulysses fan:

Can you make this for me? I am sure you can because the WHOLE Ulysses is brilliant! (I almost have everything from Ulysses on my server!)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 17, 2009, 12:40:50 PM
I geuss not then....  :(
Title: Re: UTeam - Set teams based on usergroup.
Post by: MrPresident on February 17, 2009, 06:25:40 PM
May I suggest...

http://forums.ulyssesmod.net/index.php/topic,1118.0.html

This is pretty much the scoreboard of choice for UTeam users.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on February 17, 2009, 07:15:30 PM
He's wanting custom scoreboard that no one here really have time (or want) to do.
He wants to incorporate RP jobs.
Personally, with as many scoreboards that have been released here by community members (3?), I don't think it would be difficult for him to look at the code for the different columns and make his own.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 18, 2009, 07:19:38 AM
I olny can modify Gamemode's and SWEPS, I have no idea of other lua things. (and when I modify something, it usually doesn't work!)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mastermind1996 on February 20, 2009, 11:32:23 AM
So are ya gonna to help or not?  :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Darkflamer on March 09, 2009, 11:20:43 AM
Hello dear ULX-team.

I am a regular user of your incredibly amazing script, and I have been using it since Garrysmod Nine. This script has helped me and the players on my server a lot.

The reason as to why I am posting here on your forums, is that I need help with this script (Uteam).
Every time I boot up my server and join, it seems that I'm always placed in the usergroup "Unassigned". Now, I do realize that this exact thing has happened to many other players (I read the whole thread before posting), but as far as I'm concerned this isn't due to missing brackets / excessive use of brackets.

This is my Uteam.txt file and my groups.txt file (garrysmod/data/Ulib/groups.txt). Both the UTeam.txt and the UTeam.lua files placed accordingly to the readme.txt found in the downloaded zip-folder.


Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx spectate"
"ulx mingekick"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx physgunplayer"
}
"inherit_from"
{
"operator"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx slay"
"ulx showmotd"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx banmenu"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx vote"
"ulx veto"
}
"inherit_from"
{
"user"
}
}
"respected"
{
"deny"
{
}
"allow"
{
"ulx noclip"
"ulx reservedslots"
"ulx seeasay"
}
"inherit_from"
{
"member"
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx votemap"
}
"inherit_from"
{
"user"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}

Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Super Admins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"3"
{
"name" "Operators"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
}
"4"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild3"
}
}



I would really appreciate if you helped me with this.

I already condumped the server-console and it had no errors with the string UTeam in it.


- Thanks in advance for any time you were to spend on my problem.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on March 09, 2009, 12:13:55 PM
So you have the correct powers to your rank, just not the correct team placement?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Darkflamer on March 09, 2009, 12:17:10 PM
So you have the correct powers to your rank, just not the correct team placement?

Nope, nothing. No colors, no health bonus, no sprint. No nothing :/...
Which really is a shame, because I think the possibilities with this script are endless.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Darkflamer on March 10, 2009, 09:08:24 AM
Not sure as what to do, I've used notepad++ to count the brackets, and both come up to the same number.
Also, bump I guess....
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on March 10, 2009, 03:19:09 PM
Darkflame, what Megiddo meant by 'powers in rank'... the admin group you're a part of, do you have access to do it's commands? That is, does ULib see you as part of that group (which translates to a team)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Darkflamer on March 11, 2009, 02:40:08 AM
Darkflame, what Megiddo meant by 'powers in rank'... the admin group you're a part of, do you have access to do it's commands? That is, does ULib see you as part of that group (which translates to a team)


Yeah, I do. ULib registers me as a superadmin. I have access to all the commands from ulx.
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 21, 2009, 06:51:25 PM
This may be a bit difficult to accomplish if it's a dedicated server, but could you get the output from lua_run PrintTable( UTeam ) on the server?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Corvx on March 23, 2009, 06:38:51 PM
I've got the same problem as Darkflamer and I typed "rcon lua_run PrintTable( UTeam )" into console and got this output:

> PrintTable ( UTeam )...
includes\util.lua:21: bad argument #1 to 'pairs' (table expected, got nil)


also I've got the ulib downloaded from svn and is at revision: 25

Hope it helps...
Title: Re: UTeam - Set teams based on usergroup.
Post by: spbogie on March 24, 2009, 05:54:59 AM
Corvx,
The script is never being run. Make sure you have UTeam.lua in the correct location. If so, try running it manually with rcon lua_openscript autorun/UTeam.lua.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Corvx on March 24, 2009, 04:33:48 PM
Okay I had the lua file in the wrong place, it's working now. Thank you.
Title: Re: UTeam - Set teams based on usergroup.
Post by: fabendog on March 28, 2009, 10:05:15 PM
Ok, so my server got messed up. The company that I rent the server from has to reinstall everything to the server. When I added uteam and sui_scoreboard to my server. They weren't working. I've spent all day trying to fix it.
Help would be awesome.
I put sui_scoreboard in the addons folder
I put uteam.lua in lua/autorun
and I put uteam.txt in data
The scoreboard doesn't even change from the default one when you first start gmod.
And when I talk the color isn't what I set it as in uteam.txt.... anyone help pl0x???
UTEAM ROX
Title: Re: UTeam - Set teams based on usergroup.
Post by: ahref on March 29, 2009, 04:50:50 AM
its update 61 from garry it brakes a few things wait for 62
Title: Re: UTeam - Set teams based on usergroup.
Post by: fabendog on March 29, 2009, 07:55:46 AM
And how long should I wait for 62?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on March 29, 2009, 08:50:23 AM
Fabendog, we have no idea. We don't make Gmod.
That's the patch # he's referring to.
Title: Re: UTeam - Set teams based on usergroup.
Post by: ahref on March 29, 2009, 10:05:35 AM
try:

http://www.facepunch.com/showthread.php?t=716917
Title: Re: UTeam - Set teams based on usergroup.
Post by: fabendog on March 29, 2009, 05:53:51 PM
Can someone check this for me?
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Server Owner"
"group" "serverowner"
"armor" "50000"
"hp" "50000"
"color"
{
"a" "255"
"B" "236"
"g" "236"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Co-Owners"
"group" "coowner"
"armor" "25000"
"hp" "25000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
}
"3"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "10000"
"hp" "10000"
"color"
{
"a" "255"
"B" "0"
"g" "128"
"r" "255"
}
}
"4"
{
"name" "Admins"
"group" "admin"
                                                        "armor"                        "5000"
                                                        "hp"                              "5000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
                                                        }
                                     }
                                     "5"
                                     {
                                                        "name"                        "Trusted"
                                                        "group"                        "trusted"
                                                        "armor"                        "1000"
                                                        "hp"                              "1000"
                                                        "color"             
                                                        {
                                                                           "a"                                 "255
                                                                           "B"                                 "6"
                                                                           "g"                                 "237"
                                                                           "r"                                  "249"
                                                        }
                                     }
                                     "6"
                                     {
                                                        "name"                        "Regular"
                                                        "group"                        "regular"
                                                        "armor"                        "500"
                                                        "hp"                              "500"
"color"
                                                        {
                                                                           "a"                                  "255"
                                                                           "B"                                  "0"
                                                                           "g"                                  "255"
                                                                           "r"                                   "0"
                                                        }
                                     }
                                     "7"
                                     {
                                                        "name"                        "Player"
                                                        "group"                        "user"
                                                        "color"
                                                        {
                                                                           "a"                                  "255"
                                                                           "B"                                  "255"
                                                                           "g"                                  "0"
                                                                           "r"                                   "0"
                                                        }
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}


and



Code: [Select]
"serverowner"
{
                  "deny"
                  {
                  }
                  "allow"
                  {
                                     "ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
                  }
                  "inherit_from"
                  {
                                      "coowner"
                  }
}
"coowner"
{
                  "deny"
                  {
                  }
                  "allow"
                  {
                                     "ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
                  }
                  "inherit_from"
                  {
                                     "superadmin"
                  }
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx nomusic"
}
"deny"
{
"ulx musicurl"
}
}
"trusted"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"ulx nomusicme"
                                     "ulx teleport"
                                     "ulx goto"
                  }
"inherit_from"
{
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
"ulx nomusicme"
}
"inherit_from"
{
}
}
"none"
{
                  "deny"
                  {
                  }
                  "allow"
                  {
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
"ulx music"
"ulx musicurl"
"ulx musicstop"
}
"inherit_from"
{
}
}
Title: Re: UTeam - Set teams based on usergroup.
Post by: MegaDrewb on July 05, 2009, 06:45:28 PM
I also would like this checked. For some reason when i coded my custom groups the whole Uteam stopped working. Could someone tell me if the data file is wrong? Sorry this is one of the first times ive used this forum and have NO idea how to do the scroll through forum coding. If someone would tell me I would be happy to edit this post!
"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "Owner"
         "group"      "owner"
         "color"
         {
            "a'      "255"
            "B"      "0"
            "g"      "255"
            "r"      "0"
         }
      }
      "2"
      {
         "name"      "SuperAdmins"
         "group"      "superadmin"
         "armor"      "1000"
         "hp"      "1000"
         "color"
         {
            "a"      "255"
            "B"      "85"
            "g"      "200"
            "r"      "0"
         }
         "plytable"
         {
            "1"      "SprintSpeed:1000"
            "2"      "WalkSpeed:500"
         }
      }
      "3"
      {
         "name"      "Admins"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "50"
            "r"      "255"
         }
      }
      "4"
      {
         "name"      "Moderators"
         "group"      "moderator"
         "armor"      "200"
         "hp"      "200"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "200"
            "r"      "255"
         }
      }
      "5"
      {
         "name"      "Respected"
         "group"      "respected"
         "armor"    "100"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "255"
            "r"      "255"
         }
      }
      "6"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
         "model"      "male2"
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on July 05, 2009, 09:24:03 PM
Megadrewb, do you have the custom ULib groups called "owner", "moderator" and "respected" added by editing gmod/settings/users.txt or by adding them using ulx addgroup?
As for a better way of adding in that much text, use the
Code: [Select]
code tag.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Zonic on July 06, 2009, 10:53:27 AM
Having some problems with UTeam, hope you guys can help.
Server up. Blah. All good. I set myself to superadmin with rcon ulx commands. That works, have all my admin power and such. Health isn't set to the values defined in the default UTeam.txt though. No speed increase or anything either. Sui_scoreboard also shows everyone as "unassigned", including me. I don't see the problem, the script runs.. (I used "rcon lua_openscript autorun/UTeam.lua" in the console, no help)

What'd I do?
Title: Re: UTeam - Set teams based on usergroup.
Post by: lavacano201014 on July 06, 2009, 11:27:32 AM
Is sui_scoreboard installed serverside? That might be an issue.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Zonic on July 09, 2009, 08:53:45 PM
Of course it is. That's where I had to install it, right?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on July 10, 2009, 03:06:46 PM
Yes.
Please attach your uteam config text here (using "Additional options" at lower left of your reply post)
Most times, syntax errors in the editing of the Uteam config file cause issues like you're having.
Missing quotes, case sensitivity of groups, misspelled groups, missing brackets. One or more too many brackets. Etc.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Euphytose on July 17, 2009, 10:16:07 PM
I bump this thread with a sort of request.

Can someone post here great 255 values for colors. I put superadmins in red, admins in blue, and miniadmins in green, also players are yellow, but there are so many different reds, blues, greens, and yellows.

So, could someone here post great values I can use ?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on July 17, 2009, 10:42:56 PM
http://html-color-codes.com/rgb.html :D
Title: Re: UTeam - Set teams based on usergroup.
Post by: Euphytose on July 18, 2009, 07:45:25 AM
http://html-color-codes.com/rgb.html :D

Ah thanks, I found some websites like that, but not really complete, THIS is complete.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Euphytose on July 18, 2009, 05:17:25 PM
Hello again,

This time, I need your help for " grades ", from member to the highest.

I don't know them because I'm not English/American, and I want to set them in English.

So, can someone post here the lowest grade after " players " to the highest, just before " admins " ?

Thanks in advance.

I would begin with :

Players;Builders;Respected;Highly Respected;Member;Bronze Member;Silver Member; Gold Member;Platinum Member;Hero Member

But I know there are some grades before and after them.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on July 18, 2009, 09:05:10 PM
I do not know where you are getting your 'group' names from.
ULib, by default, only comes with 4.
Highest to lowest they are
superadmin
admin
operator
user

You can name those 4 groups any team name you wish
Example;
superadmin = Elite
admin = Jr Elite
operator = Special
user = Player
If you create custom groups, you have to place them in the order you wish.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Euphytose on July 19, 2009, 10:56:59 AM
I do not know where you are getting your 'group' names from.
ULib, by default, only comes with 4.
Highest to lowest they are
superadmin
admin
operator
user

You can name those 4 groups any team name you wish
Example;
superadmin = Elite
admin = Jr Elite
operator = Special
user = Player
If you create custom groups, you have to place them in the order you wish.

Yeah, I know that, I was talking about the fact of creating new groups. :)

But, anyway, it's solved, I set lots of groups I have listed above. And with the " AutoPromote " plugin it's really awesome.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mouton on August 28, 2009, 12:25:54 AM
Im in despair , please if someone can help me it would be very nice
there is my Uteam.txt :
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Fondateur"
"group" "romain"
"armor" "5000"
"hp" "5000"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:2000"
"2" "WalkSpeed:250"
}
}
"2"
{
"name" "Mechant Admin"
"group" "superadmin"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "35"
"g" "35"
"r" "139"
}
"plytable"
{
"1" "SprintSpeed:2000"
"2" "WalkSpeed:200"
}
}
"3"
{
"name" "Admin"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "29"
"g" "102"
"r" "205"
}
}
"4"
{
"name" "Donnateur"
"group" "donnateur"
"armor" "400"
"hp" "400"
"color"
{
"a" "255"
"B" "79"
"g" "165"
"r" "255"
}
}
"5"
{
"name" "Membre V.I.P."
"group" "vip"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "207"
"g" "207"
"r" "207"
}
"6"
{
"name" "Membre"
"group" "membre"
"armor" "150"
"hp" "150"
"color"
{
"a" "255"
"B" "222"
"g" "296"
"r" "176 "
}
}
"7"
{
"name" "Joueurs"
"group" "user"
"color"
{
"a" "255"
"B" "205"
"g" "197"
"r" "122"
}
}
"8"
{
"name" "Bug."
"group" "operator"
"color"
{
"a" "255"
"B" "255"
"g" "255"
"r" "255"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}
And also my groups.txt from ulx
Code: [Select]
"romain"
{
"deny"
{
}
"allow"
{
"ulx spawnecho"
}
"inherit_from"
{
"superadmin"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx cvar"
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
"ulx hiddenecho"
"ulx rcon"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx welcomemessage"
"overcomeimmunity"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx gag"
"ulx chattime"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx playsound"
"ulx freeze"
"ulx noclip"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx jail"
"ulx ghost"
"ulx ragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx bring"
"ulx goto"
"ulx send"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx voteban"
"ulx veto"
"ups_damage"
"ups_vehicle"
"ups_freeze"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups disableplayers"
"ups miscdeletionaccess"
}
"inherit_from"
{
"donnateur"
}
}
"donnateur"
{
"deny"
{
}
"allow"
{
"ulx hp"
"ulx unfreeze"
"ulx unragdoll"
"ulx unblind"
"ulx ungimp"
"ulx unmute"
"ulx ungag"
"ulx unjail"
"ulx unignite"
"ulx unghost"
"ulx votekick"
"ulx slay"
}
"inherit_from"
{
"vip"
}
}
"vip"
{
"deny"
{
}
"allow"
{
"ulx teleport"
"ulx god"
"ulx ungod"
}
"inherit_from"
{
"membre"
}
}
"membre"
{
"deny"
{
}
"allow"
{
"ulx armor"
}
"inherit_from"
{
"user"
}
}

"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"user"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
"membre"
}
}
Edit : I forgot to post the error that I have when I try to launch it manually , there it is ->
Code: [Select]
Running script autorun/UTeam.lua...
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
Out, teams, 1,
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
Out, 2, 139, (*plytable*),
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
5, 6, 176 , (*plytable*),
KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file In
7, 122, (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*7*), (*122*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*7*), (*122*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*7*), (*122*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*operator*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*operator*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*operator*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*none*), (*r*), (*6*), (*176 *), (*plytable*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*gamemodes*), (*1*), (*6*), (*176 *), (*plytable*),
L 08/28/2009 - 10:25:21: Lua Error: autorun/UTeam.lua:21: table index is nil
autorun/UTeam.lua:21: table index is nil
Title: Re: UTeam - Set teams based on usergroup.
Post by: Euphytose on August 28, 2009, 04:10:31 AM
Code: [Select]
"5"
      {
         "name"      "Membre V.I.P."
         "group"      "vip"
         "armor"      "200"
         "hp"      "200"
         "color"
         {
            "a"      "255"
            "B"      "207"
            "g"      "207"
            "r"      "207"
         }
      "6"
      {
         "name"      "Membre"
         "group"      "membre"
         "armor"      "150"
         "hp"      "150"
         "color"
         {
            "a"      "255"
            "B"      "222"
            "g"      "296"
            "r"      "176 "
         }
      }

T'as pas l'impression d'avoir oublié un truc ?  :)

Au dessus du 6, t'as oublié un }.

Si c'est pas ça, je vois pas, mais la plupart du temps ce sont des erreurs d'inattention comme celle-ci.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mouton on August 28, 2009, 04:42:57 AM
Ah ouai merci , mais ça déconne toujours :/.
He told me that I forgot a } before the 6 , but I'm always having a problem.
Edit : I set 296 for the green value at member instead 196 >.<
And I've forgotten a lot of time to insert
Code: [Select]
"color" before the color's values
Title: Re: UTeam - Set teams based on usergroup.
Post by: Euphytose on August 28, 2009, 05:00:02 AM
Code: [Select]
"6"
      {
         "name"      "Membre"
         "group"      "membre"
         "armor"      "150"
         "hp"      "150"
         {
            "a"      "255"
            "B"      "222"
            "g"      "296"
            "r"      "176"

Décidément...  ::)

Regarde, t'as "g" "296", t'as pas un peu oublié que c'était limité à 255 ?  ;D

Rooh, faudrait vraiment penser à regarder le code de l'erreur, même moi qui possède 3 de moyenne en maths je peux comprendre. :D

Regarde :

Code: [Select]
}
      "7"
      {
         "name"      "Joueurs"
         "group"      "user"
         {
            "a"      "255"
            "B"      "205"
            "g"      "197"
            "r"      "122"
         }
      }

T'as oublié le "color".

En fait t'as oublié le color un peu partout, regarde bien, pour ton truc admin aussi etc... Normal que ça bug. :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Mouton on August 28, 2009, 05:35:39 AM
Ah ouai merde merci :s
Title: Re: UTeam - Set teams based on usergroup.
Post by: EggNoggin on September 12, 2009, 07:15:59 PM
More valid playermodels plox?  ;D
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 12, 2009, 08:51:12 PM
Eggnoggin, UTeam doesn't control what player models are valid; a Gmod lua function within it does.
See http://wiki.garrysmod.com/?title=Player_manager.TranslatePlayerModel for the list the original UTeam used.
I've no idea when that list was last updated at the Gmod wiki, but the wiki actually has 4 more than the readme file.

However, just to do a bit more digging for you or anyone else that wanted more models, you may want to look at Garry's actual code. The translation table is listed here;
http://luabin.foszor.com/code/lua/includes/modules/player_manager.lua#46

It has more than both the wiki and the UTeam readme file have.


Title: Re: UTeam - Set teams based on usergroup.
Post by: BradNowacki on September 21, 2009, 01:58:26 PM
Mine isent working here is my files but i get a uteam lus error and no one has a team or rights its like lua 68 i think

My Uteam File

Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Owner"
"group" "owner"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "204"
"g" "0"
"r" "51"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"3"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "0"
"g" "204"
"r" "51"
}
}
"4"
{
"name" "UltraMember"
"group" "ultramember"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "102"
}
}
"5"
{
"name" "SuperMember"
"group" "supermember"
"color"
"armor" "100"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
}
"6"
{
"name" "Member"
"group" "member"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "0"
}
}
"7"
{
"name" "Regular"
"group" "regular"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "102"
}
}
"8"
{
"name" "Player"
"group" "player"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "204"
}
}
"9"
{
"name" "Noob"
"group" "noob"
"color"
{
"a" "225"
"B" "255"
"g" "255"
"r" "51"
}
}
"10"
{
"name" "User"
"group" "user"
"color"
{
"a" "225"
"B" "255"
"g" "255"
"r" "255"
}
}
}
"gamemodes"
{
"1" "sandbox"
}
}

My Group File

Code: [Select]
"owner"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
{
"operator"
}
}
"ultramember"
{
"deny"
{
}
"allow"
{
"ulx goto"
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"supermember"
{
"deny"
{
}
"allow"
{
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"regular"
{
"deny"
{
}
"allow"
{
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"player"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"noob"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"none"
{
"deny"
{
}
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
{
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}

My User File

Code: [Select]
"BradNowacki"
{
"id" "STEAM_0:0:22061836"
"type" "steamid"
"pass" """
"pass_req" "0"
"groups"
{
"owner"
}
"allow"
{
}
"deny"
{
}
}

Whats wrong
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on September 21, 2009, 02:34:45 PM
Where did you place the uteam.lua and uteam.txt files? What version of ULX/ULib are you running? The official release or SVN?
Title: Re: UTeam - Set teams based on usergroup.
Post by: BradNowacki on September 21, 2009, 02:45:04 PM
its offical releace i need to re svn it so im going to try that right now thanks for reminding me and i have the Txt file placed in the right folder and my luz in hte right folder when i try it with my orignal uteam.txt file it works i dont have the right user rights still but i get a team as player
Title: Re: UTeam - Set teams based on usergroup.
Post by: BradNowacki on September 21, 2009, 03:00:03 PM
ok new files

Uteam in my data folder

Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Owner"
"group" "owner"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "204"
"g" "0"
"r" "51"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"3"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "0"
"g" "204"
"r" "51"
}
}
"4"
{
"name" "UltraMember"
"group" "ultramember"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "102"
}
}
"5"
{
"name" "SuperMember"
"group" "supermember"
"color"
"armor" "100"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
}
"6"
{
"name" "Member"
"group" "member"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "0"
}
}
"7"
{
"name" "Regular"
"group" "regular"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "102"
}
}
"8"
{
"name" "Player"
"group" "player"
"color"
{
"a" "225"
"B" "153"
"g" "0"
"r" "204"
}
}
"9"
{
"name" "Noob"
"group" "noob"
"color"
{
"a" "225"
"B" "255"
"g" "255"
"r" "51"
}
}
"10"
{
"name" "User"
"group" "user"
"color"
{
"a" "225"
"B" "255"
"g" "255"
"r" "255"
}
}
}
"gamemodes"
{
"1" "sandbox"
}
}

Ulib user file

Code: [Select]
"STEAM_0:0:22061836"
{
"group" "owner"
"allow"
{
}
"deny"
{
}
}

and my new grp file

Code: [Select]
"owner"
{
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from" "admin"
}
"superadmin"
{
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"inherit_from" "admin"
}
"admin"
{
"allow"
{
"ulib_passtime"
"ulib_passtimeout"
"ulx spawnecho"
"ulx tsay"
"ulx csay"
"ulx gimp"
"ulx mute"
"ulx ungimp"
"ulx unmute"
"ulx gag"
"ulx ungag"
"ulx chattime"
"ulx welcomemessage"
"ulx slap"
"ulx whip"
"ulx slay"
"ulx sslay"
"ulx ignite"
"ulx unignite"
"ulx playsound"
"ulx freeze"
"ulx unfreeze"
"ulx god"
"ulx ungod"
"ulx noclip"
"ulx hp"
"ulx armor"
"ulx cloak"
"ulx uncloak"
"ulx blind"
"ulx unblind"
"ulx jail"
"ulx unjail"
"ulx ghost"
"ulx unghost"
"ulx ragdoll"
"ulx unragdoll"
"ulx maul"
"ulx strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx exec"
"ulx rslotsmode"
"ulx rslots"
"ulx rslotsvisible"
"ulx reservedslots"
"ulx bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx tooldeny"
"ulx toolallow"
"ulx tooldenyuser"
"ulx toolallowuser"
"ulx tooldenyoverride"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
}
"ultramember"
{
"allow"
{
"ulx goto"
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
{
}
}
"supermember"
{
"allow"
{
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
}
"member"
{
"allow"
{
"ulx uncloak"
"ulx cloak"
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
}
"regular"
{
"allow"
{
"ulx ragdoll"
"ulx unragdoll"
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
}
"player"
{
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
}
"noob"
{
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
}
"user"
{
"allow"
{
"ulx"
"ulx help"
"ulx psay"
"ulx asay"
"ulx thetime"
"ulx menu"
"ulx_valueupdate"
"ulx_cvar"
"ulx_getgamemodes"
"ulx motd"
"ulx_getbans"
"ulx usermanagementhelp"
"ulx who"
"ulx votemap"
}
"inherit_from"
}
"none"
{
"allow"
{
"ulx logecho"
"ulx logfile"
"ulx logevents"
"ulx logchat"
"ulx logspawns"
"ulx logspawnsecho"
"ulx logdir"
"ulx addgimpsay"
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx debuginfo"
"ulx voteecho"
"ulx votemap2successratio"
"ulx votemap2minvotes"
"ulx votekicksuccessratio"
"ulx votekickminvotes"
"ulx votebansuccessratio"
"ulx votebanminvotes"
"ulx votemapenabled"
"ulx votemapmintime"
"ulx votemapwaittime"
"ulx votemapsuccessratio"
"ulx votemapminvotes"
"ulx votemapvetotime"
"ulx votemapmapmode"
"ulx votemapaddmap"
}
"inherit_from"
}

*fix* I put spaces between each one in my group file
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on September 21, 2009, 03:02:18 PM
Just a warning, the current SVN revision is in flux right now and being ported over to a new command system. Some things do not currently function yet and any third-party ULX modules will need to be updated.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on September 21, 2009, 03:07:31 PM
Just a warning, the current SVN version is in flux right now and being ported over to a new command system. Some things do not currently function yet and any third-party ULX modules will need to be updated.

This is not a ULX module, Sparky. :)
Title: Re: UTeam - Set teams based on usergroup.
Post by: BradNowacki on September 21, 2009, 03:08:26 PM
well the svn lets my groups pop up so thats good i still get the uteam lua error UteamSetupteam 68 but the teams work i jsut cant use my commands
Title: Re: UTeam - Set teams based on usergroup.
Post by: atomicspark on September 21, 2009, 06:46:54 PM
This is not a ULX module, Sparky. :)

He said he was going to switch to the SVN release of ULX/ULib! It was simply a warning. :P
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 21, 2009, 07:25:49 PM
Team 5 - don't place armor in color
(Wait, deja' vu'! )
Title: Re: UTeam - Set teams based on usergroup.
Post by: piggy on September 27, 2009, 06:21:15 PM
Hi,

I'm just setting this up and was wondering if there is a way to set a per group prop limit.

i.e

group 1 can spawn 50  props
group 2 can spawn 100 props
group 3 can spawn 150 props

And maybe make this possible for the other sbox values on the server ?
Title: Re: UTeam - Set teams based on usergroup.
Post by: jay209015 on September 27, 2009, 07:30:21 PM
Quote
group 1 can spawn 50  props
group 2 can spawn 100 props
group 3 can spawn 150 props

URestrict (http://forums.ulyssesmod.net/index.php/topic,3680.0.html) and UnoLimited (http://forums.ulyssesmod.net/index.php/topic,3864.0.html)
Title: Teams help
Post by: mrm on October 03, 2009, 12:47:24 PM
Hello, I have uteam installed on my server, and for the most part it works well, but it doesnt want to work with some groups. Any help would be greatly appreciated
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "UberAdmin"
"group" "uberadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "51"
"g" "255"
"r" "102"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "SuperAdmin"
"group" "superadmin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "0"
"g" "153"
"r" "255"
}
}
"3"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "153"
"r" "51"
}
}

                "4"
{
"name" "Moderators"
"group" "moderator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "153"
}
}

               
                "5"
{
"name" "Members"
"group" "member"
"armor" "150"
"hp" "150"
"color"
{
"a" "255"
"B" "255"
"g" "153"
"r" "51"
}
}
               
                "6"
{
"name" "Goldmembers"
"group" "goldmember"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "51"
"g" "255"
"r" "255"
}
}
                "7"
{
"name" "Operators"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
}
"8"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "204"
"g" "204"
"r" "204"
}

}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}

It all works except for the goldmember group, which is the same blue as members for some reason.

Edit: I believe this belongs in the off topic section, sorry.

[Edit-JamminR]Merged thread into UTeam release thread
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 03, 2009, 04:56:13 PM
mrm,
Try the attached file as your UTeam.txt (you'll need to change its name as saving it of course)
Restart your server after saving it.
Let me know if it works, and I'll explain why.
If not, my theory is wrong.

Title: Re: UTeam - Set teams based on usergroup.
Post by: mrm on October 04, 2009, 10:48:12 AM
Thankyou for your work on trying to fix my problem. Unfortunately, goldmembers are still blue. Hopefully you have another theory?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 04, 2009, 11:10:12 AM
Sure the group name matches?
Does your groups.txt file somehow have a capital letter instead of all lowercase? Goldmember instead of goldmember?
Lua is case sensitive, though our console commands always turn group entry into lowercase, we often see manual edits of the groups.txt file done in incorrect case.
Is it plural? goldmembers instead of goldmember?
Your Uteam file doesn't use plural.

My original theory involved whitespace issues. We've seen Glua's table and file.read commands have trouble with them in the past.
Title: Re: UTeam - Set teams based on usergroup.
Post by: mrm on October 04, 2009, 07:03:17 PM
Thats the first thing I checked, and its all perfect. I honestly don't know what It could be.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 04, 2009, 07:44:25 PM
Please attach your gmod/data/ULib/groups.txt, and go ahead and run/attach a ulx debuginfo while a member of the goldmember's group is connected.
Title: Re: UTeam - Set teams based on usergroup.
Post by: mrm on October 04, 2009, 07:53:19 PM
Here is the short version of the debug:

Code: [Select]
Results:
KeyValues Error: RecursiveLoadFromBuffer: got empty keyname in file In
Users, admin,
KeyValues Error: RecursiveLoadFromBuffer: got empty keyname in file In
Users, (*admin*),
KeyValues Error: LoadFromBuffer: missing { in file In
(*Users*), (*admin*),
Debug information written to garrysmod/data/ulx/debugdump.txt on server.

and groups is the exact same one you gave me. If you need the WHOLE debug, tell me and i will attach it. Mostly just useless info though.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 04, 2009, 08:16:25 PM
groups.txt is not the same as uteam.txt
Groups are not the same as teams.
It seems your users.txt file is corrupt; most likely the gmod default /settings/users.txt
Check for missing brackets and or quotes.
Also, check server startup for errors regarding ULib startup.
If the users.txt file in settings is a bit off, ULib would probably let you know.

Title: Re: UTeam - Set teams based on usergroup.
Post by: mrm on October 04, 2009, 08:21:44 PM
sorry misread lol. I know groups n teams aren't the same. I shall check all those things now

Btw, I don't use the default users.txt for anything.

Attached groups.txt - divided it into sections with //title for ease of scanning - don't have those in the actual server one.

Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 05, 2009, 03:23:15 PM
Might be due to inheritance.
Your goldmember inherits member, which then inherits user.
Try having member inherit_from no group { }
(Users is inherited by all groups by default - no need to specify it)

I have other questions.  Though I don't normally do this, to keep from filling this thread with what I don't believe to be a UTeam issue, I'm going to email you. If resolution is found and not to be UTeam related, I'll split topic.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 05, 2009, 08:01:48 PM
Unfortunately, I was unable to help mrm.
I'll continue to look at the files he sent me, but unless it's a whitespace issue in ULib 2.3, and Uteam, all syntax seems correct.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on October 07, 2009, 09:48:42 AM
Somethings gotta be throwing those keyvalue errors, looks like it's probably originating from C++...
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 07, 2009, 03:32:31 PM
He may have some whitespace in his Gmod users.txt (not ULib)
Though I had him remove the "admin" { "" "" } bit he had, I didn't actually send him a modded file.
May try that next.
Title: Re: UTeam - Set teams based on usergroup.
Post by: meinsla on October 13, 2009, 06:46:47 PM
It seems I am having a similar problem as Darkflamer. After entering the server, I am put into the "unassigned" team for some reason (despite me being a superadmin). And for some odd reason, it only does it when the server is running spacebuild. On sandbox mode, this mod works perfectly. As soon as I change the gamemode, I get put in unassigned. I retain the superadmin powers but I am not put into the proper team.

I am a bit unsure as to what to enter into the UTeam.txt file under "gamemodes." I tried adding second one called "Spacebuild2" (because that's what it's currently called in its data.txt file) but that didn't work.

How can I get my teams to work in different gamemodes other than sandbox?


Edit: Nevermind, I seem to have gotten it working. I am pretty sure all I did was replaced UTeam 1.0 with UTeam 1.1. :D thanks anyway guys.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Vexont on October 26, 2009, 01:55:13 PM
I've rewritten my groups and uteam 3 times now and no matter what I do, everyone is named "Unassigned"

Keep in mind, I just got a new server and I haven't worked on uteam and groups for at least 5 months, so it comes as no surprise I'm just making some noob mistake.

here is the file. (http://solidfiles.com/d/SbmQ)

Thanks in advanced!
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 26, 2009, 07:13:24 PM
Errors in server console during server startup of ULib?
Make sure you're putting uteams.txt in /data, not in /data/ULib
Title: Re: UTeam - Set teams based on usergroup.
Post by: Vexont on October 26, 2009, 07:55:42 PM
Errors in server console during server startup of ULib?
Make sure you're putting uteams.txt in /data, not in /data/ULib

No errors, and I have it in /data like the readme says.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Vexont on October 27, 2009, 02:41:21 PM
I get this error :
16:37:19 Lua Error: autorun/UTeam.lua:21: table index is nil

Soooo vague....
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 27, 2009, 09:03:31 PM
Quite helpful from the developers side actually. (my viewpoint.. I read developer, and speak end user) :P

You have a missing bracket at line 113>114 of the UTeams.txt file. Right before "gamemodes", should have one more }
That closes the teams table, which is what line 21 of Spbogie's code reads.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Vexont on October 28, 2009, 04:06:28 PM
Quite helpful from the developers side actually. (my viewpoint.. I read developer, and speak end user) :P

You have a missing bracket at line 113>114 of the UTeams.txt file. Right before "gamemodes", should have one more }
That closes the teams table, which is what line 21 of Spbogie's code reads.

Thanks much, I would have never guessed it to be the brackets, but then I am not that observant.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on October 28, 2009, 06:30:28 PM
Welcome. I actually missed it the first time, even using Notepad++ which draws lines for brackets/tabs, etc.
The error helped point me to look again.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Bounty_Bam on December 08, 2009, 01:09:33 PM
I am getting this alot since i SVN'd ULX/Ulib:

Lua Error: Timer Error: autorun/UTeam.lua:54: bad argument #1 to 'SelectWeapon' (string expected, got nil)

I think it has something to do with admin only sweps/entities, as I can no longer spawn anything with the little "admin shield" on it.

(I am superadmin)
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 08, 2009, 04:16:04 PM
Bounty_Bam, where did you get your UTeam.lua, or where did you get your edits for it?
The original UTeam release doesn't have a select weapon command.
I'm aware there are several versions floating around the forum here (and elsewhere on the web), but it would help to know for troubleshooting.

Title: Re: UTeam - Set teams based on usergroup.
Post by: Bounty_Bam on December 09, 2009, 03:44:34 PM
Bounty_Bam, where did you get your UTeam.lua, or where did you get your edits for it?
The original UTeam release doesn't have a select weapon command.
I'm aware there are several versions floating around the forum here (and elsewhere on the web), but it would help to know for troubleshooting.

I got it from here, about 8months ago? v1.1 I believe. I am aware of the recents upload/download exploits, and I'm beginning to wonder if this file was downloaded from my server, editted, and reuploded without my knowing :/ However, the "last edited" date of this file, and the dates of the start of these "hacks", are way out.

Should I upload or paste the content of my Uteam.lua?
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 09, 2009, 05:08:51 PM
Uh, exploited - it's possible, but unlikely.

Just attach your file.
Attachments are in the "additional option" link below the text box while replying (at least it is in my theme I use here)
Title: Re: UTeam - Set teams based on usergroup.
Post by: Bounty_Bam on December 09, 2009, 05:24:15 PM
Attached =]


Edit (spbogie): Removed attachment to avoid confusion with real version.
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 09, 2009, 05:41:27 PM
Bounty_Bam,
That's definitely not the default pure release Uteam 1.1
That looks very much like an attempted edit of UTeam by Kyzer to control weapons.
http://forums.ulyssesmod.net/index.php/topic,1171.msg5586.html#msg5586
Might wish to bump that thread instead of this one....we like to keep the 'pure' release threads separate of the 'community modified' ones.
If you didn't edit it yourself, have any friends with lua access to your server?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Bounty_Bam on December 09, 2009, 05:45:57 PM
Nope just me. Always has been just me. Would it just be wise to download v1.1 again and copy over the lua file?

[Feel free to delete these messages]
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 09, 2009, 07:35:32 PM
If you don't want to use UTeam to control player weapons, yes.
(You already knew the answer) :P
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 10, 2009, 05:47:30 PM
Found it??? What?
I just posted it to you a few posts above the one in which you found it.
http://forums.ulyssesmod.net/index.php/topic,663.msg17459.html#msg17459
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on December 12, 2009, 08:51:50 PM
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.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Wizard of Unrespsonsiveness on January 28, 2010, 10:25:51 AM
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: [Select]
"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"
}
}

Even I know the problem is not related to this file because it works fine i post it anyway.
Code: [Select]
"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"
}

I put the Uteam.txt into the Ulib folder(I also edited the path in the Uteam.lua so its ok).
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on January 28, 2010, 04:36:43 PM
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.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Wizard of Unrespsonsiveness on January 29, 2010, 06:30:42 AM
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: [Select]
Msg("uTeam loaded\n") 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...


Title: Re: UTeam - Set teams based on usergroup.
Post by: Wizard of Unrespsonsiveness on February 01, 2010, 06:17:47 PM
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
Title: Re: UTeam - Set teams based on usergroup.
Post by: tssge on February 15, 2010, 05:42:40 AM
I have a problem too. The armors and those work fine, but for some reason i just don't get any teams nor colors on my player list. Any chance this is because i'm testing it on listen server ?
Here's my UTeam config.
And the "s" letter after every group (except user) like superadmin"s" should be there, because i have changed my groups.
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "The Uber ones (You really shouldn't kill them)"
"group" "superadmins"
"armor" "100"
"hp" "1000"
"color"
{
"a" "255"
"B" "255"
"g" "51"
"r" "0"
}
"model" "stripped"
}
"2"
{
"name" "Admins (You shouldn't kill them)"
"group" "admins"
"armor" "0"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "102"
"r" "102"
}
}
"3"
{
"name" "Operators (The ones who keep the server running)"
"group" "operators"
"armor" "0"
"hp" "100"
"color"
{
"a" "255"
"B" "255"
"g" "255"
"r" "0"
}
}
"4"
{
"name" "Normal players (No super powers what so ever)"
"group" "user"
"color"
{
"a" "255"
"B" "51"
"g" "255"
"r" "51"
}
"model" "hostage01"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}
Title: Re: UTeam - Set teams based on usergroup.
Post by: sharp on February 18, 2010, 07:52:52 PM
tssge ur uteam file looks good to me and you say the armor works so maybe there is a character limit to the team name.  So is the team name on the scoreboard blank?

Uteam works fine for me on svn version except the walkspeed and runspeed dont seem to work.
Title: Re: UTeam - Set teams based on usergroup.
Post by: tssge on February 20, 2010, 11:00:57 AM
It's not blank, there are no teams at all in sandbox. Don't know why.
Title: Re: UTeam - Set teams based on usergroup.
Post by: BainMalum on August 17, 2010, 02:35:33 AM
Know its been a long time since anyone has posted in this thread. But I need information on how to get the walk and sprint sections working. Making a movie and need to alter speed and movement more realistically.

The armor and health bars seem to work fine so this should be still working overall. But I cant get the speed to work, its probably just me tough. The input I am altering is the one seen below here...

"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "SuperAdmins"
         "group"      "superadmin"
         "armor"      "100" <- Work
         "hp"      "100" <-Work
         "color"
         {
            "a"      "255"
            "B"      "85"
            "g"      "200"
            "r"      "0"
         }
         "plytable"
         {
            "1"      "SprintSpeed:300" <- Nothing happens when i change values
            "2"      "WalkSpeed:50" <- same goes for here
         }
      }
      "2"
      {
         "name"      "Admins"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "50"
            "r"      "255"
         }
      }
      "3"
      {
         "name"      "Operators"
         "group"      "operator"
         "armor"      "200"
         "hp"      "200"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "200"
            "r"      "255"
         }
      }
      "4"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
         "model"      "male1"
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}

So am I doing something wrong here? if so if there is anyone still monitoring this post please tell me. Or recommend some other speed altering gm file please!

Much appreciate for any feed!

PS sorry for any grammar.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on August 17, 2010, 09:23:22 AM
Garry changed how walk and runspeed worked a while back, so this version of UTeam isn't going to be able to change it. If you're using SVN ULib and ULX, you can use the integrated UTeam (http://forums.ulyssesmod.net/index.php/topic,4782.0.html) instead. XGUI support for UTeam is coming soon as well.
Title: Re: UTeam - Set teams based on usergroup.
Post by: Polik36 on August 26, 2010, 01:36:33 PM
Hi there , another problem coming from me .. The uteam is working just fine (colors, names etc..) but only for the first person on server .. Any suggestions ? Thank you Polik
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on August 26, 2010, 01:44:41 PM
See the post above yours
Title: Re: UTeam - Set teams based on usergroup.
Post by: tyrann619 on September 05, 2010, 09:26:13 AM
Hi ich have a problem with the plytable..
 I added only one rank
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Owner"
"group" "owner"
"armor" "9999"
"hp" "9999"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
"model"     "super"
"plytable"
{
"1" "SprintSpeed:2000"
"2" "WalkSpeed:1000"
}
}
"2"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"3"
{
"name" "Admins"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"4"
{
"name" "Operators"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
}
"5"
{
"name" "Players"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}

All works.. i get 9999 health 9999amor the super model and so on but i don't have an other walk/sprint speed...
Title: Re: UTeam - Set teams based on usergroup.
Post by: JamminR on September 05, 2010, 08:22:40 PM
All works.. i get 9999 health 9999amor the super model and so on but i don't have an other walk/sprint speed...
Please, read over the discussions, or search them using the quick search, for previously mentioned issues.

Garry changed how walk and runspeed worked a while back, so this version of UTeam isn't going to be able to change it. If you're using SVN ULib and ULX, you can use the integrated UTeam (http://forums.ulyssesmod.net/index.php/topic,4782.0.html) instead. XGUI support for UTeam is coming soon as well.
Title: Re: UTeam - Set teams based on usergroup.
Post by: tsmelinda on October 12, 2010, 11:12:48 PM
not sure if your aware of this but I believe the last gmod update broke this addon.
can someone check and see if its not just me?

Oh wait nevermind, It was me not editing the txt to support my gamemode.

Title: Re: UTeam - Set teams based on usergroup.
Post by: Botman on December 30, 2010, 02:50:11 PM
I have a question. Does this work with XGUI? If so, how does it?
Title: Re: UTeam - Set teams based on usergroup.
Post by: Megiddo on December 30, 2010, 05:32:32 PM
There's a newer UTeam integrated with ULX (you have it if you have ULX), and it works with XGUI. I'm locking this thread to prevent further confusion.