Ulysses

Ulysses Stuff => Suggestions => Topic started by: mmavipc on November 26, 2010, 01:02:30 PM

Title: ULib reload concommand?
Post by: mmavipc on November 26, 2010, 01:02:30 PM
Sometimes, you have to go undercover to investigate something. When you have UTeam and SUIScoreBoard this can be hard. So I tried removing myself from users.txt, joined, and was still Owner. ulib_reload_users please?
Title: Re: ULib reload concommand?
Post by: JamminR on November 26, 2010, 03:05:12 PM
ULib updates access (http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#UCLChanged) levels anytime ULX adduser/removeuser is used (http://ulyssesmod.net/docs/files/lua/ulib/server/ucl-lua.html#ucl.removeUser). No need to reload.
If you aren't using ULX, you'd need to write your own function to do that action.

Unless Owner is a group (or UTeam team) you created, there is no Owner group by default in ULib or Gmod.
There are two users.txt files. One ULib creates/updates; /data/ULib/users.txt and one that Gmod uses (and ULib imports) for (all) Lua scripts to determine admin access on a server.
You'd need to use "ulx removeuser" to remove yourself from ULib's by default, edit the Gmod's /settings/users.txt to not include yourself, then rejoin the server.
To my knowledge, /settings/users.txt can't be reloaded dynamically and may require restart of server for its changes to take effect.



Title: Re: ULib reload concommand?
Post by: mmavipc on November 27, 2010, 12:39:35 AM
Owner is a group I created myself, is there a way to make a silent adduser/removeuser?
Title: Re: ULib reload concommand?
Post by: JamminR on November 27, 2010, 10:50:48 AM
I thought Megiddo was working on a way to add back echo/log levels as in the old release.
In the past, setting echo level would either show all players, show only admins, or show none.
Using console commands would also affect how public the commands were.
Title: Re: ULib reload concommand?
Post by: mmavipc on November 27, 2010, 11:10:16 AM
would removing this line
Code: [Select]
adduser:logString( "#1s added #2s to group #3s" )make it silent?
Title: Re: ULib reload concommand?
Post by: Aaron113 on November 28, 2010, 09:10:56 AM
I believe so, not 100% sure though.
Title: Re: ULib reload concommand?
Post by: JamminR on November 28, 2010, 09:34:43 AM
Yes, but, it would also prevent logging to text files.
If someone were to ever add an admin, you'd never know who.
Title: Re: ULib reload concommand?
Post by: Megiddo on November 28, 2010, 09:51:06 AM
Why not set ulx logEcho to 0 to turn off the echoes?
Title: Re: ULib reload concommand?
Post by: Aaron113 on November 28, 2010, 10:08:03 AM
If you don't want to do any of the above, I'd be willing to create a quick silent command.