Author Topic: Uteam Help  (Read 5891 times)

0 Members and 1 Guest are viewing this topic.

Offline AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Uteam Help
« on: June 30, 2008, 01:23:52 AM »
Ok, I'm having a lot of trouble adding new user groups. This is what I have in my garrysmod/data/Uteam.txt file

Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Superadmin"
"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" "Beggar"
"group" "user"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "255"
}
{

"5"
{
"name" "Pirate"
"group" "user"
"color" //The team's color
{
"r" "255" //Red value
"g" "255" //Green Value
"b" "255" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200"
"armor" "100"
"model" "combine"
"plytable"
{

"1" "SprintSpeed:600"
"2" "WalkSpeed:300"
}


{
"5"
{
"name" "Spanish Armada"
"group" "user"
"color" //The team's color
{
"r" "255" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200"
"armor" "100"
"model" "combine"
"plytable"
{

"1" "SprintSpeed:600"
"2" "WalkSpeed:300"
}
}

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



I only added it there, is there anywhere else I need to add it? It  says everyone is Unassigned.

Thank you for taking the time to read this.


edit: What I am trying to set up is:
Spanish Armada (equal to respected with red color with barney model and 200 hp/100 armor)
Spanish Armada Capitán (equal to admin with slightly darker red, barney model and 350 hp/200 armor)
Pirate (Equal to respected with black color with combine model and 200 hp/100 armor)
Pirate Captain (Equal to admin with black color with combine model and 350hp/200armor)
English Royal Fleet (Equal to respected with Yellow color with breen model and 200 hp/100 armor)
English Fleet Commander (Equal to admin with yellow color with gman model and 350hp/200armor)
Beggar (Whenever someone joins the server they are a beggar, model will be male3 and 100hp)
Admiral (Equal to superadmin with white color, has the model super and has 500hp/400armor)
(If someone could do this for me or show me how to I will be very thankful.)


edit x2:
Also, I am aware of how to add people as admins and such, I just need help getting the users.

« Last Edit: June 30, 2008, 01:43:39 AM by AngryBarrel »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Uteam Help
« Reply #1 on: June 30, 2008, 02:06:40 AM »
Code: [Select]
"4"
{
"name" "Beggar"
"group" "user"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "255"
}
{

you have everything correct except that, the group needs to exist in data/ULib/groups.txt.
user exist, but you are trying to set it to Beggar, Pirate, and Spanish Armada so that probably why
it's coming up unassigned. You need to create a new group for each team.
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 AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uteam Help
« Reply #2 on: June 30, 2008, 01:05:43 PM »
Code: [Select]
"4"
{
"name" "Beggar"
"group" "user"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "255"
}
{

you have everything correct except that, the group needs to exist in data/ULib/groups.txt.
user exist, but you are trying to set it to Beggar, Pirate, and Spanish Armada so that probably why
it's coming up unassigned. You need to create a new group for each team.

Thank you I will try it now

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Uteam Help
« Reply #3 on: June 30, 2008, 01:41:22 PM »
I also just noticed that you have both Pirate and Spanish Armada set as 5, you need to make one of them 6
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 AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uteam Help
« Reply #4 on: June 30, 2008, 01:41:44 PM »
It still isn't working  :(

I fixed it up a bit and added everything

garrysmod/data/uteam.txt

Code: [Select]
"Out"
{
"teams"
{
"1" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Admiral" //Name of the team.
"group" "superadmin" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "255" //Green Value
"b" "255" //Blue Value
"a" "255" //Alpha Value
}
"hp" "500" //(*Optional*) Player's initial health.
"armor" "400" //(*Optional*) Player's initial armor.
"model" "super" //(*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:750" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:400" //Set the player's walk speed (Def. 250)
}
}
{
"2" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Pirate Captain" //Name of the team.
"group" "admin" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "30" //Red value
"g" "30" //Green Value
"b" "30" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200" //(*Optional*) Player's initial health.
"armor" "50" //(*Optional*) Player's initial armor.
"model" "combine" //(*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:600" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:300" //Set the player's walk speed (Def. 250)
}
}
{
"3" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Royal Fleet Commander" //Name of the team.
"group" "admin" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "0" //Red value
"g" "0" //Green Value
"b" "220" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200" //(*Optional*) Player's initial health.
"armor" "100" //(*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:600" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:300" //Set the player's walk speed (Def. 250)
}
}
{
"4" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Spanish Armada Capitán" //Name of the team.
"group" "admin" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "220" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "barney" //(*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:600" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:300" //Set the player's walk speed (Def. 250)
}
}
{
"5" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Pirate" //Name of the team.
"group" "respected" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "0" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "150" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "combine" //(*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:550" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:275" //Set the player's walk speed (Def. 250)
}
}
{
"6" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "British Royal Fleet" //Name of the team.
"group" "respected" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "0" //Red value
"g" "0" //Green Value
"b" "255" //Blue Value
"a" "255" //Alpha Value
}
"hp" "150" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "breen" //(*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:550" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:275" //Set the player's walk speed (Def. 250)
}
}
{
"7" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Spanish Armada" //Name of the team.
"group" "respected" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "255" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "150" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "barney" //(*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:550" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:275" //Set the player's walk speed (Def. 250)
}
}
{
"8" //Team index. Start at 1 and go up. Team priority lowest first.
{
"name" "Beggar" //Name of the team.
"group" "user" //Usergroup required for the team. Works with garry's default and UCL.
"color" //The team's color
{
"r" "0" //Red value
"g" "200" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "100" //(*Optional*) Player's initial health.
"armor" "0" //(*Optional*) Player's initial armor.
"model" "male2" //(*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:500" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:250" //Set the player's walk speed (Def. 250)
}
}



data/ULib/groups.txt

Code: [Select]
"superadmin"
{
"deny"
{
}
"allow"
{
"overcomeimmunity"
"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"
}
"inherit_from"
{
"admin"
}
}
"Beggar"
{
"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"
{
}
}
"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"
}
}
"Respected"
{
"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"
{
}
"Admiral"
{
"deny"
{
}
"allow"
{
"overcomeimmunity"
"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"
}
"inherit_from"
{
"admin"
}
}
"Pirate Captain"
{
"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"
}
}
"Royal Fleet Commander"
{
"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"
}
}
"Spanish Armada Capitán"
{
"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"
}
}
"Pirate"
{
"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"
{
}
"Spanish Armada"
{
"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"
{
}
"British Royal Fleet"
{
"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 AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uteam Help
« Reply #5 on: June 30, 2008, 06:50:18 PM »
Hate to bump my own thread but anyone have any insight on this, I've been waiting all day  :'(

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Uteam Help
« Reply #6 on: June 30, 2008, 09:53:56 PM »
Grrrrr. I had a really nice reply to this all typed up and then the power went out while I was verifying a few things before posting.

Well, here we go again.

1) Check all of your {}'s in UTeam.txt. You have a few mismatched ones
2) You are going to have create a new usergroup for each team that has the same access level, or they will all end up on the team with the lowest number.
Based on the information in your first post you will probably want to do something like

groups.txt
Code: [Select]
"superadmin"
{
"inherit_from"
{
"spanishcap"
"piratecap"
"englishcom"
}
}

"spanishcap"
{
"inherit_from"
{
"admin"
"spanish"
}
}

"piratecap"
{
"inherit_from"
{
"admin"
"pirate"
}
}

"englishcom"
{
"inherit_from"
{
"admin"
"english"
}
}

"admin"
{
"inherit_from"
{
"operator"
}
}

"operator"
{
"inherit_from"
{
"respected"
}
}

"spanish"
{
"inherit_from"
{
"respected"
}
}

"pirate"
{
"inherit_from"
{
"respected"
}
}

"english"
{
"inherit_from"
{
"respected"
}
}

"respected"
{
"inherit_from"
{
"user"
}
}

UTeam.txt
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Admiral"
"group" "superadmin"
}

"2"
{
"name" "Spanish Armada Capitán"
"group" "spanishcap"
}

"3"
{
"name" "Pirate Capitan"
"group" "piratecap"
}

"4"
{
"name" "English Fleet Commander"
"group" "englishcom"
}

"5"
{
"name" "Spanish Armada"
"group" "spanish"
}

"6"
{
"name" "Pirate"
"group" "pirate"
}

"7"
{
"name" "English Royal Fleet"
"group" "english"
}

"8"
{
"name" "Beggar"
"group" "user"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}

Now obviously I've left off quite a few pieces from both for my own sanity's sake, but they should be trivial to add.
For groups.txt, start by copying the above over /garrysmod/data/ULib/groups.txt, then delete misc_registered.txt in the same directory. Restart your server, and ULX will re-apply all the default allow/deny tables. From there you can modify access to suit your needs. The inheritance should be fairly easy to follow, remember it's recursive, and only pulls the allows, not denies.

For UTeam.txt, just add in your colors, models, gamemodes, etc...

This will give you the nice branching structure I believe you are looking for, allowing you to assign people access to one of the three branches.


Also, you have me quite intrigued by this interesting team layout. If you don't mind me asking, how did this come about?
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uteam Help
« Reply #7 on: June 30, 2008, 10:03:48 PM »
Grrrrr. I had a really nice reply to this all typed up and then the power went out while I was verifying a few things before posting.

Well, here we go again.

1) Check all of your {}'s in UTeam.txt. You have a few mismatched ones
2) You are going to have create a new usergroup for each team that has the same access level, or they will all end up on the team with the lowest number.
Based on the information in your first post you will probably want to do something like

