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

0 Members and 4 Guests are viewing this topic.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: UTeam - Set teams based on usergroup.
« Reply #135 on: September 28, 2008, 03:51:23 PM »
Quote
Now I think I am stupid.  Sad

I added the operator group twice :/
    - Don't worry about it, we all make mistakes  ;)
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline TehBigA

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #136 on: October 13, 2008, 01:55:33 PM »
Hello! Long time no see. Just had a quick question. I'm currently working on a gamemode and for my own reasons I wanted to embed UTeam into the game mode and make some changes to it. Is that alright with you guys? Giving you credit of course.

Offline deadeye536

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
  • Happy to help :P
    • My Personal site.
Re: UTeam - Set teams based on usergroup.
« Reply #137 on: October 28, 2008, 05:55:51 PM »
Hey! I'm having a little problem with UTeam and everyone showing up as unassigned. I have tried a few things as you can see on the UTeam.txt file that i put about 17 case possibilities for Sandbox gamemode. Also, I have tried the UTeam.lua file in 2 locations, /lua/autorun (what the readme said) and /addons/ULib/lua/autorun (noticed the similarity in folder names).

UTeam.txt
Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Teh Leader"
"group" "superadmin"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "0"
}
"model" "gman"
}
"2"
{
"name" "Head Admins"
"group" "admin"
"armor" "1336"
"hp" "1336"
"color"
{
"a" "255"
"B" "65"
"g" "28"
"r" "161"
}
"model" "super"
}
"3"
{
"name" "Admins"
"group" "nysa"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "196"
"g" "0"
"r" "111"
{
"model" "Combine"
}
"4"
{
"name" "Community Members"
"group" "member"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "police"
}
"5"
{
"name" "VIP members"
"group" "operator"
"armor" "300"
"hp" "300"
"color"
{
"a" "255"
"B" "200"
"g" "0"
"r" "0"
}
"model" "monk"
}
"6"
{
"name" "Guests"
"group" "user"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
"3" "sandbox"
"4" "SANDBOX"
"5" "SandBox"
"6" "sandBox"
"7" "SAndbox"
"8" "SANdbox"
"9" "SANDbox"
"10" "SANDBox"
"11" "SANDBOx"
"12" "sANDBOX"
"13" "saNDBOX"
"14" "sanDBOX"
"15" "sandBOX"
"15" "sandbOX"
"16" "sandboX"
"17" "sAndbox"
"18" "saNdbox"
}
}

and my groups.txt file
Code: [Select]
"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"
{
"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 physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
"ulx nomusic"
}
"inherit_from"
{
"operator"
}
}
"nysa"
{
"deny"
{
"ulx tooldeny"
"ulx toolallow"
"ulx exec"
}
"allow"
{
}
"inherit_from"
{
"admin"
}
}
"member"
{
"deny"
{
}
"allow"
{
"ulx cloak"
"ulx uncloak"
"ulx slay"
"ulx seeasay"
"ulx noclip"
}
"inherit_from"
{
"operator"
}
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx goto"
"ulx god"
"ulx ungod"
}
"inherit_from"
{
"user"
}
}
"user"
{
"deny"
{
}
"allow"
{
"ulx music"
"ulx musicurl"
"ulx musicstop"
"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"
{
}
}

Just a note, I have a radio plugiin installed, 1.FM.
Thanks in advanced for any support!
DeaDeye

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 #138 on: October 28, 2008, 06:24:49 PM »
Group 3/Admins/nysa of Uteam.txt, after colors... instead of closing table bracket }, you have another open {

(I found this using a text editor that checks any specified closing tags. It highlights beginning and end tags - I recommend one for editing such code/config files :) )
« Last Edit: October 28, 2008, 06:26:41 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline deadeye536

  • Newbie
  • *
  • Posts: 12
  • Karma: 1
  • Happy to help :P
    • My Personal site.
Re: UTeam - Set teams based on usergroup.
« Reply #139 on: October 28, 2008, 07:23:28 PM »
Thanks, that did the trick! All this time it was a little error such as that  :( Well, at least it works now.
Also, I used to have something like that for PY, but that is all it supports, I'll look into Notepad ++ :)
Again, Thanks
DeaDeye
« Last Edit: October 28, 2008, 07:25:05 PM by deadeye536 »

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 #140 on: October 28, 2008, 08:49:02 PM »
I use Context, it has a Lua plugin. I think some have written Gmod + Lua plugins for Notepad++, if you're so inclined to get them.
Search our forum for the Notepad++ addin. I know it's been mentioned somewhere here.
Back on topic - Syntax - an editors worst nightmare.
You're welcome. And welcome to Ulyssesmod forums.
Hope you enjoy other fine Ulysses (and community) products.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: UTeam - Set teams based on usergroup.
« Reply #141 on: November 04, 2008, 08:52:00 PM »
Hi, the download link isn't working. Can someone please re-upload this? I want this so badly.  :(


YouTube music player by RynO-SauruS

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 #142 on: November 05, 2008, 04:00:26 PM »
Hi, the download link isn't working. Can someone please re-upload this? I want this so badly.  :(
Apparently Megiddo missed some file restores when we switched hosts. Unfortunately, he's out until next Sunday.
He may be able to restore it then if the file is still available in a backup somewhere.

If not, we'll have to wait until Spbogie can repost or attach it to the thread. (I just looked for it in my collection and can't find it unedited)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: UTeam - Set teams based on usergroup.
« Reply #143 on: November 05, 2008, 04:04:28 PM »
Ok, thanks.  ;)


