ULX

Author Topic: Groups.txt  (Read 6091 times)

0 Members and 1 Guest are viewing this topic.

Offline Mastermind1996

  • Newbie
  • *
  • Posts: 28
  • Karma: -2
    • Gamers4Life Forum! A forum for the ultimate gamers!
Groups.txt
« on: March 31, 2009, 08:56:47 AM »
Hi, I edited my groups .txt but I didn't work :( .
I didn't understand the FAQ, do I have to edt users.txt?
Where is the file from debug info?
Anyway, PLEASE help me.
My Groups .txt is attached.

Offline Mastermind1996

  • Newbie
  • *
  • Posts: 28
  • Karma: -2
    • Gamers4Life Forum! A forum for the ultimate gamers!
Re: Groups.txt
« Reply #1 on: March 31, 2009, 12:58:56 PM »
I swear I read the whole FAQ 3 times and this link megiddo gave me: http://forums.ulyssesmod.net/index.php/topic,383.0.html even more! In the Readme doesn't stand anything about Groups, I only added the groups.txt and nothing else, so very Please help me!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt
« Reply #2 on: March 31, 2009, 04:53:21 PM »
The link you post has a specific instruction that helps us help you. You haven't yet followed that instruction.
Step 3 also gives instruction for how to edit yes, users.txt, but not the ULX one.
The Gmod one - which has both users and groups in it, just not as customizable as ULX allows for.

But before even going there again, what isn't working?
You telling us "it doesn't work" really doesn't tell us... WHAT isn't working?
You join your server... you type a console command and it doesn't work?
You type a chat command and it doesn't work?
You type "ulx who" in console and you're not a member of the group you expect?
What errors are you getting?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mastermind1996

  • Newbie
  • *
  • Posts: 28
  • Karma: -2
    • Gamers4Life Forum! A forum for the ultimate gamers!
Re: Groups.txt
« Reply #3 on: April 01, 2009, 06:21:01 AM »
When I join I add myself as a superadmin: "ulx adduser mas superadmin 1" It says that I am succesfully Added to superadmin, normally you get your power Right Away so I type: !menu but I can only Click on MOTD, but !noclip does work. After a server restart I am a "User"Again (yes, Ive look in the Ulib users.txt too).

Offline igiz

  • Newbie
  • *
  • Posts: 30
  • Karma: -2
Re: Groups.txt
« Reply #4 on: April 01, 2009, 09:20:27 AM »
Yes I have the same problem with ulx on my server right now.The thing is my groups work fine (as before the last 2 gmod updates I had no problems with them and nothing has been changedl) when you type !noclip and it works that means you have the SuperAdmin rights the reason why !menu does not appear because usually when you add yourself or any other admin in the server you or them have to reconnect to the server for !menu so it's preloaded for you as I have noticed that in my server when I add admins , so the main issue is that since the new gmod updates (Thanks to Garry) the ulx does not save the admins and everytime I rejoin the server I have to add admins again as I have noticed this.

In the end I am 100% sure your groups are working properly we just need to wait for ulx to be fixed so it saves admins that have been admin.

I hope you understand what I ment here XD

Edit:I have looked at your groups.txt file and it all seems fine to me.

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: Groups.txt
« Reply #5 on: April 01, 2009, 11:15:18 PM »
Just for curiosity, delete your ulib and ulx folders in /addons, as well as your ulib folder in /data. Then upload this attached file to addons and see what happens.
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


Offline Mastermind1996

  • Newbie
  • *
  • Posts: 28
  • Karma: -2
    • Gamers4Life Forum! A forum for the ultimate gamers!
Re: Groups.txt
« Reply #6 on: April 02, 2009, 08:56:38 AM »
Thanks for the Reply igiz, also I am kinda low in thrust when it goes for installing things on my server (Because the sneaky Syb7 etc) so I wanted to ask whats so different about your ulib and ULX? Because I use the latest SVN version.

Offline igiz

  • Newbie
  • *
  • Posts: 30
  • Karma: -2
Re: Groups.txt
« Reply #7 on: April 02, 2009, 02:20:51 PM »
I am using the latest SVN Version too,there is a fix where you can get ULX to save your admin as posted by "tas" in one of the posts.

