ULX

Author Topic: Shoved into Users group even though I'm defined as a superadmin  (Read 2300 times)

0 Members and 1 Guest are viewing this topic.

Offline FrohmanElite

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Shoved into Users group even though I'm defined as a superadmin
« on: February 17, 2009, 04:55:55 PM »
Before I start, I've read the readme and the FAQ. I cannot provide any result of a ulx debuginfo because despite saying it's created a file, the directory where it's supposedly saved doesn't exist, so please don't shun me for that. Anyway, A fellow clan leader wanted me to make changes to the groups, so it goes Super Admin, Admin, VIP, Member and Users. I've edited the users.txt file in the ulib data directory many times before without fail, but this time I'm stumped.
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"
"ups_damage"
"ups_vehicle"
"ups_freeze"
"ups_physgun"
"ups_remove"
"ups_tool"
"ups_unfreeze"
"ups_use"
"ups disableplayers"
"ups miscdeletionaccess"
}
"inherit_from"
{
"vip"
}
}
"vip"
{
"deny"
{
}
"allow"
{
"ulx ban"
"ulx unban"
"ulx goto"
"ulx send"
"ulx god"
"ulx ungod"
}
"inherit_from"
{
"member"
}

"member"
{
"deny"
{
}
"allow"
{

"ulx tsay"
"ulx csay"
"ulx slay"
"ulx noclip"
"ulx jail"
"ulx unjail"
"ulx showmotd"
"ulx kick"
"ulx vote"


}
"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"
   }
   "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"   
   {
   }
}
"tools"
{
"allow"
{
}
"deny"
{
"ulx noclip"
}
}
"pretendadmin"
{
}
"operator"
{
"deny"
{
}
"allow"
{
"ulx seeasay"
}
"inherit_from"
{
}
}

That is my Groups.txt file

Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Owners"
"group" "superadmin"
"armor" "1337"
"hp" "1337"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "170"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Advanced"
"group" "admin"
"armor" "250"
"hp" "250"
"color"
{
"a" "255"
"B" "255"
"g" "165"
"r" "0"
}
}
"3"
{
"name" "VIP"
"group" "vip"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "0"
"g" "217"
"r" "255"
}
}
"4"
{
"name" "Member"
"group" "member"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "143"
"g" "1"
"r" "86"
}
}
"5"
{
"name" "Players"
"group" "user"
"color"
{
"a" "236"
"B" "0"
"g" "255"
"r" "161"
}

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

My UTeam.txt file

Code: [Select]
"dj xenobot"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"superadmin"
}
"id" "STEAM_1:0:2863494"
"pass" ""
"allow"
{
}
}
"kee-wee"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"vip"
}
"id" "STEAM_1:0:19731468"
"allow"
{
}
"pass" ""
}
"1337sawce"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"vip"
}
"id" "STEAM_1:1:17502973"
"pass" ""
"allow"
{
}
}
"xxvgenesisvxx"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"vip"
}
"id" "STEAM_1:0:18147276"
"pass" ""
"allow"
{
}
}
"Kurt Frohman"
{
"deny"
{
}
"type" "steamid"
"groups"
{
"superadmin"
}
"id" "STEAM_1:0:15117776"
"pass" ""
"allow"
{
"immunity"
"ulx hasreadhelp"
}
}

My Users.txt file.
It's not because of the recent update that screwed with the steam ID's, as 1 I fixed that myself earlier in the day and 2. My users.txt file shows that they're all STEAM_1 and not STEAM_0.
Please, if you can help, do.
Frohman

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Shoved into Users group even though I'm defined as a superadmin
« Reply #1 on: February 17, 2009, 07:09:40 PM »
In groups.txt , Vip group is missing a closing bracket.
"vip"
{
"blah" { }
"blah" { }
}

Also, that file that gets created when you run from SERVER console is created on the server. Make sure you're looking there..
orangebox/gmod/data/ulx
« Last Edit: February 17, 2009, 07:12:15 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline FrohmanElite

  • Newbie
  • *
  • Posts: 8
  • Karma: 1
Re: Shoved into Users group even though I'm defined as a superadmin
« Reply #2 on: February 18, 2009, 12:18:36 AM »
Found it.
Code: [Select]
ULX version: <SVN> unknown revision
ULib version: 2.30
Gamemode: Sandbox
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created
-[PBA.Owner]- Kurt Frohman      STEAM_1:0:15117776 1  n   103


