ULX

Author Topic: Ranks turn yellow after second join.  (Read 4813 times)

0 Members and 2 Guests are viewing this topic.

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Ranks turn yellow after second join.
« on: May 24, 2009, 01:41:33 AM »
Okay this is the deal. Me and 2 other guys just rented a server, i installed Ulx ulib sui_scoreboard and uteam. They work abit as i want... And here i got 2 problems currently.

1.
I can only use the "default" ranks with the uteam grouping, like i can only make people superadmin admin and regular, but not my custom ranks, code:


Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Server Owner"
"group" "owner"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "150"
"g" "150"
"r" "150"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Founders"
"group" "founder"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "100"
"g" "100"
"r" "100"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"3"
{
"name" "Superadmins"
"group" "superadmin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "255"
"r" "255"
}
"plytable"
{
"1" "SprintSpeed:800"
"2" "WalkSpeed:300"
}
}
"4"
{
"name" "Admins"
"group" "admin"
"armor" "300"
"hp" "300"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
}
"5"
{
"name" "Moderators"
"group" "mod"
"armor" "150"
"hp" "150"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "255"
}
}
"6"
{
"name" "V.I.P"
"group" "vip"
"armor" "400"
"hp" "400"
"color"
{
"a" "255"
"B" "0"
"g" "195"
"r" "255"
}
}
"7"
{
"name" "Regulars"
"group" "user"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}

}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
"3" "darkrp"
}
}
2.
When people join the server first time, they can see what admin ranks people got and thier colors, but second time they join, everybody is yellow and there is no text under admin rank.
« Last Edit: May 24, 2009, 02:58:00 AM by Donkie »

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #1 on: May 24, 2009, 11:05:59 AM »
Anyone? :S

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ranks turn yellow after second join.
« Reply #2 on: May 24, 2009, 09:26:16 PM »
Not sure about 2; but I want to focus on 1 first.

Have you created the groups using ULX for the custom groups?
You must have ULib groups already created, which can be done in two ways.
2) Through ulx addgroup (then adduser) command, or, /settings/users.txt, the standard default GMod way of creating groups/assigning people to those groups.

Also, if you've used the users.txt file for gmod, you can't have them in more than one group, even using ULX. They'll always be assigned the lowest group from /settings/users.txt

UTeam has no effect on actually creating the groups. It only reads what ULib say's they're in and assigns them accordingly.

Off the top of my head, it sounds as though you have some people listed in more than one group.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #3 on: May 25, 2009, 08:27:23 AM »
Well i have only edited UTeam.txt, so there is somewhere else you need to change with the groups for em to work?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ranks turn yellow after second join.
« Reply #4 on: May 25, 2009, 05:35:59 PM »
\so there is somewhere else you need to change with the groups for em to work?
Have you created the groups using ULX for the custom groups?
You must have ULib groups already created, which can be done in two ways.
2) Through ulx addgroup (then adduser) command, or, /settings/users.txt, the standard default GMod way of creating groups/assigning people to those groups.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #5 on: May 26, 2009, 11:48:40 AM »
Oke, i added my custom groups with
  • ulx addgroup owner
  • ulx addgroup founder
  • ulx addgroup vip
  • ulx addgroup mod

When i restarted server, they wont show up in groups.txt. Is that ment to be so? And what do i do next now?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Ranks turn yellow after second join.
« Reply #6 on: May 26, 2009, 03:30:21 PM »
Which groups file... ULib's?
They're not appearing in gmod/data/ULib/groups.txt ??
Did you get errors in console after adding them?

Did you/are you capable of adding people to those groups using adduser?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #7 on: May 27, 2009, 04:14:53 AM »
Okay the groups shows up in groups.txt now, but one thing i dont understand is the inherit_from. Lets say the admin rank got ulx slap and ulx kick, then if superadmin got ulx whip, ulx ragdoll and ulx unragdoll and superadmin does inherit from admin, makes that superadmin got ulx slap, ulx kick, ulx whip, ulx ragdoll and ulx unragdoll? So inherit takes the group it inherit from and adds that groups commands with the selected group?

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #8 on: May 27, 2009, 04:37:05 AM »
Beutiful, right now i just broke admins on ulx. Hers my groups.txt:
Code: [Select]
"owner"
{
"deny"
{
}
"allow"
{
}
"inherit_from"
{
"founder"
}
}
"founder"
{
"deny"
{
}
"allow"
{
"ulx luarun"
"ulx cexec"
"ulx adduser"
"ulx adduserid"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
}
"inherit_from"
{
"superadmin"
}
}
"superadmin"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx rcon"
"ulx ent"
"ulx removeuser"
"ulx groupallow"
"ulx groupdeny"
"overcomeimmunity"
}
"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 bring"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx map"
"ulx kick"
"ulx ban"
"ulx banid"
"ulx unban"
"ulx spectate"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"mod"
}
}
"mod"
{
"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 slay"
"ulx freeze"
"ulx unfreeze"
"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 strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx kick"
"ulx ban"
"ulx unban"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"user"
}
}
"vip"
{
"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 slay"
"ulx freeze"
"ulx unfreeze"
"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 strip"
"ulx adminmenu"
"ulx clientmenu"
"ulx mapsmenu"
"ulx showmotd"
"ulx banmenu"
"ulx goto"
"ulx send"
"ulx teleport"
"ulx kick"
"ulx ban"
"ulx unban"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"user"
}
}
"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"
}
}
"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"
{
}
}

And here is uteam.txt:
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Server Owner"
"group" "owner"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "150"
"g" "150"
"r" "150"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Founders"
"group" "founder"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "100"
"g" "100"
"r" "100"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"3"
{
"name" "Superadmins"
"group" "superadmin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
"plytable"
{
"1" "SprintSpeed:800"
"2" "WalkSpeed:300"
}
}
"4"
{
"name" "Admins"
"group" "admin"
"armor" "300"
"hp" "300"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
}
"5"
{
"name" "Moderators"
"group" "mod"
"armor" "150"
"hp" "150"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "255"
}
}
"6"
{
"name" "V.I.P"
"group" "vip"
"armor" "400"
"hp" "400"
"color"
{
"a" "255"
"B" "0"
"g" "195"
"r" "255"
}
}
"7"
{
"name" "Regulars"
"group" "user"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "0"
"g" "255"
"r" "0"
}

}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
"3" "darkrp"
}
}

And yes, i added myself in users.txt altough when i join im still regular :S

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #9 on: May 29, 2009, 05:32:05 AM »
:S Our servers ULX has broken and noone exept for FTP owners can be admins. Help please!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ranks turn yellow after second join.
« Reply #10 on: May 29, 2009, 08:20:09 AM »
The person who owns your FTP removed all other users but him/herself?
Experiencing God's grace one day at a time.

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #11 on: May 29, 2009, 09:05:40 AM »
No but, only FTP owners that got access to serverconsole can do trough there.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Ranks turn yellow after second join.
« Reply #12 on: May 29, 2009, 10:11:08 AM »
I honestly haven't the slightest idea what you're saying.
Experiencing God's grace one day at a time.

Offline Donkie

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Re: Ranks turn yellow after second join.
« Reply #13 on: May 29, 2009, 10:21:27 AM »
Meh nvm then ^^. Got slightest idea of what the problem is?  ???