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

0 Members and 6 Guests are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam - Set teams based on usergroup.
« Reply #120 on: September 17, 2008, 08:36:09 AM »
Darn differences between British English and American English. :P
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 - Set teams based on usergroup.
« Reply #121 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.
:)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #122 on: September 20, 2008, 04:57:40 AM »
Using this on my new server, thanks guys
« Last Edit: September 20, 2008, 05:00:36 AM by Sc00by22 »

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #123 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"
{
}
}

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 #124 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #125 on: September 21, 2008, 03:30:18 PM »
nope didnt fix it  :'(

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #126 on: September 25, 2008, 01:44:02 PM »
I'm still stumped.

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 #127 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Killers2

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

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #129 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.
« Last Edit: September 27, 2008, 07:13:17 AM by Killers2 »

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 #130 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: UTeam - Set teams based on usergroup.
« Reply #131 on: September 27, 2008, 10:47:08 AM »
Also when making changes, make sure your saving the Encoding as ANSI.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #132 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 ++ )

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 #133 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Killers2

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