ULX

Author Topic: Help!  (Read 4368 times)

0 Members and 1 Guest are viewing this topic.

Offline Hizan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Help!
« on: December 24, 2007, 04:16:38 PM »
Hello, first post just registered  8) 

Okay so, my friend wants me to configure ULX for him, so, i did..
Then what he said: "is there any thing ranks people" i said "Yes, UTeam..."

The point is, i need help with UTeam, i didn't know where els to post than here, cause UTeam works with ULX...
K, so i need help with: The Ranks colors, cause i heard you had to do these 'RGB' things i think they are RGB..
And i need help with finding these 'RGB' Color code things
Thank you


-Hizan   ;)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: Help!
« Reply #1 on: December 24, 2007, 04:34:01 PM »
http://en.wikipedia.org/wiki/RGB

0 through 255 on each value.
Experiencing God's grace one day at a time.

Offline Hizan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Help!
« Reply #2 on: December 24, 2007, 05:50:16 PM »
Thanks sooooooooooooooooooooooooo much!!

Offline Hizan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Help!
« Reply #3 on: December 25, 2007, 03:19:27 AM »
Would it work by me typing these numbers in order:

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help!
« Reply #4 on: December 25, 2007, 04:25:45 AM »
Forget Hue, Sat, and Lum. You only need Red, Green, and Blue.

In the UTeam.txt file where you set up your teams it believe it looks a little something like this...
Code: [Select]
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}

If you are using the color viewer from MSPaint.. which is what I think you are using the
Red from that goes where you see "r"      "number"
Green from that goes where you see "g"      "number"
Blue from that goes where you see "b"      "number"


the "a" is alpha.. not sure how it effects this code though.. so leave that at 255.


So in your picture.. it would be this in the config...
Code: [Select]
"color"
{
"a" "255"
"B" "4"
"g" "4"
"r" "174"
}
« Last Edit: December 25, 2007, 04:27:34 AM by zakap »

Offline Hizan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Help!
« Reply #5 on: December 25, 2007, 07:07:02 AM »
Okay, i under stand the color thing, but i don't know where to put UTeam i tryed overwriding the files, like you should all ways do
And woopy, didnt work.. cause i go in game and it dont work, and how do i convert the colors into those HEX things.. i think there called HEX  ???

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Help!
« Reply #6 on: December 25, 2007, 03:53:58 PM »
Alpha is transparency. 0 = invisible, 255 = bright as daylight.

For hex, look here: http://www.johncfish.com/bggallery/otherchart/hextable.gif

Or just google 'hex color chart'.

I've never used hex in lua before, but it works like this:

<font color="#6666FF">This text would be blue.</font>


Offline louis

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: Help!
« Reply #7 on: December 27, 2007, 02:37:20 AM »
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "SuperAdmin"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "50"
"g" "50"
"r" "255"
}
}
"2"
{
"name" "Admin"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "0"
}
}
"3"
{
"name" "Vip"
"group" "vip"
"armor" "400"
"hp" "400"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}
}
"4"
{
"name" "Player"
"group" "user"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}

Offline louis

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: Help!
« Reply #8 on: December 27, 2007, 02:38:25 AM »
That is my UTEAM set up
Superadmin = red
Admin = blue
vip = green
user = green

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Help!
« Reply #9 on: December 27, 2007, 11:22:01 AM »
since you apparently can't seem to find it on your own (it's right there with the other two files, I don't know how you couldn't) here's the contents of UTeam_readme.txt
Quote
UTeam
  By: spbogie [Ulysses Team]

Installation:
  place UTeam.txt in garrysmod/data
  place UTeam.lua in garrysmod/lua/autorun


ChangeLog:
 version 1.1
  +Added support for setting variables on the player table (ie. SprintSpeed)
  *Fixed errors when running on gamemodes not in list
  *Gamemodes are based off name in scoreboare, but are no longer case-sensitive

Config Format (UTeam.txt):
"Out"
{
   "teams"
   {
      "1"      //Team index. Start at 1 and go up. Team priority lowest first.
      {
         "name"      "Name"      //Name of the team.
         "group"      "usergroup"   //Usergroup required for the team. Works with garry's default and UCL.
         "color"            //The team's color
         {
            "r"      "255"      //Red value
            "g"      "100"      //Green Value
            "b"      "0"      //Blue Value
            "a"      "255"      //Alpha Value
         }
         "hp"      "500"      //(*Optional*) Player's initial health.
         "armor"      "500"      //(*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:1000"   //Set the player's sprint speed (Def. 500)
            "2"      "WalkSpeed:500"      //Set the player's walk speed (Def. 250)
         }
      }
   }
   "gamemodes"      //Gamemodes to load on
   {
      "1"      "Sandbox"      //To add additional increase number each time
   }
}

Valid player Models:
  alyx
  barney
  breen
  charple
  combine
  corpse
  eli
  female1
  female2
  female3
  gman
  kleiner
  male1
  male2
  male3
  monk
  mossman
  odessa
  police
  prison
  super
  zombie
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