Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Megiddo on June 26, 2010, 10:49:26 AM

Title: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 26, 2010, 10:49:26 AM
Due to popular demand, we decided to integrate UTeam into ULX. Currently you'll need to configure it by hand (just like the original UTeam), but I'm sure that will change when Stickly has enough time to add it to XGUI.

Configuration is now done through your standard ULib groups.txt file, like so:
Code: [Select]
"superadmin"
{
"allow"
{
<list_of_allows>
}
"inherit_from" "admin"
"team"
{
"name" "TheChosenOnes"
"color_red" 255
"color_blue" 0
"color_green" 0
"model" "alyx"
"health" 125
}
}

Only name and color are required, all other fields are optional. For model you can specify the short model names listed here (http://wiki.garrysmod.com/?title=Player_manager.TranslatePlayerModel), or you can specify the full path of a model. You can specify any name that has a corresponding "set" function for it on the player. For example, I specify health because there's a SetHealth function on the player, the health will be set to 125 every time the player spawns.

A quick list of other fields you can use (case is important):
duckSpeed
stepSize
unDuckSpeed
armor
crouchedWalkSpeed
deaths
frags
jumpPower
maxSpeed
runSpeed
walkSpeed

Let me know if something isn't working quite right or if there's some feature you'd like here.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: jay209015 on June 26, 2010, 11:14:57 AM
Love it! Nice work.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 26, 2010, 11:45:26 AM
Love it! Nice work.

Nice sig :P
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: jay209015 on June 26, 2010, 12:06:16 PM
Haha, couldn't pass up the opportunity for the sig :P
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: JamminR on June 26, 2010, 05:14:18 PM
Good job!
SPBogie is quiet in these parts lately. Glad that his code ideas still fit in so well with Ulysses core.
(We miss you spbogie!)
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: RynO-SauruS on June 26, 2010, 08:49:43 PM
Awesome, I love it! But I looked at the code, and I think you left out the ability to set the team color alpha (transparency). The original UTeam allowed this.

This line:
Code: [Select]
local team_color = Color( tonumber( group_data.team.color_red ) or 255, tonumber( group_data.team.color_green ) or 255, tonumber( group_data.team.color_blue ) or 255 )

Should be like this:
Code: [Select]
local team_color = Color( tonumber( group_data.team.color_red ) or 255, tonumber( group_data.team.color_green ) or 255, tonumber( group_data.team.color_blue ) or 255, tonumber( group_data.team.color_alpha ) or 255 )
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 26, 2010, 09:10:58 PM
I did that on purpose because I haven't seen any place alpha is used. Have you?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: RynO-SauruS on June 26, 2010, 09:49:43 PM
I guess I can't immediately see anywhere it's actually used, I didn't think about it. Whether to add alpha or not is up to you.


Edit: I tried to add this to the team section in the superadmin group in groups.txt, to set my armor:

Code: [Select]
"armor" 100

And all my team stuff is working fine except it's not setting my armor, could you try testing that yourself?

Here's my entire groups.txt (I'm a superadmin):
-snip-
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 26, 2010, 10:12:36 PM
Oops, was accidentally making the model option required. Sorry 'bout that, should be fixed now. Also, you don't have to set health to 100 in each, since that's the default.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: RynO-SauruS on June 26, 2010, 10:17:00 PM
Thanks. I'll try it again tomorrow.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Buggzie on June 27, 2010, 07:34:37 AM
(http://gmod1.nmdgaming.com/eyefinity/craputeam.png)

Fix that please... Its meant to be green like the original uteam but now its red...

Code: [Select]
"team"
{
"name" "Founders"
"color_red" "0"
"color_green" "255"
"color_blue" "0"
"health" "100"
"armor" "0"
}

EDIT: Its meant to be the same colour as uteam group.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 27, 2010, 08:04:06 AM
You have it set to green and it's green. I don't see what the problem is?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: JamminR on June 27, 2010, 08:20:30 AM
Megiddo, I think he means the title...at least the image I'm looking at, it appears red.
Not the eyefinity background - it does indeed appear green.
(Buggzie, if you do mean the background for Eyefinity, you may wish to 1) Check your monitor (Have someone else look and see, if it's showing green as red, something is mixed up) or 2) see a Dr and discuss colorblindness.)
According to the image you posted.
Title = red
Founder background = green
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: someone920 on June 27, 2010, 01:20:35 PM
He's talking about the GMod logo, in the UTeam, it used to be whatever the highest rank color was. In that image, the highst rank color is green, but now the GMod logo isn't green.

EDIT: And do we have to remove the old UTeam files or can we keep those instead of using this version of groups?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: DiscoBiscuit on June 27, 2010, 01:34:27 PM
How do you specify what order that they will be listed in? Or is it the same as they are listed in groups.txt?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Buggzie on June 27, 2010, 04:40:40 PM
Megiddo, I think he means the title...at least the image I'm looking at, it appears red.
Not the eyefinity background - it does indeed appear green.
(Buggzie, if you do mean the background for Eyefinity, you may wish to 1) Check your monitor (Have someone else look and see, if it's showing green as red, something is mixed up) or 2) see a Dr and discuss colorblindness.)
According to the image you posted.
Title = red
Founder background = green

very funny, no... the title where the g is and the serversname is meant to be green, when its red...

Code: [Select]
if (ColorCmp( team.GetColor(21), Color( 255, 255, 100, 255 ))) then
tColor = Color( 255, 155, 0, 255 )
else
  tColor = team.GetColor(21)
  end

self.Hostname:SetFGColor( Color( tColor.r, tColor.g, tColor.b, 255 ) )
self.Description:SetFGColor( Color( 55, 55, 55, 255 ) )
self.Logog:SetFGColor( Color( 55, 55, 55, 255 ) )
self.SuiSc:SetFGColor( Color( 200, 200, 200, 200 ) )
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 27, 2010, 05:37:38 PM
very funny, no... the title where the g is and the serversname is meant to be green, when its red...

Code: [Select]
if (ColorCmp( team.GetColor(21), Color( 255, 255, 100, 255 ))) then
tColor = Color( 255, 155, 0, 255 )
else
  tColor = team.GetColor(21)
  end

self.Hostname:SetFGColor( Color( tColor.r, tColor.g, tColor.b, 255 ) )
self.Description:SetFGColor( Color( 55, 55, 55, 255 ) )
self.Logog:SetFGColor( Color( 55, 55, 55, 255 ) )
self.SuiSc:SetFGColor( Color( 200, 200, 200, 200 ) )

So sui is always grabbing the color from team 21? An odd choice and doesn't really make sense, but I'll see if I can do anything with it.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 27, 2010, 06:56:03 PM
Alright, in the latest update I think I've addressed everyone's suggestions/complaints.

You can now specify group order by using the optional key "order" in the team table. If no order is given, it's considered to be dead last. If multiple teams have the same order (or absence of order), precedence is determined by team name.

If multiple teams have the same order (or absence of order) and the same name, they are considered to be the same team.

The highest ranking team is assigned id 21, which is the same team id that sui scoreboard grabs the color from.

Team is now assigned immediately when you become a new member of a group, instead of having to wait to die to get your new team.

EDIT: And do we have to remove the old UTeam files or can we keep those instead of using this version of groups?

The new integrated UTeam is optional. If you don't specify any team data in groups.txt, it's like it's not even there.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Buggzie on June 27, 2010, 11:32:44 PM
all superadmins when they die they go admin in uteam and in ulx who it still says superadmin

here my groups.txt

Code: [Select]
"superadmin"
{
"inherit_from" "admin"
"allow"
{
"overcomeimmunity"
"ulx addgroup"
"ulx adduser"
"ulx adduserid"
"ulx cexec"
"ulx ent"
"ulx exec"
"ulx gban"
"ulx gbanid"
"ulx groupallow"
"ulx gunbanid"
"ulx hiddenecho"
"ulx luarun"
"ulx maul"
"ulx rcon"
"ulx removegroup"
"ulx removeuser"
"ulx removeuserid"
"ulx renamegroup"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx setgroupcantarget"
"ulx userallow"
"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 welcomemessage"
}
"team"
{
"name" "Founders"
"color_red" "0"
"color_green" "255"
"color_blue" "0"
"health" "100"
"armor" "0"
}
}
"admin"
{
"inherit_from" "moderator"
"can_target" "!%superadmin"
"allow"
{
"ulx adminmenu"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx blind"
"ulx bring"
"ulx chattime"
"ulx cleardecals"
"ulx cloak"
"ulx csay"
"ulx freeze"
"ulx gban"
"ulx ignite"
"ulx map"
"ulx mapsmenu"
"ulx physgunplayer"
"ulx playsound"
"ulx send"
"ulx setitle"
"ulx settitle"
"ulx showmotd"
"ulx spawnecho"
"ulx spectate"
"ulx sslay"
"ulx strip"
"ulx tsay"
"ulx unban"
"ulx unblind"
"ulx uncloak"
"ulx unfreeze"
"ulx veto"
"ulx voteban"
"ulx whip"
"ulx_cleardecals"
}
"team"
{
"name" "Admins"
"color_red" "255"
"color_green" "0"
"color_blue" "0"
"health" "100"
"armor" "0"
}
}
"user"
{
"can_target" "!%moderator"
"allow"
{
"ulx asay"
"ulx clientmenu"
"ulx help"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx motd"
"ulx psay"
"ulx thetime"
"ulx title"
"ulx votemap"
"ulx who"
"ulx_title"
"ulx mytitle" "^"
"ulx god" "^"
"ulx ungod" "^"
}
"team"
{
"name" "Players"
"color_red" "0"
"color_green" "102"
"color_blue" "204"
"health" "100"
"armor" "0"
}
}
"respected"
{
"can_target" "!%moderator"
"inherit_from" "user"
"allow"
{
}
"team"
{
"name" "Respected"
"color_red" "153"
"color_green" "51"
"color_blue" "255"
"health" "100"
"armor" "0"
}
}
"moderator"
{
"inherit_from" "respected"
"can_target" "!%admin"
"allow"
{
"ulx armor"
"ulx gag"
"ulx gimp"
"ulx god"
"ulx goto"
"ulx hp"
"ulx jail"
"ulx kick"
"ulx mute"
"ulx noclip"
"ulx ragdoll"
"ulx respawn"
"ulx slap"
"ulx slay"
"ulx teleport"
"ulx ungag"
"ulx ungimp"
"ulx ungod"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unmute"
"ulx unragdoll"
"ulx usermanagementhelp"
"ulx vote"
"ulx votekick"
"ulx votemap2"
}
"team"
{
"name" "Moderators"
"color_red" "255"
"color_green" "204"
"color_blue" "0"
"health" "100"
"armor" "0"
}
}

Also players are no longer in order by groups:

(http://gmod1.nmdgaming.com/eyefinity/craputeam2.png)
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 28, 2010, 07:34:42 AM
The order is what you want it to be
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Buggzie on June 28, 2010, 06:25:14 PM
The order is what you want it to be

Superadmins become Admins when they die (HP Gets set to 1000, same as amour)
Admins become Superadmins when they die (HP Gets set to 1000, same as amour)

You have not said how to order a group. Its meant to order by highest to lowest (Superadmin,Admin,Moderator,Respected,User)
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 28, 2010, 06:42:28 PM
You have not said how to order a group

Look again.

Did you remove the "old" UTeam before putting in the config for this one? Only the old UTeam does anything on player death.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: DiscoBiscuit on June 29, 2010, 09:29:00 AM
I think I did the "order" thing wrong, when I do it all my players are unassigned.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 29, 2010, 09:47:29 AM
I think I did the "order" thing wrong, when I do it all my players are unassigned.

Mind posting your groups file?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: DiscoBiscuit on June 29, 2010, 10:02:21 AM
garrysmod/data/ulib/groups.txt
Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"overcomeimmunity"
"physgunplayer"
"ulx adduser"
"ulx adduserid"
"ulx kick"
"ulx osi_immunize"
"ulx osi_overcome"
"ulx osi_rubberize"
"ulx rcon"
"ulx removeuser"
"ulx setgroupcantarget"
"ulx slap"
"xgui_gmsettings"
"xgui_managebans"
"xgui_managegroups"
"xgui_svsettings"
"ulx bring" "!%admin"
}
"inherit_from" "admin"
"team"
   {
      "name" "Super Admin"
      "color_red" 50
      "color_blue" 50
      "color_green" 255
      "health" 1337
  "maxSpeed" 2
  "order" 1
   }
}
"admin"
{
"deny"
{
}
"allow"
{
"ulib_passtime"
"ulib_passtime"
"ulib_passtimeout"
"ulib_passtimeout"
"ulx adminmenu"
"ulx armor"
"ulx armor"
"ulx ban"
"ulx banid"
"ulx banmenu"
"ulx banmenu"
"ulx blind"
"ulx blind"
"ulx bring"
"ulx bring"
"ulx chattime"
"ulx chattime"
"ulx clientmenu"
"ulx clientmenu"
"ulx cloak"
"ulx cloak"
"ulx cloakme"
"ulx csay"
"ulx csay"
"ulx exec"
"ulx exec"
"ulx freeze"
"ulx freeze"
"ulx gag"
"ulx gag"
"ulx ghost"
"ulx ghost"
"ulx gimp"
"ulx gimp"
"ulx god"
"ulx god"
"ulx godme"
"ulx goto"
"ulx goto"
"ulx hp"
"ulx hp"
"ulx hpme"
"ulx ignite"
"ulx ignite"
"ulx jail"
"ulx jail"
"ulx kick"
"ulx map"
"ulx mapsmenu"
"ulx mapsmenu"
"ulx maul"
"ulx maul"
"ulx menu"
"ulx mute"
"ulx mute"
"ulx noclip"
"ulx noclip"
"ulx playsound"
"ulx playsound"
"ulx ragdoll"
"ulx ragdoll"
"ulx ragdollme"
"ulx reservedslots"
"ulx rslots"
"ulx rslotsmode"
"ulx rslotsvisible"
"ulx send"
"ulx send"
"ulx settitle"
"ulx settitle"
"ulx showmotd"
"ulx slap"
"ulx slap"
"ulx slay"
"ulx slay"
"ulx spawnecho"
"ulx spawnecho"
"ulx spectate"
"ulx spectate"
"ulx sslay"
"ulx sslay"
"ulx strip"
"ulx strip"
"ulx teleport"
"ulx teleport"
"ulx teleportme"
"ulx toolallow"
"ulx toolallow"
"ulx toolallowuser"
"ulx toolallowuser"
"ulx tooldeny"
"ulx tooldeny"
"ulx tooldenyoverride"
"ulx tooldenyoverride"
"ulx tooldenyuser"
"ulx tooldenyuser"
"ulx tsay"
"ulx tsay"
"ulx uberadminmenu"
"ulx unban"
"ulx unblind"
"ulx unblind"
"ulx uncloak"
"ulx uncloak"
"ulx uncloakme"
"ulx unfreeze"
"ulx unfreeze"
"ulx ungag"
"ulx ungag"
"ulx unghost"
"ulx unghost"
"ulx ungimp"
"ulx ungimp"
"ulx ungod"
"ulx ungod"
"ulx ungodme"
"ulx unignite"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unjail"
"ulx unmute"
"ulx unmute"
"ulx unragdoll"
"ulx unragdoll"
"ulx unragdollme"
"ulx veto"
"ulx veto"
"ulx vote"
"ulx vote"
"ulx voteban"
"ulx voteban"
"ulx votekick"
"ulx votekick"
"ulx votemap2"
"ulx votemap2"
"ulx welcomemessage"
"ulx welcomemessage"
"ulx whip"
"ulx whip"
"ups disableplayers"
"ups disableplayers"
"ups globaldisable"
"ups miscdeletionaccess"
"ups miscdeletionaccess"
"ups_damage"
"ups_damage"
"ups_freeze"
"ups_freeze"
"ups_physgun"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups_vehicle"
"urestrict allowspawn"
"urestrict denyspawn"
"urestrict npcs"
"urestrict props"
"urestrict ragdolls"
"urestrict sents"
"urestrict vehicles"
"ups_unfreeze" "!%superadmin"
"ulx banid" "!%vipp"
"ulx physgunplayer" "!%admin"
"ups_remove" "!%superdmin"
"ulx kick" "!%vipp"
"ulx map" "0"
"ups_use" "!%superadmin"
"ups_vehicle" "!%superadmin"
"ulx ban" "!%vipp"
}
"inherit_from" "moderator"
"team"
   {
      "name" "Admin"
      "color_red" 255
      "color_blue" 50
      "color_green" 50
      "health" 1000
  "order" 2   
  }
}
"moderator"
{
"allow"
{
"ulx armor"
"ulx blind"
"ulx blind"
"ulx bring"
"ulx bring"
"ulx clientmenu"
"ulx clientmenu"
"ulx cloak"
"ulx cloak"
"ulx cloakme"
"ulx freeze"
"ulx freeze"
"ulx gag"
"ulx gag"
"ulx gimp"
"ulx gimp"
"ulx god"
"ulx god"
"ulx godme"
"ulx goto"
"ulx goto"
"ulx hp"
"ulx hp"
"ulx hpme"
"ulx ignite"
"ulx ignite"
"ulx jail"
"ulx jail"
"ulx kick"
"ulx menu"
"ulx mute"
"ulx mute"
"ulx noclip"
"ulx ragdoll"
"ulx ragdoll"
"ulx ragdollme"
"ulx send"
"ulx send"
"ulx slap"
"ulx slap"
"ulx slay"
"ulx slay"
"ulx spawnecho"
"ulx spawnecho"
"ulx spectate"
"ulx strip"
"ulx strip"
"ulx teleport"
"ulx teleport"
"ulx teleportme"
"ulx unblind"
"ulx uncloak"
"ulx uncloak"
"ulx uncloakme"
"ulx unfreeze"
"ulx unfreeze"
"ulx ungag"
"ulx ungag"
"ulx ungimp"
"ulx ungimp"
"ulx ungod"
"ulx ungod"
"ulx ungodme"
"ulx unignite"
"ulx unignite"
"ulx unigniteall"
"ulx unjail"
"ulx unjail"
"ulx unmute"
"ulx unmute"
"ulx unragdoll"
"ulx unragdoll"
"ulx unragdollme"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx welcomemessage"
"ulx whip"
"ulx kick" "!%admin"
"ulx votemap" "0"
"ulx" "unblind"
"ulx unblind" "0"
}
"inherit_from" "user"
"team"
   {
      "name" "Moderator"
      "color_red" 255
      "color_blue" 0
      "color_green" 150
      "health" 500
  "order" 3
   }
}
"vip"
{
"allow"
{
"ulx armor"
"ulx cloak"
"ulx god"
"ulx goto"
"ulx noclip"
"ulx spectate"
"ulx teleport"
"ulx uncloak"
"ulx ungod"
"ulx unignite"
"ulx vote"
"ulx voteban"
"ulx votekick"
"ulx ragdoll" "^"
"ulx unragdoll" "^"
"ulx seeasay" "0"
}
"inherit_from" "user"
"team"
   {
      "name" "VIP"
      "color_red" 225
      "color_blue" 0
      "color_green" 200
      "health" 250
  "order" 4
   }
}
"user"
{
"deny"
{
}
"allow"
{
"ulx"
"ulx"
"ulx asay"
"ulx asay"
"ulx debuginfo"
"ulx godme"
"ulx help"
"ulx help"
"ulx hpme"
"ulx logchat"
"ulx logdir"
"ulx logecho"
"ulx logevents"
"ulx logfile"
"ulx logspawns"
"ulx logspawnsecho"
"ulx menu"
"ulx menu"
"ulx motd"
"ulx motd"
"ulx mytitle"
"ulx mytitle"
"ulx psay"
"ulx psay"
"ulx ragdollme"
"ulx teleportme"
"ulx thetime"
"ulx thetime"
"ulx title"
"ulx title"
"ulx ungod"
"ulx ungodme"
"ulx unragdollme"
"ulx usermanagementhelp"
"ulx usermanagementhelp"
"ulx voteecho"
"ulx votemap"
"ulx votemap"
"ulx who"
"ulx who"
"ulx_cvar"
"ulx_cvar"
"ulx_getbans"
"ulx_getbans"
"ulx_getgamemodes"
"ulx_getgamemodes"
"ulx_valueupdate"
"ulx_valueupdate"
"urequest"
"urequest help"
"urequest make"
"urequest makep"
"urequest view"
"ulx jail" "^"
"ulx armor" "^"
"ulx hp" "^"
"ulx ragdoll" "^"
"ulx votekick" "!%admin"
"ulx armour" "^"
"ulx voteban" "0"
"ulx god" "^"
"ulx ignite" "^"
"ulx teleport" "^"
"ulx unragdoll" "^"
"ulx unjail" "0"
"ulx kick" "^"
"ulx goto" "!%superadmin"
}
"team"
   {
      "name" "Player"
      "color_red" 0
      "color_blue" 255
      "color_green" 100
      "health" 100
  "order" 5
   }
}
"peniscupcake"
{
"deny"
{
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx addgimpsay"
"ulx debuginfo"
"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 votemapaddmap"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
}
"allow"
{
}
"inherit_from" "user"
"team"
   {
      "name" "Penis Cupcake"
      "color_red" 255
      "color_blue" 150
      "color_green" 150
      "health" 1
  "runSpeed" 0
  "maxSpeed" 0
  "duckSpeed" 0
  "walkSpeed" 0
  "unDuckSpeed" 0
   }
}
"none"
{
"deny"
{
}
"allow"
{
"ulx addadvert"
"ulx addcsayadvert"
"ulx addforceddownload"
"ulx addgimpsay"
"ulx debuginfo"
"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 votemapaddmap"
"ulx votemapenabled"
"ulx votemapmapmode"
"ulx votemapmintime"
"ulx votemapminvotes"
"ulx votemapsuccessratio"
"ulx votemapvetotime"
"ulx votemapwaittime"
}
"inherit_from" "user"
}

Title: Re: UTeam -- now integrated with ULX SVN!
Post by: JamminR on June 29, 2010, 04:25:00 PM
Disco, though Megiddo may have more input as to issues he could see regarding your groups/team configuration, I strongly recommend placing your numbers in quotes. (For all team setup, not just order)
"order" "1"
"color_red" "#"
etc etc
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 29, 2010, 06:46:15 PM
JamminR, if I recall correctly it parses things not in quotes as numbers, which is what we want here. It doesn't really matter though since UTeam will convert it to a number anyways.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: JamminR on June 29, 2010, 07:44:48 PM
Ok Megiddo. That was just my two cent theory. Heck, you even get change.
Then what's wrong with his file. :P
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 29, 2010, 09:16:31 PM
Disco, did you remember to update your cache files (sv_downloadurl) after updating? Your file works fine on my end as far I can tell (which isn't far, since the server still crashes whenever someone joins).
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: DiscoBiscuit on June 30, 2010, 06:33:14 AM
I'll have to retest later tonight when everyone gets off the server.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: RynO-SauruS on June 30, 2010, 01:43:44 PM
I've just realized, Megiddo, that since you changed the hook that sets the team and player attributes (heath, armor) to "UCLAuthed" instead of "PlayerSpawn", it no longer keeps setting the health, armor, and team when the player spawns.
So if they die and respawn, they'll no longer have 100 armor or whatever. (I've tested, this problem is happening)
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 30, 2010, 05:25:27 PM
Fixed, thanks. This closes all current issues/suggestions with UTeam, right?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: RynO-SauruS on June 30, 2010, 06:09:19 PM
No problem, thank you. That should do it for now, as far as I know.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: lavacano201014 on July 01, 2010, 09:40:02 PM
What order does "order" go in?

Or, what number do I assign to a group that I want to be at the top of ten groups? 1 or 10? (my groups file is in arbitrary order, and organizing it would be a pain)
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on July 02, 2010, 04:59:10 AM
What order does "order" go in?

Or, what number do I assign to a group that I want to be at the top of ten groups? 1 or 10? (my groups file is in arbitrary order, and organizing it would be a pain)

Assign 1 to the first team, and you don't have to physically order the groups in the file, using order will order the teams for you.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: DiscoBiscuit on July 02, 2010, 10:56:56 AM
I got this to work, by the way. I don't know what was wrong with it.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Aaron113 on August 15, 2010, 06:11:10 PM
I have 13 groups and I get this error in my servers console.

Code: [Select]
ERROR: Hook 'UTeamInitialize' Failed: addons\ulx\lua\ulx\modules\uteam.lua:92: attempt to index local 'key' (a number value)
Removing Hook 'UTeamInitialize'
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on August 15, 2010, 09:31:09 PM
I have 13 groups and I get this error in my servers console.

Code: [Select]
ERROR: Hook 'UTeamInitialize' Failed: addons\ulx\lua\ulx\modules\uteam.lua:92: attempt to index local 'key' (a number value)
Removing Hook 'UTeamInitialize'

One of your keys is a number value? Can you share your groups.txt file with us?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Aaron113 on August 16, 2010, 07:56:29 AM
I PMed you my txt file.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on August 16, 2010, 08:08:05 AM
You've got the color for the gold team misconfigured, Aaron113.
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Chippiewill on August 26, 2010, 07:33:02 AM
This is now breaking my own teams system which I have implemented separately. Every time I change ULX permissions or die my team is set to the groups team (Even though it is not setup) thus overriding my own separate teams system.

Is there a way to stop this?

Edit: Never mind, found the set team function
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: TeoTown on June 06, 2012, 03:02:07 AM
Code: [Select]
ERROR: Hook 'UTeamInitialize' Failed: [@addons\ulx\lua\ulx\modules\uteam.lua:91] bad argument #1 to 'pairs' (table expected, got nil)
Removing Hook 'UTeamInitialize'
ERROR: Hook 'ULXDoCfg' Failed: [addons\ulx\lua\ulx\end.lua:43] attempt to call field 'addAdvert' (a nil value)
Removing Hook 'ULXDoCfg'

I keep getting those errors in my console when I start the server.

Here is the only team I used UTeam with;

Code: [Select]
"root_user"
{
"allow"
{
}
"inherit_from" "superadmin"
"team"
{
"name" "Owner"
"color_red" 255
"color_blue" 0
"color_green" 0
"model" "gman"
"health" 125
}

Can somebody help?
Title: Re: UTeam -- now integrated with ULX SVN!
Post by: Megiddo on June 06, 2012, 07:58:34 AM
According to that error, you should be having much larger issues. Run "ulx debuginfo" in the server console and paste the output here. If that command doesn't work, I'd recommend removing your data/ULib/users.txt and groups.txt files and let them recreate themselves.