ULX

Author Topic: UTeam - Set teams based on usergroup.  (Read 319738 times)

0 Members and 2 Guests are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: UTeam - Set teams based on usergroup.
« Reply #165 on: March 09, 2009, 12:13:55 PM »
So you have the correct powers to your rank, just not the correct team placement?
Experiencing God's grace one day at a time.

Offline Darkflamer

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #166 on: March 09, 2009, 12:17:10 PM »
So you have the correct powers to your rank, just not the correct team placement?

Nope, nothing. No colors, no health bonus, no sprint. No nothing :/...
Which really is a shame, because I think the possibilities with this script are endless.

Offline Darkflamer

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #167 on: March 10, 2009, 09:08:24 AM »
Not sure as what to do, I've used notepad++ to count the brackets, and both come up to the same number.
Also, bump I guess....

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #168 on: March 10, 2009, 03:19:09 PM »
Darkflame, what Megiddo meant by 'powers in rank'... the admin group you're a part of, do you have access to do it's commands? That is, does ULib see you as part of that group (which translates to a team)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Darkflamer

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #169 on: March 11, 2009, 02:40:08 AM »
Darkflame, what Megiddo meant by 'powers in rank'... the admin group you're a part of, do you have access to do it's commands? That is, does ULib see you as part of that group (which translates to a team)


Yeah, I do. ULib registers me as a superadmin. I have access to all the commands from ulx.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UTeam - Set teams based on usergroup.
« Reply #170 on: March 21, 2009, 06:51:25 PM »
This may be a bit difficult to accomplish if it's a dedicated server, but could you get the output from lua_run PrintTable( UTeam ) on the server?
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

Offline Corvx

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
Re: UTeam - Set teams based on usergroup.
« Reply #171 on: March 23, 2009, 06:38:51 PM »
I've got the same problem as Darkflamer and I typed "rcon lua_run PrintTable( UTeam )" into console and got this output:

> PrintTable ( UTeam )...
includes\util.lua:21: bad argument #1 to 'pairs' (table expected, got nil)


also I've got the ulib downloaded from svn and is at revision: 25

Hope it helps...

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: UTeam - Set teams based on usergroup.
« Reply #172 on: March 24, 2009, 05:54:59 AM »
Corvx,
The script is never being run. Make sure you have UTeam.lua in the correct location. If so, try running it manually with rcon lua_openscript autorun/UTeam.lua.
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

Offline Corvx

  • Newbie
  • *
  • Posts: 3
  • Karma: 1
Re: UTeam - Set teams based on usergroup.
« Reply #173 on: March 24, 2009, 04:33:48 PM »
Okay I had the lua file in the wrong place, it's working now. Thank you.

Offline fabendog

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #174 on: March 28, 2009, 10:05:15 PM »
Ok, so my server got messed up. The company that I rent the server from has to reinstall everything to the server. When I added uteam and sui_scoreboard to my server. They weren't working. I've spent all day trying to fix it.
Help would be awesome.
I put sui_scoreboard in the addons folder
I put uteam.lua in lua/autorun
and I put uteam.txt in data
The scoreboard doesn't even change from the default one when you first start gmod.
And when I talk the color isn't what I set it as in uteam.txt.... anyone help pl0x???
UTEAM ROX

Offline ahref

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 4
Re: UTeam - Set teams based on usergroup.
« Reply #175 on: March 29, 2009, 04:50:50 AM »
its update 61 from garry it brakes a few things wait for 62

Offline fabendog

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #176 on: March 29, 2009, 07:55:46 AM »
And how long should I wait for 62?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UTeam - Set teams based on usergroup.
« Reply #177 on: March 29, 2009, 08:50:23 AM »
Fabendog, we have no idea. We don't make Gmod.
That's the patch # he's referring to.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ahref

  • Jr. Member
  • **
  • Posts: 62
  • Karma: 4

Offline fabendog

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #179 on: March 29, 2009, 05:53:51 PM »
Can someone check this for me?
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Server Owner"
"group" "serverowner"
"armor" "50000"
"hp" "50000"
"color"
{
"a" "255"
"B" "236"
"g" "236"
"r" "0"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Co-Owners"
"group" "coowner"
"armor" "25000"
"hp" "25000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
}
"3"
{
"name" "SuperAdmins"
"group" "superadmin"
"armor" "10000"
"hp" "10000"
"color"
{
"a" "255"
"B" "0"
"g" "128"
"r" "255"
}
}
"4"
{
"name" "Admins"
"group" "admin"
                                                        "armor"                        "5000"
                                                        "hp"                              "5000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
                                                        }
                                     }
                                     "5"
                                     {
                                                        "name"                        "Trusted"
                                                        "group"                        "trusted"
                                                        "armor"                        "1000"
                                                        "hp"                              "1000"
                                                        "color"             
                                                        {
                                                                           "a"                                 "255
                                                                           "B"                                 "6"
                                                                           "g"                                 "237"
                                                                           "r"                                  "249"
                                                        }
                                     }
                                     "6"
                                     {
                                                        "name"                        "Regular"
                                                        "group"                        "regular"
                                                        "armor"                        "500"
                                                        "hp"                              "500"
"color"
                                                        {
                                                                           "a"                                  "255"
                                                                           "B"                                  "0"
                                                                           "g"                                  "255"
                                                                           "r"                                   "0"
                                                        }
                                     }
                                     "7"
                                     {
                                                        "name"                        "Player"
                                                        "group"                        "user"
                                                        "color"
                                                        {
                                                                           "a"                                  "255"
                                                                           "B"                                  "255"
                                                                           "g"                                  "0"
                                                                           "r"                                   "0"
                                                        }
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}


and



Code: [Select]
"serverowner"
{
                  "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"
                  }
                  "inherit_from"
                  {
                                      "coowner"
                  }
}
"coowner"
{
                  "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"
                  }
                  "inherit_from"
                  {
                                     "superadmin"
                  }
}
"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"
}
"inherit_from"
{
"admin"
}
}
"admin"
{
"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 physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx nomusic"
}
"deny"
{
"ulx musicurl"
}
}
"trusted"
{
"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"
"ulx nomusicme"
                                     "ulx teleport"
                                     "ulx goto"
                  }
"inherit_from"
{
}
}
"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"
"ulx nomusicme"
}
"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"
"ulx music"
"ulx musicurl"
"ulx musicstop"
}
"inherit_from"
{
}
}
« Last Edit: March 29, 2009, 06:03:05 PM by fabendog »