Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Vaga Bond on August 01, 2016, 01:49:27 PM
-
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.
My ULib/ULX versions (run "ulx version" in console):
ULib v2.61d (06/12/16)
ULX v3.71d (07/02/16)
Game mode(s) I am having this problem on: DarkRP
Lua errors shown in console, if any:
<insert errors here>
So what my real issue here is the fact that Moderators and Trial Mods are able to spawn in weapons and entities when I set the settings in settings.lua to admin only for both. I don't understand why, but they're being considered admins (ran a simple line on an expression 2 code to figure that out). How do I set it to so they're not considered admins?
-
How is your inheritance tree set up? If moderators inherit from admin, they will be considered admin by IsAdmin().
-
Making them inherit from user (or whatever you'd like, just not admin) and they shouldn't be considered an admin.
-
How is your inheritance tree set up? If moderators inherit from admin, they will be considered admin by IsAdmin().
superadmin
Co-Owner
Superadmin
Head-Admin
admin
Moderator
TrialMod
trusted
user
Ranks inherit from the one below each other (i.e. Head-Admin inherits admin, admin inherits Moderator, etc.)
Making them inherit from user (or whatever you'd like, just not admin) and they shouldn't be considered an admin.
They do inherit admin.
-
superadmin
Co-Owner
Superadmin
Head-Admin
admin
Moderator
TrialMod
trusted
user
From your example description, you state one inherits the next below.
If your script is set for admin only, then the groups below admin in your list should NOT be able to spawn/do admin stuff.
However, you then state;
They do inherit admin.
Which is it?? Does your inheritance tree look like your list top to bottom, or do Moderator and Trial-mod inherit admin.
If they inherit admin, that is why they can spawn.
If they do not inherit admin, it's possible you have an issue with Fadmin or another conflicting addon.
Have you disabled Fadmin?
While your server is running, with a Moderator or trial mod on, please run "ulx debuginfo" from your server console.
It will output a file and tell you where it did.
Attach that file (using the attachments and other options link) to your next post.
-
-snip
Then make them not inherit Admin, and your problem is solved.
-
The easiest way to detect if you have branches in your inheritance tree is to run this command on your SERVER console:
PrintTable( ULib.ucl.getInheritanceTree() )
Alternately, you could run this ulx command from your client:
ulx luarun =ULib.ucl.getInheritanceTree()
Paste the result here, and we can help you analyze it.
-
The easiest way to detect if you have branches in your inheritance tree is to run this command on your SERVER console:
PrintTable( ULib.ucl.getInheritanceTree() )
Alternately, you could run this ulx command from your client:
ulx luarun =ULib.ucl.getInheritanceTree()
Paste the result here, and we can help you analyze it.
Sorry for the late reply(ies) I'm very busy going back and forth with things.
Result:
user:
donator:
trusted:
trialmod:
moderator:
admin:
superadmin:
Head-Admin:
Co-Owner:
owner:
noaccess:
veteran:
Exactly from console.
Then make them not inherit Admin, and your problem is solved.
My mistake. I meant to say they do not inherit Admin.
-
Is your "trusted" group also able to spawn admin only things?
-
Is your "trusted" group also able to spawn admin only things?
No.
-
The best I can figure is that you have another addon changing the definition of "IsAdmin". You could easily confirm this by running your server with only ULX and ULib (no other addons).
-
As you have DarkRP, I'd start with disabling FAdmin - it's been known to cause group conflicts with that you specify using ULX.
-
As you have DarkRP, I'd start with disabling FAdmin - it's been known to cause group conflicts with that you specify using ULX.
What is the addon folder for FAdmin called? Or how would I disable it? I'm not too familiar with FAdmin and am not a big fan of it either.
The best I can figure is that you have another addon changing the definition of "IsAdmin". You could easily confirm this by running your server with only ULX and ULib (no other addons).
Where can I find said addon?
-
What is the addon folder for FAdmin called? Or how would I disable it? I'm not too familiar with FAdmin and am not a big fan of it either.
See our FAQs.
https://forums.ulyssesmod.net/index.php/topic,5665.0.html
If that isn't clear or instructions have changed since we made that answer, you'll need to go to the DarkRP forums and wiki to find more answers
Where can I find said addon?
If disable of Fadmin doesn't help, you'll need to remove all addons but ulx and ULib, then add back one or two at a time and restart the server after each.
Once you've added back the offending addon, you'll know.
It's still possible you have can_target broken too.
-
See our FAQs.
https://forums.ulyssesmod.net/index.php/topic,5665.0.html
If that isn't clear or instructions have changed since we made that answer, you'll need to go to the DarkRP forums and wiki to find more answers
If disable of Fadmin doesn't help, you'll need to remove all addons but ulx and ULib, then add back one or two at a time and restart the server after each.
Once you've added back the offending addon, you'll know.
It's still possible you have can_target broken too.
Sorry for the late reply.
I have disabled FAdmin and it fixed the targetting. Thanks for the help!