groups.txt
Code: [Select]
"superadmin"
{
"inherit_from"
{
"spanishcap"
"piratecap"
"englishcom"
}
}

"spanishcap"
{
"inherit_from"
{
"admin"
"spanish"
}
}

"piratecap"
{
"inherit_from"
{
"admin"
"pirate"
}
}

"englishcom"
{
"inherit_from"
{
"admin"
"english"
}
}

"admin"
{
"inherit_from"
{
"operator"
}
}

"operator"
{
"inherit_from"
{
"respected"
}
}

"spanish"
{
"inherit_from"
{
"respected"
}
}

"pirate"
{
"inherit_from"
{
"respected"
}
}

"english"
{
"inherit_from"
{
"respected"
}
}

"respected"
{
"inherit_from"
{
"user"
}
}

UTeam.txt
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Admiral"
"group" "superadmin"
}

"2"
{
"name" "Spanish Armada Capitán"
"group" "spanishcap"
}

"3"
{
"name" "Pirate Capitan"
"group" "piratecap"
}

"4"
{
"name" "English Fleet Commander"
"group" "englishcom"
}

"5"
{
"name" "Spanish Armada"
"group" "spanish"
}

"6"
{
"name" "Pirate"
"group" "pirate"
}

"7"
{
"name" "English Royal Fleet"
"group" "english"
}

