1. If you have a problem and need help, create a new thread with a title that briefly describes the problem.
    Do not use titles like 'Help!' or 'I have a problem!'
    Dismiss Notice
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

A seclev bug?

Discussion in 'General Help' started by Doc22, Aug 4, 2012.

  1. Doc22

    Doc22 Builder Stabber

    Messages:
    51
    Hello,
    I have been using the seclevs and they work fine but I can't assign seclevs in the admin menu. I can see the button for assigning seclevs but when I open it the only button is back, no seclevs. Any Ideas? I am superadmin and here is the superadmin cfg file:
    name = Super Admin
    users = Doc22;
    roles = rcon;
    commands = ALL;
    features = admin_color; always_change_team; ban_immunity; editor; freeze_immunity; join_full; kick_immunity; map_vote; mark_any_team; mark_player; name_mouseover; pingkick_immunity; silent_rcon; skip_votewait; spectator; view_collapses; view_console; view_rcon;
    assign = superadmin, admin, vip, normal, premium
     
  2. Antman

    Antman Base Burner

    Messages:
    344
    I have the same bug :(
    If I go '/rcon /reloadsecurity' it says under my seclev that I can assign them, but I actually cannot do it through the Admin menu, or by '/rcon /assignseclev'.
     
  3. Downburst

    Downburst Mindblown Global Moderator Forum Moderator Donator Tester

    Messages:
    1,813
    I remember someone saying you are only able to assign seclevs that are lower than your seclev or something. I'll get shad to here.
     
  4. Doc22

    Doc22 Builder Stabber

    Messages:
    51
    I can't even see any buttons under the menu for lower levels. I am superadmin.
     
  5. UnnamedPlayer

    UnnamedPlayer Arsenist Administrator Global Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]

    Messages:
    752
    Antman

    You gotta do this:
    1 - First make sure your class have the command /assignseclevid. If you have all the commands, it should be fine.
    2 - Create the seclevs, and add them to the seclevs.cfg list. If they don't exist, you can't assign them.
    3 - On your seclevel, put this:
    name = Superadminexample
    users = you;
    roles = rcon;
    commands = all
    features = joinfull; otherstuff;
    assign = admin; vip; limited; mute;

    The assign are the NAMES of the seclevels that this class can assign.
    In this case, the super admin can assign 4 classes: Admin, VIP, limited and mute (assuming that you created those class in step 2)
    Keep in mind that the name of seclevels are the name you put into name = seclevname and NOT the file name (that should be something like example.cfg)
    Post your other files here if you still have problems.

    Doc22:

    PS: It's
    assign = admin; vip; limited; mute;
    And NOT
    assign = admin, vip, limited, mute,
     
    Beef likes this.
  6. Antman

    Antman Base Burner

    Messages:
    344
    Well, I think i did everything you said, so here are my files;

    (Wouldn't let me upload .cfg's, so these are in .txt)
     

    Attached Files:

  7. Doc22

    Doc22 Builder Stabber

    Messages:
    51
    It worked perfectly for me! Antman, the names are specified in each seclev, so instead of "assign = admin", "assign = Admin" because in the cfg it says name = Admin. Not the name of the file. Thanks UnnamedPlayer! :)

    YAY MY FIRST LIKE!!! THANKS AGAIN!!! :) You shall recieve a cookie made by my grandma! :D
     
    UnnamedPlayer likes this.
  8. Antman

    Antman Base Burner

    Messages:
    344
    I already have "assign = Admin"?
    I'm confused.
    </br>--- merged: Aug 6, 2012 5:57 AM ---</br>
    Welp, I still need help.
     
  9. UnnamedPlayer

    UnnamedPlayer Arsenist Administrator Global Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]

    Messages:
    752
    Your files seems ok to me.
    I don't know what its causing the problem, you can hit shad on irc (he is very helpful with that), or I can drop MOLE server seclevels here (they are working, so you would only have to configure them to your needs).
     
    Antman likes this.
  10. UnnamedPlayer

    UnnamedPlayer Arsenist Administrator Global Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]

    Messages:
    752
    I cleaned the files and simplified some stuff, so there may still be some things out of place.

    Hope it works =)
     

    Attached Files:

    Beef likes this.
  11. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Let me know if this works out, if not then try and find me on IRC and we'll see if we can figure it out.
     
  12. Antman

    Antman Base Burner

    Messages:
    344
    I added myself to the 'MOLE' seclev, and I could assign Admins and other levels.
    So, it works.. but I dunno why my other ones didn't :s
    </br>--- merged: Aug 7, 2012 9:03 AM ---</br>
    Well.. this is weird. I can assign the 'mute' seclev, but not the 'admin' seclev :s
    Here are the new ones;
     

    Attached Files:

  13. UnnamedPlayer

    UnnamedPlayer Arsenist Administrator Global Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]

    Messages:
    752
    You added the admin class to the assign of MOLE seclevel?
    Also: This may be case sensitive, so on seclevs.cfg try to put Security/admin.cfg; instead of Security/Admin.cfg;
     
  14. Antman

    Antman Base Burner

    Messages:
    344
    Yeah, I added it to the MOLE assign..
    And I changed alot of stuff to not be have capitals.

    There are no errors I can see in the new files; admin and mute are exactly the same format, but I can only assign one of them..
     
  15. UnnamedPlayer

    UnnamedPlayer Arsenist Administrator Global Moderator Tester
    1. MOLEing Over Large Estates - [MOLE]

    Messages:
    752
    If that doesn't worked, I guess is time for you to hit shad on irc. He gave me a hand when I had problems with MOLE server seclevels.
     
  16. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    The assign list needs to include the levels they can be assigned *from* as well as *to*. So you'll need to add premium, normal, etc. too.

    This is so that you can ensure that admins can't lower a super admin's level, etc.
     
    Antman and UnnamedPlayer like this.
  17. Doc22

    Doc22 Builder Stabber

    Messages:
    51
    So how exactly do you assign what they can be assigned to? But still make it so that I can demote superadmins as an owner seclev? Could you make it so that to demote them, you have to be a higher seclev?
     
  18. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    Yes you can do that.
    If you are more specific about what you want I can give you an example.
    (more specific: Exactly what seclevs you want, and what seclevs you want which seclevs to be able to assign. Don't think in terms of demoting/promoting, think in terms of 'moving from seclev X to seclev Y)
     
  19. Doc22

    Doc22 Builder Stabber

    Messages:
    51
    Owner
    SuperAdmin
    Admin
    VIP
    Premium
    Normal
    Muted


    I want it so that owner can only be assigned by editing owner.cfg. I also want it so that every seclev can only assign a lower seclev, but they cant assign a seclev to a person with higher seclev. Obviously premium, muted, and normal cant assign seclevs. Muted is just for people with big mouths. :D Can you give me an example of Admin being able to assign VIP and lower, but cant be changed by a lower seclev?
     
  20. Shadlington

    Shadlington THD Team THD Team Administrator Global Moderator

    Messages:
    1,562
    First off, you need to give access to the assignseclevid command (or ALL) to seclevs that need to be able to assign seclevs.
    The only ones that need to be able to assign are: owner, superadmin and admin.

    In owner, you will put the following into your assign list: SuperAdmin, Admin, VIP, Premium, Normal, Muted
    In SuperAdmin, you will put the following into your assign list: Admin, VIP, Premium, Normal, Muted
    In admin, you will put the following into your assign list: VIP, Premium, Normal, Muted
     
    Doc22 likes this.