Author Topic: UTeam - Set teams based on usergroup.  (Read 308348 times)

0 Members and 1 Guest are viewing this topic.

Offline MegaDrewb

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #180 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"
   }
}
« Last Edit: July 05, 2009, 06:47:35 PM by MegaDrewb »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #181 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.
« Last Edit: July 05, 2009, 09:28:18 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Zonic

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #182 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?

Offline lavacano201014

  • Jr. Member
  • **
  • Posts: 83
  • Karma: 9
  • Archbishop of Cristina Scabbia worship
Re: UTeam - Set teams based on usergroup.
« Reply #183 on: July 06, 2009, 11:27:32 AM »
Is sui_scoreboard installed serverside? That might be an issue.
Circle reasoning works because circle reasoning works because...

Offline Zonic

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #184 on: July 09, 2009, 08:53:45 PM »
Of course it is. That's where I had to install it, right?

Offline JamminR

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

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UTeam - Set teams based on usergroup.
« Reply #186 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 ?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Experiencing God's grace one day at a time.

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UTeam - Set teams based on usergroup.
« Reply #188 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.

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UTeam - Set teams based on usergroup.
« Reply #189 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.
« Last Edit: July 18, 2009, 06:07:58 PM by Euphytose »

Offline JamminR

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

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UTeam - Set teams based on usergroup.
« Reply #191 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.

Offline Mouton

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #192 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
« Last Edit: August 28, 2009, 01:55:25 AM by Mouton »

Offline Euphytose

  • Jr. Member
  • **
  • Posts: 64
  • Karma: 5
  • I love Lemonade!
Re: UTeam - Set teams based on usergroup.
« Reply #193 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.

Offline Mouton

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #194 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
« Last Edit: August 28, 2009, 05:34:20 AM by Mouton »