Set Default Access Level for server

For all the help you need with Armagetron!
Post Reply
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Set Default Access Level for server

Post by LOVER$BOY »

Hello!

Is there a way to set default level for servers because when I set my ACCESS_LEVEL <command> -1, they don't work and say I'm only admin. The only way I can do it when I login as the -1 level login.

Is there a command that can do that?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Set Default Access Level for server

Post by Z-Man »

What do you mean by default access level? Default level for the commands or for the users?
And what's the real problem you're trying to solve? Something tells me (the -1 access level which is out of bounds, to be precise) that whatever it is, you're approaching it wrong.
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Set Default Access Level for server

Post by LOVER$BOY »

Well when I start the server, it gives me error when I do access_level server_name -1:
Cannot change access level of SERVER_NAME to "Shell", you only have "Owner" and would not be able to change it back.
So if the server's set to a higher level, then it automatically loads my settings without errors because, in my servers, I'm using levels from -2 to 4.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Set Default Access Level for server

Post by Z-Man »

Negative access levels were never intended to be used; config files and direct console input operate at access level 0 which is meant to be the most powerful level. Setting something to a negative level makes it impossible to use that command in config files.
Again, what's the real problem? Why do you want to use negative access levels?
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Set Default Access Level for server

Post by LOVER$BOY »

The problem is that I have 0 set to co.owner so I had to set all the commands that I didn't want anyone higher than -1 to change like the server name and local_user and stuff like that.
Image
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Set Default Access Level for server

Post by compguygene »

Then you just need to use the access levels the way they were designed. Use Admin (ACCESS_LEVEL_USER 1) for commands you want anyone to use. Use Owner (ACCESS_LEVEL_USER 0) for commands you only want the server owner to use.
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Set Default Access Level for server

Post by LOVER$BOY »

Great idea compguygene but the command

Code: Select all

ACCESS_LEVEL_USER <level>
doesn't exist or the server couldn't find it.
Image
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Set Default Access Level for server

Post by compguygene »

My bad. I don't know what I was thinking.

Code: Select all

USER_LEVEL 0
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Set Default Access Level for server

Post by LOVER$BOY »

USER_LEVEL 0 ?!

I thought that command worked like this:

Code: Select all

USER_LEVEL <username>@authority <level>
or am i mistaken?
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Set Default Access Level for server

Post by kyle »

You have to use 0 as the top and then go down from that by what you want to restrict

as for the names of them they are in the langage files, but they basic one are not recomended to have thier names edited.

so 0 Owner
1 Admin (could be your Co Owner)
2 Moderator (set to what you had admins)
....

and you are right on how USER_LEVEL works
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Set Default Access Level for server

Post by LOVER$BOY »

ya that's normal and alpha project isn't normal :P

I guess I'll just have to load the settings in manually to have over 0 level

Not much help but thanks for the info guys :)
Image
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: Set Default Access Level for server

Post by kyle »

i still don't understand why you want or need stuff under 0

Ignore the names, you can set up stuff like ACCESS_LEVEL_CONSOL and wahtnot to allow x amounts ove levels that have console access. Afterall you have 20 levels to play with and if you need to you can change thier names in the language files.
Image
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

Re: Set Default Access Level for server

Post by LOVER$BOY »

haha ok

I agree there are over 20 of them but in my mind I don't need them all because I thought of creating three different moderator levels which i did already and that's what people get when they sign up at my website.

Anyway I figured out what I need to do to have the commands fit to the correct level.

Thanks for all the help kyle, compguygene and Z-Man ;)
Image
Post Reply