Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Unsmart on October 18, 2009, 10:09:19 PM

Title: Uteam+Ulx
Post by: Unsmart on October 18, 2009, 10:09:19 PM
Hello, Id like to ask, how would I configure ULX to work correctly with Uteam? I'm switching from Assmod to ULX so, Id pretty much like to have:

Owner
SuperAdmin
Admin
Respected
Player

I know I have to edit the Uteam.txt for the users, but can I directly promote people to Uteam groups? (promote me "Owner")

Currently this is my Uteam.txt in data folder:
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Owner"
"group" "superadmin"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:5000"
"2" "WalkSpeed:1000"
}
}
"2"
{
"name" "SuperAdmin"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"3"
{
"name" "Admin"
"group" "admin"
"armor" "100"
"hp" "500"
"color"
{
"a" "0"
"B" "50"
"g" "50"
"r" "255"
}
}
"4"
{
"name" "Operator"
"group" "operator"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "0"
"g" "200"
"r" "255"
}
}
"5"
{
"name" "Player"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}

and my groups.txt: again in data folder
Code: [Select]
//ATTENTION! This is a default file. DO NOT EDIT THIS FILE!!!
//Instead, edit the version in <garrysmod root>/data/ULib/groups.txt if it exists. If it doesn't, copy this file over to create it.
//IF YOU MAKE CHANGES TO THIS FILE THEY WILL BE ERASED!

"Operator"
{
"allow"
{
}
}

"admin"
{
"allow"
{
}
"inherit_from" "Operator"
}

"superadmin"
{
"allow"
{
}
"inherit_from" "Admin"
}
"owner"
{
"allow"
{
}
"inherit_from" "Superadmin"
}
// This is your default user. Everyone is considered part of this group so handle with care!
"Player"
{
"allow"
{
}
}


In other words, how do I get ULX to like Uteam (along with UPS, restrict etc)
Title: Re: Uteam+Ulx
Post by: jay209015 on October 18, 2009, 11:51:58 PM
If I'm understanding your correctly. You want UPS, URestict, Ulx, and other addons to use your UTeams names instead of the group names. As simple as it may sound, this would require us to rewrite a lot of the code that goes along with these addons. Simply put, our addons are made to be as universal as possible within the boundries of ULib.
Title: Re: Uteam+Ulx
Post by: Unsmart on October 19, 2009, 10:54:24 AM
Ok then, so how would I get Uteam to like ULX, not the other way round.


Basicly I want to get Uteam to display the ULX team names
Title: Re: Uteam+Ulx
Post by: jay209015 on October 19, 2009, 03:54:55 PM
Make Name and Group attributes the same in the UTeam.txt

"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "Superadmin"
         "group"      "superadmin"
         "armor"      "1337"
         "hp"      "1337"
         "color"
         {
            "a"      "255"
            "B"      "85"
            "g"      "200"
            "r"      "0"
         }
         "plytable"
         {
            "1"      "SprintSpeed:5000"
            "2"      "WalkSpeed:1000"
         }
      }
      "2"
      {
         "name"      "Admin"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "50"
            "r"      "255"
         }
      }
      "3"
      {
         "name"      "Operator"
         "group"      "operator"
         "armor"      "200"
         "hp"      "200"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "200"
            "r"      "255"
         }
      }
      "4"
      {
         "name"      "User"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}
Title: Re: Uteam+Ulx
Post by: JamminR on October 19, 2009, 04:49:19 PM
Unsmart, seems your're editing the wrong groups.txt file too.
Though I've been known to be wrong. I don't think <gmod root>/data/Ulib/groups.txt keeps the warnings that show in comments "//" about not editing the file.
IF (and we strongly discourage text editing, for this reason and others) you are going to edit a file.. make sure it's <gmod root>/data/ULib/<file>
NOT
<gmod root>/addons/ULib/data/ULib/<file>

Just keep in mind, in the Gmod Lua world, teams have NOTHING to do with groups.
Team names are just that... names.
Groups on the other hand, ULib or no ULib, give you access to (whatever scripts/server access granted them)
Garry's mod alone, with no other addons, allows you to set access to certain default weapons and sents by having admin (or superadmin access). It also allows you to set server functions while on depending on access.

UTeam just ties in groups to names. Bases colors based on teams.
Sui_scoreboard (and it's variants) base it's colors and information on teams.
Title: Re: Uteam+Ulx
Post by: Unsmart on October 19, 2009, 10:05:21 PM
Make Name and Group attributes the same in the UTeam.txt

"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "Superadmin"
         "group"      "superadmin"
         "armor"      "1337"
         "hp"      "1337"
         "color"
         {
            "a"      "255"
            "B"      "85"
            "g"      "200"
            "r"      "0"
         }
         "plytable"
         {
            "1"      "SprintSpeed:5000"
            "2"      "WalkSpeed:1000"
         }
      }
      "2"
      {
         "name"      "Admin"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "50"
            "r"      "255"
         }
      }
      "3"
      {
         "name"      "Operator"
         "group"      "operator"
         "armor"      "200"
         "hp"      "200"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "200"
            "r"      "255"
         }
      }
      "4"
      {
         "name"      "User"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}

thank you! this seems to work!