"8"
{
"name" "Beggar"
"group" "user"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}

Now obviously I've left off quite a few pieces from both for my own sanity's sake, but they should be trivial to add.
For groups.txt, start by copying the above over /garrysmod/data/ULib/groups.txt, then delete misc_registered.txt in the same directory. Restart your server, and ULX will re-apply all the default allow/deny tables. From there you can modify access to suit your needs. The inheritance should be fairly easy to follow, remember it's recursive, and only pulls the allows, not denies.

For UTeam.txt, just add in your colors, models, gamemodes, etc...

This will give you the nice branching structure I believe you are looking for, allowing you to assign people access to one of the three branches.


Also, you have me quite intrigued by this interesting team layout. If you don't mind me asking, how did this come about?



I can not thank you enough! I will try this now. Also, It's somewhat of a odd story of how this came up.  I bought a server from www.counter-strike.com for something around $15 for a 10 slot. I loaded it with phx3, wire, gcx, sg, etc. and they complained about cpu usage and reinstalled the server deleteing everything. So me and the admins on the server were trying to figure a way to have a fun gmod gamemode and also use less bandwith. There was a naval rp server which is pretty imilar to this (only with a coded rp plugin) and we pretty much copied their idea. If you ever want to join the server I will make you admin It's called Genesis Gaming [Naval Combat] 65.99.210.179:27015


edit: can you add "beggar" to groups.txt so that when you join the server that's what you are

