Author Topic: UTeam -- now integrated with ULX SVN!  (Read 21234 times)

0 Members and 3 Guests are viewing this topic.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: UTeam -- now integrated with ULX SVN!
« Reply #15 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 ) )
« Last Edit: June 27, 2010, 04:52:35 PM by Buggzie »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #16 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.
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #17 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.
« Last Edit: June 27, 2010, 06:58:31 PM by Megiddo »
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: UTeam -- now integrated with ULX SVN!
« Reply #18 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:

« Last Edit: June 28, 2010, 04:48:19 AM by Buggzie »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #19 on: June 28, 2010, 07:34:42 AM »
The order is what you want it to be
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: UTeam -- now integrated with ULX SVN!
« Reply #20 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)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #21 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.
« Last Edit: June 28, 2010, 06:49:54 PM by Megiddo »
Experiencing God's grace one day at a time.

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: UTeam -- now integrated with ULX SVN!
« Reply #22 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.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #23 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?
Experiencing God's grace one day at a time.

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: UTeam -- now integrated with ULX SVN!
« Reply #24 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"
}


Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam -- now integrated with ULX SVN!
« Reply #25 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #26 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.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam -- now integrated with ULX SVN!
« Reply #27 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam -- now integrated with ULX SVN!
« Reply #28 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).
Experiencing God's grace one day at a time.

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: UTeam -- now integrated with ULX SVN!
« Reply #29 on: June 30, 2010, 06:33:14 AM »
I'll have to retest later tonight when everyone gets off the server.