Here is what to do:
In garrysmod folder go to:/addons/ulib/lua/ULib/shared.
Open a lua file using notepad called "defines.lua"

Here is what you will get in the file:

--[[
   Title: Defines

   Holds some defines used on both client and server.
]]

ULib = ULib or {}


ULib.VERSION = 2.30

ULib.ACCESS_ALL = "user"
ULib.ACCESS_OPERATOR = "operator"
ULib.ACCESS_ADMIN = "admin"
ULib.ACCESS_SUPERADMIN = "superadmin"
ULib.ACCESS_NONE = "none"
ULib.ACCESS_IMMUNITY = "immunity"

ULib.DEFAULT_ACCESS = ULib.ACCESS_ALL

-- This variable defines whether we use our special client files in _cl_<version> or not.
-- Set it to true to use the scripts out of shared/ and client/, false to use scripts out if _cl_<version>/
ULib.DEVELOPER_MODE = true


--[[
   Section: Umsg Helpers

   These are ids for the ULib umsg functions, so the client knows what they're getting.
]]
ULib.TYPE_ANGLE = 1
ULib.TYPE_BOOLEAN = 2
ULib.TYPE_CHAR = 3
ULib.TYPE_ENTITY = 4
ULib.TYPE_FLOAT = 5
ULib.TYPE_LONG = 6
ULib.TYPE_SHORT = 7
ULib.TYPE_STRING = 8
ULib.TYPE_VECTOR = 9
ULib.TYPE_TABLE_BEGIN = 10 -- These following don't exist, we handle them ourselves
ULib.TYPE_TABLE_END = 11
ULib.TYPE_NIL = 12


--[[
   Section: UCL Helpers

   These defines are server-only, to help with UCL.
]]
if SERVER then
ULib.UCL_LOAD_DEFAULT = false -- Set this to false to ignore the SetUserGroup() call.
ULib.UCL_USERS = "ULib/users.txt"
ULib.UCL_GROUPS = "ULib/groups.txt"
ULib.UCL_REGISTERED = "ULib/misc_registered.txt" -- Holds access strings that ULib has already registered
ULib.BANS_FILE = "ULib/bans.txt"

ULib.LISTEN_ACCESS = { id="", type="listen host", groups={"superadmin"}, acl={allow={"immunity"}, deny={}} }
ULib.DEFAULT_GRANT_ACCESS = { id="", type="guest", groups={"user"}, acl={allow={}, deny={}} }

if file.Exists( "../addons/ulib/data/" .. ULib.UCL_GROUPS ) and file.Read( ULib.UCL_GROUPS ) == file.Read( "../addons/ulib/data/" .. ULib.UCL_GROUPS ) then
  -- File has been reset, delete registered
   file.Delete( ULib.UCL_REGISTERED )
end
end

The line that I've put in bold is where you need to change from true to false,but it is already done in this example so you can just copy and paste the whole script if you choose to.

Hope this helps.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt
« Reply #8 on: April 02, 2009, 06:07:21 PM »
Megiddo made this in another post, tas just followed his instruction.
SVN revision 25 and up now follows <gmod root>/settings/users.txt unless you make that edit.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mastermind1996

  • Newbie
  • *
  • Posts: 28
  • Karma: -2
    • Gamers4Life Forum! A forum for the ultimate gamers!
Re: Groups.txt
« Reply #9 on: April 03, 2009, 08:52:35 AM »
Ty! It worked! Also I thought when groups worked UTeam would work, but it doesn't! It keeps saying Unnassigend, Ive attached the file.
« Last Edit: April 03, 2009, 09:15:36 AM by Mastermind1996 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups.txt
« Reply #10 on: April 03, 2009, 02:42:58 PM »
Ty! It worked! Also I thought when groups worked UTeam would work,

I believe we convert all group names to lowercase.
You have upper case (capital letters) in your group assignments.
You can leave the Team names capital, but change your groups to all lower case.
That's just my quick look. Try that and let us know
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Mastermind1996

  • Newbie
  • *
  • Posts: 28
  • Karma: -2
    • Gamers4Life Forum! A forum for the ultimate gamers!
Re: Groups.txt
« Reply #11 on: April 04, 2009, 12:55:51 AM »
Already tried the lower case thingy, but now I am stuck in the ground an can only look around.