ULX

Author Topic: Problems adding myself as "superadmin"  (Read 5457 times)

0 Members and 1 Guest are viewing this topic.

Offline bananaslicer

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Problems adding myself as "superadmin"
« on: July 07, 2009, 05:27:01 AM »
I run a dedicated server off my computer. I installed ULX and ULib, and tried the command "ulx adduser retrib superadmin 1" and it didn't work, i've added myself as a superadmin in the original groups file, and the users file. I just cant get it to work

heres the debug stuff

Quote
ULX version: 3.30
ULib version: 2.30
Gamemode: DarkRP 2.3.5+
Map: gm_construct
Dedicated server: true

Currently connected players:
Nick                            steamid            id lsh created
Retributíóñ                  STEAM_0:0:13076675 1  n   1250


ULib.ucl.users (#=0):


ULib.ucl.groups (#=0):


ULib.ucl.authed (#=5):
   Player [NULL]:
      type   =   guest
      groups:
         1   =   user
      id   =   
      account   =   
      acl:
         allow:
         deny:
      uniqueid   =   764726424
   Player [1][Retribution]:
      type   =   guest
      groups:
         1   =   user
      id   =   
      account   =   
      acl:
         allow:
         deny:
      uniqueid   =   764726424
   Player [NULL]:
      type   =   guest
      groups:
         1   =   user
      id   =   
      account   =   
      acl:
         allow:
         deny:
      uniqueid   =   764726424
   Player [NULL]:
      type   =   guest
      groups:
         1   =   user
      id   =   
      account   =   
      acl:
         allow:
         deny:
      uniqueid   =   2465045230
   Player [NULL]:
      type   =   guest
      groups:
         1   =   user
      id   =   
      account   =   
      acl:
         allow:
         deny:
      uniqueid   =   1811824778


Garrysmod default file (#=5):
   steam_0:0:13076675:
   steam_0:1:7099   =   User2
   {   =   superadmin
   steam_0:1:8001337   =   Retributíóñ
   0   =   garry


Active addons on this server:
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)
hl2_ep2                  by Valve, version 1 (29th October 2007)
portal                   by Valve, version 1 (29th October 2007)
tf2                      by Valve, version 1 (29th October 2007)
ulib                     by Team Ulysses, version 2.2999 (00/00/00)
ulx                      by Team Ulysses, version 3.2999 (01/26/08)
zeno_clash               by ACE Team, version 1 (May 8th 2009)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problems adding myself as "superadmin"
« Reply #1 on: July 07, 2009, 04:01:13 PM »
Wow. Looks as though you've really broken editing of (almost all membership) files manually.
Your gmod/settings/users.txt looks as though you've misplaced brackets and or quotes.
Though not required editing, ULib falls back on that.
According to the debug, you have no file, or data can't be read, or, the data is corrupt (again, most likely due to bracket or quote issues) of your gmod/data/ULib/groups.txt and users.txt
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline bananaslicer

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Problems adding myself as "superadmin"
« Reply #2 on: July 07, 2009, 05:25:26 PM »
Hmm. So what should I do?

Offline bananaslicer

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Problems adding myself as "superadmin"
« Reply #3 on: July 07, 2009, 09:06:28 PM »
C:\srcds\orangebox\garrysmod\data\ULib\groups.txt

Quote
"superadmin"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx hiddenecho"
      "ulx rcon"
      "ulx luarun"
      "ulx cexec"
      "ulx ent"
      "ulx adduser"
      "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 mingekick"
      "ulx physgunplayer"
      "ulx vote"
      "ulx votemap2"
      "ulx votekick"
      "ulx voteban"
      "ulx veto"
   }
   "inherit_from"   
   {
      "operator"
   }
}
"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"   
   {
   }
}

C:\srcds\orangebox\garrysmod\data\ULib\users.txt

Quote
"andrews_adm53rd" Enter the name of the user you want to add
{
"id" "STEAM_0:0:13076675" Enter either the users name, ip address, steamid (reccomended) or clantag
"type" "" Select which type of id you have entered above (name, ip address, steamid or clantag)
"pass" "" You can enter a password that this user will need to join the server (reccomended if not using steamid)
"pass_req" "0" Here you can select if the password is required, enter "<1>" for yes and "<0>" for no
"groups"
{
"superadmin"
}
"allow"
{
"ulx kick"
"ulx ban"
"immunity"
}
"deny"
{
"ulx cexec"
}
}


"slimthug55106" Enter the name of the user you want to add
{
"id" "STEAM_0:1:22307354" Enter either the users name, ip address, steamid (reccomended) or clantag
"type" "steamid" Select which type of id you have entered above (name, ip address, steamid or clantag)
"pass" "" You can enter a password that this user will need to join the server (reccomended if not using steamid)
"pass_req" "0" Here you can select if the password is required, enter "<1>" for yes and "<0>" for no
"groups"
{
"superadmin"
}
"allow"
{
}
"deny"
{
}
}

C:\srcds\orangebox\garrysmod\settings\users.txt

Quote
"Users"
{
   //
   // This is your users file
   //
   // You can use this file to add people as admins on your server
   // Add them to the relevant section
   //
   // If you're a Lua coder you can add your own sections and use them
   // in your script by doing pl:IsUserGroup( "admin" ) etc
   //
   
{
   "superadmin" //This is a user group. Groups are useful to LUA coders.
   {
      "garry"         "STEAM_0:1:7099"    //Garry is a user in the superadmin group.
      "User2"         "STEAM_0:1:8001337" //To be the server admin, your Steam ID should go here
      "Retributíóñ"   "STEAM_0:0:13076675" //Server Owner
   }

   "admin" //Another user group.
   {
      "garry"         "STEAM_0:1:7099"    //Your ID could go here as well without a significant decrease in admin power.
      "slimthug55106" "STEAM_0:1:22307354" // Noob
   }
}

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Problems adding myself as "superadmin"
« Reply #4 on: July 08, 2009, 11:35:32 AM »
As I expected.
Fix your settings\users.txt - it's got an extra open bracket before the superadmin group.
Did you edit gmod\addons\Ulib\users.txt ???
Never edit the addons folder files.
If you did edit any of the ULib addons folder. Delete it. Re-install it. Don't touch it.
Then delete your gmod/data/ULib folder (after fixing your settings/users.txt)

In fact, until you're absolutely sure how to edit lua files that store tables... don't manually edit ULib or ULX files.
Stick with the gmod default users.txt, and using ULX commands from console.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming