ULX

Author Topic: Team Colours :(  (Read 3068 times)

0 Members and 1 Guest are viewing this topic.

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Team Colours :(
« on: May 23, 2008, 05:23:31 AM »
I can't seem to set the team colours...

What I want is:

SuperAdmin - Green
Admin - Red
Operator - Orange
User - Blue

What I've got is:

SuperAdmin - Green
Admin - Green
Operator - Blue
User - Blue



All my colours are set (Uteam.txt) using the RGBA sets...

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Team Colours :(
« Reply #1 on: May 23, 2008, 06:33:25 AM »
And how can we help you with only part of the information?
Experiencing God's grace one day at a time.

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Team Colours :(
« Reply #2 on: May 23, 2008, 06:42:30 AM »
This is my Uteam.txt


"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "SuperAdmins"
         "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"      "66"
            "g"      "136"
            "r"      "227"
         }
      }
      "4"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
         "model"      "male16"
      }
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}













And my Groups.txt


"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 hasreadhelp"
   }
   "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"
   }
   "inherit_from"   
   {
      "operator"
   }
}
"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"   
   {
      "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"   
   {
   }
}
"operator"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx seeasay"
                "ulx bring"
      "ulx goto"
                "ulx freeze"
      "ulx unfreeze"
                "ulx jail"
      "ulx unjail"
                "ulx kick"
                "ulx slay"
                "ulx slap"
                "ulx teleport"
                "ulx clientmenu"
   }
   "inherit_from"   
   {
                "operator"
   }
}

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Team Colours :(
« Reply #3 on: May 23, 2008, 03:39:01 PM »
Lua is case sensitive.
Don't capitalise your "B" in your rgb setup.
See if that helps.
Come back with next symptom if it doesn't fix.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bounty_Bam

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Team Colours :(
« Reply #4 on: May 24, 2008, 02:04:13 AM »
hmm I seem to have have 'half' got it, my operator has an orange name (when looking at him in-game) but his name in the scoreboard (Tab) is still a blue bar. Should I still try making the 'B' a 'b' ?  :)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Team Colours :(
« Reply #5 on: May 24, 2008, 07:01:06 AM »
Just to verify, make sure you're using SUI_Scoreboard remixed from our releases section.
Garry's default won't show changed colors.

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

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Team Colours :(
« Reply #6 on: May 27, 2008, 02:46:08 PM »
The capitilization of the B is an artifact of the util.KeyValuesToTable. The keys all become lowercase when imported anyways.

The problem is that you are using the default scoreboard (as jam suggested) which only makes 3 distinctions (admin, player, and connecting). Anyone with admin access (superadmin, admin, or anything inheriting from them if you've defined custom groups) is colored green. People connecting are I think yellow, and everyone else is blue. It doesn't check teams at all, just access and connection status.

If you want it to use the team colors you will need to use a custom scoreboard that is designed to do so (ie. sui_scoreboard).
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