EDIT: Does anyone know of some place I could download this from? If somebody has it already, maybe you could attach the original UTeam 1.1 archive to your post? I would appreciate it very much.

EDIT 2: Oh yes hallelujah:
                                             
« Last Edit: November 05, 2008, 04:49:01 PM by RynO-SauruS »


YouTube music player by RynO-SauruS

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: UTeam - Set teams based on usergroup.
« Reply #144 on: November 05, 2008, 04:55:10 PM »
All I have is UTeam v1.1 in addon format, I'm sure that's not a problem though :D
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline RynO-SauruS

  • Jr. Member
  • **
  • Posts: 77
  • Karma: 17
Re: UTeam - Set teams based on usergroup.
« Reply #145 on: November 05, 2008, 05:04:09 PM »
Thanks.  ;)


YouTube music player by RynO-SauruS

Offline hypermx

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #146 on: December 26, 2008, 03:05:35 PM »
Hey guys at Ulysses.

I have a problem that it just says unassigned when i am on my server.

Uteam.txt:
Code: [Select]
"Out"
{
"teams"
{
"1"

"name" "ServerOwner"
"group" "serverowner"
"color"
{
"r" "0"
"g" "0"
"b" "0"
"a" "200"
}
"hp" "1337"
"armor" "1337"
"model" "combine"
}
"2"
{
"name" "SuperAdmin"
"group" "superadmin"
"color"
{
"r" "203"
"g" "0"
"b" "0"
"a" "255"
}
"hp" "700"
"armor" "700"
"model" "police"
}
"3"
{
"name" "Admin"
"group" "admin"
"color"
{
"r" "0"
"g" "148"
"b" "189"
"a" "255"
}
"hp" "500"
"armor" "500"
"model" "prison"
}
"4"
{
"name" "RegularPlayer"
"group" "rplayer"
"color"
{
"r" "64"
"g" "173"
"b" "38"
"a" "255"
}
"hp" "200"
"armor" "200"
"model" "gman"
}
"5"
{
"name" "Guest"
"group" "guest"
"color"
{
"r" "0"
"g" "203"
"b" "0"
"a" "255"
}
"hp" "100"
"armor" "100"
"model" "kleiner"
}
}
"gamemodes"
{
"1" "Sandbox"
}
}

and my groups.txt

Code: [Select]
"serverowner"
{
"deny"
{
}
"allow"
{
}
"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"
{
"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 physgunplayer"
"ulx vote"
"ulx votemap2"
"ulx votekick"
"ulx voteban"
"ulx veto"
}
"inherit_from"
{
"operator"
}
}
"rplayer"
{
"deny"
}
{
"allow"
{
"ulx votekick"
"ulx voteban"
}
"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"
{
"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"
}
"inherit_from"
{
}
}

I hope you guys/girls ( :p ) can fix this, cause i can't. :/

EDIT1: FIXED :D - were missing a { in 1 admin group :)
« Last Edit: December 26, 2008, 04:50:45 PM by hypermx »

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 #147 on: December 26, 2008, 04:47:57 PM »
Hey guys at Ulysses.

I have a problem that it just says unassigned when i am on my server.
Code: [Select]
}
} //<------------------------------ THiS one
"gamemodes"
{
"1" "Sandbox"
}
}

I didn't check anything else, but you have one extra closing bracket that isn't needed above gamemodes.
Get rid of that. Restart. Try again. If that doesn't help, make sure no other brackets or quotes are added or missing within both files.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: UTeam - Set teams based on usergroup.
« Reply #148 on: December 30, 2008, 07:38:59 PM »
The addon works fine, but the Uteams.txt is REALLY picky.
I had to edit like 6 of my friends files for them :P

Offline fabendog

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: UTeam - Set teams based on usergroup.
« Reply #149 on: February 12, 2009, 06:42:07 PM »
Hey i got uteam not to long ago...  But I have all my coding and yadayada right. On the scoreboard it shows what ranks people are. but the peoples names when they type is invisible.. any ideas?
« Last Edit: February 12, 2009, 06:59:53 PM by fabendog »