Ulysses
General => Off-Topic => Topic started by: Hizan 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
-Hizan ;)
-
http://en.wikipedia.org/wiki/RGB
0 through 255 on each value.
-
Thanks sooooooooooooooooooooooooo much!!
-
Would it work by me typing these numbers in order: (http://img403.imageshack.us/img403/2031/livejm4.png)
-
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...
"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...
"color"
{
"a" "255"
"B" "4"
"g" "4"
"r" "174"
}
-
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 ???
-
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>
-
"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"
}
}
-
That is my UTEAM set up
Superadmin = red
Admin = blue
vip = green
user = green
-
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
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