Author Topic: Uteam+Ulx  (Read 3690 times)

0 Members and 1 Guest are viewing this topic.

Offline Unsmart

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Uteam+Ulx
« 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)
« Last Edit: October 18, 2009, 10:15:22 PM by Unsmart »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Uteam+Ulx
« Reply #1 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.
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 Unsmart

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Uteam+Ulx
« Reply #2 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
« Last Edit: October 19, 2009, 12:22:49 PM by Unsmart »

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: Uteam+Ulx
« Reply #3 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"
   }
}
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 JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Uteam+Ulx
« Reply #4 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.
« Last Edit: October 19, 2009, 04:54:59 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Unsmart

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Uteam+Ulx
« Reply #5 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!