King Arthur's Gold

King Arthur's Gold

Not enough ratings
Server Setup: Admin & Seclevs
By Torik
Want to make yourself Admin automatically on your private King Arthur's Gold Server?
This is a straightforward guide to go through the whole process for setting up a security level configuration for your custom server. I will go through the basic of setting it up and potential problems you might encounter.
In order to follow this Guide you must already run a game server. I will not go over how to do this during this Guide.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Hello there user,
I am Torik, a KAGer with a passion to keep this game alive. I am the owner of the clan Academy and I dabble in KAG modding. I came across a bunch of issues which were easily sorted with help when I set up my private server and so I would like to share exactly the quickest process with a step by step guide.

Things you need:
- Private Server (with access to the server files and console)
- A text editor (any standard text editor is fine)

Not a very long list, now once you have all 2 things we can move on...
Setting Up Seclev Configs
I am using Windows, this guide is for windows file systems.
I am hosting my server on a Linux VPS and connecting through an SSH client for the console and an FTP client for the files. Just to say as my file lists might appear slightly different as to what you are used to.
Hosting a server on your PC will work just fine.

IMPORTANT
Make sure that your server is not running when running through this guide as any changes made to some of the files during runtime will be reset when your server closes.

1. In order to begin we want to navigate to your server's files and open up the autoconfig.cfg


2. Then locate through the different settings to security_seclevs


3. Type Security/seclevs.cfg after the '=', save and close the autoconfig.


4. Open /Security


5. You should see lots of .cfg.example files as shown below. These files will not do anything as they have the incorrect file extensions. If the .example file extension is not showing yet the file type is still EXAMPLE File then in File Explorer click 'View' then tick 'File Name Extensions'.


6. Rename the seclevs.cfg.example to seclevs.cfg and open it.


7. Now delete the text shown below. These additional security level config files can be set up later if you want to but for now we will just set up superadmin.cfg so that you have admin permissions. Go ahead and save and close seclevs.cfg


8. Rename the superadmin.cfg.example to superadmin.cfg and open it.


9. Now i will explain the important parts of any security level config file. Bear in mind, these are completely changeable, name and all.

name - the display name of the seclev. e.g. "name = Server Owner"
users - a list of players' usernames that this seclev should be given to with semi-colons between each username. e.g. "users = Torik; Damocle; Nevrotik;"
roles - a list of important roles to give to the user. e.g. "roles = rcon;" (I don't know any other roles that are useful here.)
commands - a list of commands users with this seclev can use. use "ALL;" to give access to all commands.
features - a list of features users with this seclev will have. There are alot of different options. e.g. "features = join_full; map_vote; spectator;"
assign - a list of other seclevs users with this seclev will inherit. e.g. "assign = normal; admin;"

We want to change this superadmin.cfg so that you are a part of this security level, so simply add your name to the users list as shown below then save and close.

IMPORTANT
Make sure that the username that you use is actually your username and not your display name as shown below.


10. Now you can start your server and join it with your client. Once in the server, press escape to open the options menu and you should have admin privileges. (Check if the Admin tab has appeared.)


11. If for some reason you have admin privileges and yet your name is not turning a deep orange like below, in the main server chat type !toggle colour



12. Thats it! Everything is set up. If you want to add different seclevs remember to add them to the seclev.cfg list.

Enjoy your private server! :)

Support
If after reading this guide you still do not understand some steps or wish for more information or even if something goes wrong and you can't figure out the error, either:

Also a few warm thankyous to both Verra and Vamist (THD Staff) for helping me with my issues when setting this up.

Hope this guide was helpful,
Cheers,
T. <3