ULib.ucl.users (#=0):


ULib.ucl.groups (#=1):
user:
deny:
allow:
inherit_from:


ULib.ucl.authed (#=2):
Player [NULL]:
type = guest
groups:
1 = user
id =
account = -[PBA.Owner]- Kurt Frohman
acl:
allow:
deny:
uniqueid = 939199756
Player [1][-[PBA.Owner]- Kurt Frohman]:
type = guest
groups:
1 = user
id =
account = -[PBA.Owner]- Kurt Frohman
acl:
allow:
deny:
uniqueid = 939199756


Garrysmod default file (#=2):
admin:
kurt frohman = STEAM_0:0:15117776
superadmin:


Active addons on this server:
Adv Duplicator           by TAD2020, version 1.8359 (July 5th 2007)
counter-strike           by Valve, version 1 (5th August 2006)
day-of-defeat            by Valve, version 1 (22nd August 2006)
default_sent_pack        by TEAM GARRY, version 1 (3rd December 2006)
derma                    by , version 0.1 (17th July 2007)
expressiongate2          by Syranide, version SVN ()
GCOMBAT08                by Q42, version 1.1 (TOFRIGGINDAY)
GCX                      by MadMoe, Lightdemon, Treelor, Karbine, PaperJack, version 3.1415 (When it's ready.)
hl2_ep2                  by Valve, version 1 (29th October 2007)
Mario Hat                by Aska, version 0.1 (N/A)
masslessthrusters        by JetBoom, version 1.2999 (April 3st, 2008)
No collide world         by Panthera Tigris, version 1 (6 october 2007)
no_collide_multi         by Narkaleptic, version 1.1 (December 19th 2006)
Nuke Pack 4              by Nuke and TNT by Teta_Bonita, Atomic Bomb by Doomsday, Model Changes by Sgt.Napalm, RayFanMan (RayFan9876) and Hamster, Entities list and Spawn Icons by Sgt.Napalm and RayFanMan (RayFan9876), Nuke_effect_air, nuke_var_inits and nuke_blastwave changes by RayFanMan (RayFan9876), version 4 ()
OL_MeasuringStick        by OverloadUT, version 1.1 (23th December 2006)
phx3                     by PhoeniX-Storms, 1/4 Life, hunter, joebloom, scragnog, x-quake, Xeon133, PelPix, version SVN (20th May 2008)
portal                   by Valve, version 1 (29th October 2007)
Simple Prop Protection   by Spacetech, version  ()
Smart_Constraint         by Spacetech, version 1.2.2 ()
Sonic Hat                by Aska, version 0.1 (N/A)
Stacker STool            by -, version 2.2 (19th January 2007)
stool_npcspawner         by Devenger, version 1 (18th December 2006)
sui_scoreboard           by Suicidal.Banana, version ? ()
tf2                      by Valve, version 1 (29th October 2007)
Turd's Server Utils      by Ben Harris (Lieutenant Turd), version 2.7 (27/09/08)
ULIB                     by Team Ulysses, version 2.2999 (00/00/00)
ULX                      by Team Ulysses, version 3.4 (00/00/00)
Unbreakable              by Chaussetteā„¢, version 1.1 (28th January 2007)
Useless Weapons          by Ben Harris, version 2.0b ()
WeightSTool              by Spoco, version 1.21 ((null))
WingSTool                by Packrat, version 1.1 (14th Dec 2006)
wire                     by Wire Team, version 0.9.6 (25st March 2007)
wire model pack 1        by Team Wire, version 0.3 (25st March 2007)
Wire uSVN                by Anticept and respective developers, version SVN (3rd June 2008)
I'm gonna see if adding an extra } helps. It'd be brilliant if it did.

EDIT: It did. Thanks  :)
I still find it odd how one missing character can make a whole system go kaput.
« Last Edit: February 18, 2009, 12:32:55 AM by FrohmanElite »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Shoved into Users group even though I'm defined as a superadmin
« Reply #3 on: February 18, 2009, 05:54:53 AM »
If you understood (and maybe you do) how tables are created and read from strings and files..

basically ULX pulls groups.txt data and creates a table in lua so that the information can be loaded up easily rather than reading the file every time someone joins. If you are missing a character that sets up the table structure or even if you have one too many.. it could and will really mess things up. That is why it is HIGHLY discouraged from editing the groups.txt or users.txt file manually unless you really know what you are doing.

ulx adduser
ulx addgroup

both of these commands from a dedicated console will allow you to create groups and add players to them without even touching the files.