edit2: nvm I see wat u did thar
« Last Edit: June 30, 2008, 10:06:30 PM by AngryBarrel »

Offline AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uteam Help
« Reply #8 on: June 30, 2008, 10:27:57 PM »
It still doesn't seem to be working  :'( :'(

I can add myself as englishcom, pirate, piratecap, etc. btu it doesn't change my color, model, etc. Can you take a look at my Uteam.txt sorry I'm so noob at this


Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Admiral"
"group" "superadmin"
                        "color"

{
"r" "255"
"g" "255"
"b" "255"
"a" "255"
}
"hp" "500"
"armor" "400"
"model" "super"
"plytable"
{
"1" "SprintSpeed:750"
"2" "WalkSpeed:400"
}
}
"2"
{
"name" "Spanish Armada Capitán"
"group" "spanishcap"
                         "color" //The team's color
{
"r" "220" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "barney" //(*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:600" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:300" //Set the player's walk speed (Def. 250)
}
}

"3"
{
"name" "Pirate Capitan"
"group" "piratecap"
                        "color"

{
"r" "30" //Red value
"g" "30" //Green Value
"b" "30" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200" //(*Optional*) Player's initial health.
"armor" "50" //(*Optional*) Player's initial armor.
"model" "combine" //(*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:600" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:300" //Set the player's walk speed (Def. 250)
}

"4"
{
"name" "Royal Fleet Commander"
"group" "englishcom"
                        "color"

{
"r" "0" //Red value
"g" "0" //Green Value
"b" "220" //Blue Value
"a" "255" //Alpha Value
}
"hp" "200" //(*Optional*) Player's initial health.
"armor" "100" //(*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:600" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:300" //Set the player's walk speed (Def. 250)
}
}

"5"
{
"name" "Spanish Armada"
"group" "spanish"
                         "color" //The team's color
{
"r" "255" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "150" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "barney" //(*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:550" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:275" //Set the player's walk speed (Def. 250)
}
}


"6"
{
"name" "Pirate"
"group" "pirate"
                        "color" //The team's color
{
"r" "0" //Red value
"g" "0" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "150" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "combine" //(*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:550" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:275" //Set the player's walk speed (Def. 250)
}

}

"7"
{
"name" "English Royal Fleet"
"group" "english"
        "color" //The team's color
{
"r" "0" //Red value
"g" "0" //Green Value
"b" "255" //Blue Value
"a" "255" //Alpha Value
}
"hp" "150" //(*Optional*) Player's initial health.
"armor" "100" //(*Optional*) Player's initial armor.
"model" "breen" //(*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:550" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:275" //Set the player's walk speed (Def. 250)
}
}

"8"
{
"name" "Beggar"
"group" "user"
                        "color" //The team's color
{
"r" "0" //Red value
"g" "200" //Green Value
"b" "0" //Blue Value
"a" "255" //Alpha Value
}
"hp" "100" //(*Optional*) Player's initial health.
"armor" "0" //(*Optional*) Player's initial armor.
"model" "male2" //(*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:500" //Set the player's sprint speed (Def. 500)
"2" "WalkSpeed:250" //Set the player's walk speed (Def. 250)
}


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







Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Uteam Help
« Reply #9 on: June 30, 2008, 10:43:48 PM »
You're missing a closing } on teams 3 & 8.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline AngryBarrel

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Uteam Help
« Reply #10 on: June 30, 2008, 11:24:34 PM »
You're missing a closing } on teams 3 & 8.


Works great.


Thank you so so so much, complimented  ;D

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Uteam Help
« Reply #11 on: July 01, 2008, 06:35:13 PM »
Glad you got it working. Just keep an eye on syntax when editing. (Yes, we as devs often make this mistake too)

Re: Admin access - Though I can't speak for spbogie, I'll speak for myself. (I know, it wasn't offered to me, but, it has been in past)
Please don't give one of us admin access unless we want/need it to trouble shoot an issue on your server.
1) People like to imitate us at times to try to get access. (Imitation is a good form of flattery, even if misguided and often abused)
2) We like to play or see how others use our mod. Making us admin usually acts like we're expected to work. YUCK!
:P :D

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming