DayZ: Additional Server Administration Info

From TRUgaming Wiki
Jump to navigation Jump to search

Main Page | DayZ & DayZ Launcher

How To Become Admin On My Server

  1. Stop your server. You MUST stop your server or you will not be able to save any changes to the configuration file
  2. Click on the Configuration Files icon
  3. Click on the Text Editor link for the serverDZ.cfg file
  4. Locate the line:
    passwordAdmin = "";
  5. Add in your password. Make sure you add the password between the quotes. DO NOT remove the quotes or the semi-colon or your server will not run
    Example: passwordAdmin = "mypassword";
  6. Save the file
  7. Start your server backup

Top

Player Whitelist

With the latest release of the DayZ server, you can now whitelist who you want to connect to your server, instead of using a password to keep out unwanted players.
The whitelist does require that you obtain the Player Id, this is not the same as a players Steam64ID.
The Player Id is a 44 characters long ID, which can be found in the admin log file (.ADM).

  • This does mean you will need to turn on the Admin Logging option.
  • We do not turn it on by default as it can take up a lot of disk space, as a new file if generated every time you restart your server


To use the white list option, you need to:

  • Step 1:
  1. Stop your server
  2. Enable White listing in the server configuration file (serverDZ.cfg)
    Text Editor option: enableWhitelist = 0; // Enable/disable whitelist (value 0-1)
    Configuration Editor option: Check the Enable Whitelist check box
  3. Save you configuration files
  4. Start your server
  • Step 2:
    Server does not have to be stopped to make changes to the whitelst.txt file
  1. using Configuration Files option , select the Text Editor link next to the Whitelist.txt file
    to open the file
  2. Enter (paste, because it is so long), the Player Id you previously obtained, and if you want to add a comment to identify the Player ID
    by adding to forward slashes after the Player ID and adding your comment text
    Example:
    1111111111112222222222222333333333XXXXXXAAAA //Example of a character ID
  3. Save the whitelist.txt file
  • Changes take immediate effect. Any Player ID's removed from the file will result in the player being kicked from the server


  • If a player is NOT in the whitelist.txt file they will see the following message:
    Dayzwhitelist.png

Top

Ban Players

There are two ways to find players information on your server and two ways to ban players depending on which player ID you have.

Locating Player Information

Log File

  • A player UID can be found in either the .RPT or .ADM log files on your server ((44 characters long).
    These are typically under the <serverprofile>\ folder
    On TRUgaming servers this is \default folder
    Example from .RPT file
    8:58:00.292 [StateMachine]: Player TRU_IT_GUY (dpnid 1XXXX153 uid Xxxxxxxxxx6-dxxxxxxxxxxxxxxxxxxxxxxxxxxxtmo=) Entering DBGetLoginTimeLoginState

RCON

  • If you are using a RCON tool like DarT, you will see the player GUID under the GIUD column in the application on in the logs section, if a player is connected.
    GUID Log output
    [2020-01-21 | 10:21:35] Player #0 Survivor - BE GUID: 3xxxxxxxxxxxxxxxxxxxxxxxxxxxxba4
    [2020-01-21 | 10:21:35] Verified GUID (3xxxxxxxxxxxxxxxxxxxxxxxxxxxxba4) of player #0 Survivor

Creating Ban List

Depending on the player ID you have, you need to create (if it does not already exist) the appropriate file, or edit it, if it does):
Either method will work, it is best to stick with one that is easiest for you.

Log File (.RPT / .ADM UID)

  1. From the Configuration Files icon, click on the Text Editor link next to the ban.txt file in the list.
  2. This will open the ban.txt file in the online editor.
  3. Add the UID of the player you wish to ban. one UID per line.
    Example: Xxxxxxxxxx6-dxxxxxxxxxxxxxxxxxxxxxxxxxxxtmo=
  4. Save the file

RCON (BE GUID)

  1. Using the File Manager, navigate to the \battleye folder.
  2. If you do not see a bans.txt file in the file list select the New File option from the menu
  3. In the dialogue box, replace the promted file name (config.cfg by default) with bans.txt
  4. This will open the bans.txt file in the online editor.
  5. Add the BE GUID of the player you wish to ban. One BE GUID per line.
    Example: 3xxxxxxxxxxxxxxxxxxxxxxxxxxxxba4
  6. Save the file


Some RCon tools like Dart offer the option to ban users directly via their UI which is then, written to bans.txt.

Once done, it may take a few minutes for the server to kick the player.
They will receive an in-game message that they have been kicked from the server.

Top

Wipe Server

A standard DayZ multiplayer mission using the offline database. Using this type of mission means that everyone's characters are locked to your server
- there is no option for shared characters over multiple servers when using the offline database.

The character information is stored within the players.db file, located within the mpmissions\dayz.chernarusplus\storage_X folder.
Removal of this causes character wipe.

Top

Priority Queuing

Specified users can be prioritized in the login queue, they will get on the first position, before the non-prioritized users.

Flagged users simply need to added to a priority.txt file, located in the root directory of the server install.

  • Example: SteamId;SteamId;01234567890123456;01234567890123456

Top

Changing Maps

DLC Map

  • With the release of the Livonia DLC, in order to play/use the Livonia map you need to change your mission template.
    This can be done in one of two ways, by using;

Text Editor

  1. Stop your server
  2. Click on the Configuration Files icon
  3. Click on the Text Editor link next to the "Main configuration file (serverDZ.cfg)" file
  4. Scroll to the bottom of the file and change the mission template as follows:
    From: template="dayzOffline.chernarusplus"; //used mission //first part is mission name, second part is used map
    To:  template="dayzOffline.enoch";        //used mission         //first part is mission name, second part is used map
  5. Save your changes
  6. Start your server back up

Configuration Editor

  1. Stop your server
  2. Click on the Configuration Files icon
  3. Click on the Configuration Editor link next to the "Main configuration file (serverDZ.cfg)" file
  4. From the Mission/Map dropdown box select the map you wish to use.
    REMEMBER:' If you choose Livonia, users MUST have purchased the DLC to play on your server
  5. Save your changes
  6. Start your server back up

Custom Maps

  1. Stop your server
  2. FTP the new map (files and folders) to your server to the appropriate destination folder. See the map/mod documentation.
  3. Click on the Configuration Files icon
  4. Click on the Text Editor link next to the "Main configuration file (serverDZ.cfg)" file
  5. Scroll to the bottom of the file and change the mission template as follows:
    From: template="dayzOffline.chernarusplus"; //used mission //first part is mission name, second part is used map
    To:  template="<what ever is called for in the map/mod documentation>"
  6. Save your changes
  7. Start your server back up


  • REMEMBER: Some mods may become unusable with the map change.  Make sure you read each mods Steam workshop discussion/page to make sure they support the DLC/Custom Map, 
    otherwise your server may become unusable.

Top

Message Of The Day

PLEASE NOTE:
  DayZ ONLY ALLOWS TWO (2) MOTD lines in the config file
  If you add more than that, your server will not start correctly
  Example:
        motd[] = {"Welcome to our DayZ Server","Hosted by TRUgaming.com"}; // Message of the day displayed in the in-game chat.
PLEASE make sure that you stick to the existing formatting and only change the info between the double quotes.


Top

Scheduling Daily Restarts

  1. Click on the Scheduled Tasks tab
    Scheduletask1.png
  2. Click on New link
    Dayztask1.png
  3. From the Task Type drop down select Scheduled Restart and click on the [New] link.
    />Dayztask2.png
  4. Give your task a Name
  5. To make sure the task runs, make sure the Enabled checkbox is checked
    To Disable the task at a later time without deleting it, simply Uncheck the Enabled checkbox and Save your task
  6. From the Type drop down list select Daily
  7. In the Start input box, enter the start date and time when you want the first run of the task scheduled, this must be a a time (or date in the future)
    You can also select the date and time using the two icons next to the input box.
  8. You can also enter any notes you may want for your reference.
  9. Click on Save to save your Task
  • Advanced Options
    • Under the advanced options you can set additional parameters:
      Dayztask3.png
      The suggestion is to leave the Action and Commandline options as they are.
    • The If Players are Connected: option will allow you a little more granular control of the restart
      Force Restart - will restart the server at on the next date/time scheduled regardless of who is on the server
      Wait until empty - will wait until the last person disconnect from the server and then restart the server
      Skip restart - will simply skip the restart and your server will attempt a restart on the next scheduled date/time

You can find more information on Scheduled Task here

Top

Remote Console RCON

Admin Commands

You must log on as admin before typing admin commands.

  • NOTE: If you have not set an admin password anyone can login as an admin on your server.
    Only 1 person can be logged in a 1 time

Both logon and admin commands have to be sent in the chat prefixed with a #
(Note that some commands may be disabled depending on what type of server you have)


Command Example Notes/Description
#login password #login adminPW Log in as the admin
#exec ban (name, ID or Player#)  #exec ban nickName Allows you to ban a player. Their ID will be added to the ban.txt
<May not be available in DayZSA> #exec ban 47114712
#exec ban 3
#kick (name, ID or Player#) #kick nickName Allows you to kick a player
#kick 47114712
#kick 3
#lock Locks the server, prevents new clients from joining
#unlock Unlocks the server, allows new clients to join

Top

Change RCON Information

The default the Battleye Configuration file (BEServer_x64.cfg) is located in the \battleye folder on your server

 Default Contents:
   RConPassword <MyPasswordHere>
   RestrictRCon 1


Once the server starts it renames this file to BEServer_x64_active_<some random numbers>.cfg, Example: BEServer_x64_active_6262.cfg

  • You can change the password but make sure you STOP the server first.
  1. Locate the BEServer_x64_active_<some number>.cfg file in the \battleeye folder
  2. Click on the pencil/edit icon to edit the file
  3. Make the necessary changes
  4. Save the file
  5. Start your server back up


Options:
RConPassword MyPasswordHere Sets the password for the connection of the RCon tool (remote connection admin tool like BEC/Dart)
RestrictRCon 1 Enables/Disables RCon functions (kick/ban/connection restrictions)

Top

File Backup/Restore

  • We do not backup your server files, it is your responsibility to make backups and if necessary keep an offline copy
  • The backup process only keeps the last three backups that have been made
  • Backup files are located in the \UserBackups folder on your server


  • Expand for more details on the file options:

Configuration Files
This option backups/restores the server \default folder

  • By default the server profile on all TRUgaming DayZ servers is set in the command line to:
    -profiles=<user server directory>\default
  • Please note that the profiles folder on the server does NOT have to be named "profiles"
  • Compressed backup files start with the letter C, followed by the date time stamp of the backup
    Example C_02-05-2019 1257.zip

Mission Files
This option backups/restores the ENTIRE \mpmissions folder on your server

  • By default on all TRUgaming DayZ servers this is set to:
    \mpmissions\dayzOffline.chernarusplus
    and if you add any mods that may use their own structure and add files to the \mpmissions folder those will be included in the backup/restore process.
  • Compressed backup files start with the letter's MPM, followed by the date time stamp of the backup
    Example MPM_02-05-2019 1257.zip

Top

Backup Files

Files can be backed up in one of two ways:

  • Manually, using the Configuration Backup option from the Actions menu
  • Scheduled, by creating a scheduled task under the Scheduled Tasks tab


Manually

  1. Go to the Actions tab
  2. Click on the Backup Configs or Backup mpmissions option
  3. Click OK to execute the script
    ExecuteScript.png
    This will open a command window (if you have a popup blocker turned on you will not see this and may have to allow popups for this site)

    Configbackup1.png
    If your server is running it will stop your server
    Execute the backup script. You will see information regarding the name of the file and number of files being backed up
    If you have more than 3 backup files I will inform you that it is deleting the oldest one
    Once complete, if you server was running it will restart your server.
    You be prompted to close the window... You may close this window :-)


Scheduled For more information on Scheduling a backup task see our Wiki page on the subject: Scheduling Tasks

Restore Files

Files can be only be restored Manually
** NOTE ** THIS WILL OVERWRITE ALL FILES IN THE DESTINATION FOLDER

  1. Go to the Actions tab
  2. Click on the Restore Configs or Restore mpmissions option
  3. You will be prompted with a dropdown list of available files
    RestoreList.png
  4. Select the file you want from the list and then click on the Execute button
    This will open a command window (if you have a popup blocker turned on you will not see this and may have to allow popups for this site)
    If your server is running it will stop your server

    Restorefiles.png
    Once complete, if you server was running it will restart your server.
    You be prompted to close the window... You may close this window :-)


Other Backup/Restore Notes:

  • If you want to restore individual file(s) from a backup, you will need to download the .zip file to your local PC
    Extract the .zip, locate the file you want and then upload it back to your server using the File Manager or an FTP client
  • If you have added custom files to any one of the above folders that are not part of the default file suite they will not be backed up and as a result not restored.
    Files with the following extensions are included in the backups: .c, .bin, .db, .map, .xml, .lst, .cfg

Top

Enabling Admin Logging

  • NOTE: Enabling this option creates multiple files on your server, the size depends on how active your server is and my much logging you are doing.
    Please, only use this if you have to or if you plan on keeping an eye on the .ADM log files and managing them appropriately. If you find you are not not taking
    care of things we will comply go ahead and delete all be the latest file without any warning.
  1. Stop your server, give it a few minutes to close out all the files.
  2. Click on the Commandline Manager
  3. Locate any one of the Predefinded commandline that has the word w/Adminlog in it.
  4. On the right hand side make sure the commandline is Selected, if not, click on the Select link, this will turn the commandline into the active commandline for your server.
    If there are other options mods and/or servermods you can leave those alone.
  5. Go back to your Service Information tab, click on the link between Game Services and Commandline Manager from the menu options., and Start your server



Example .ADM log file output:

AdminLog started on 2019-07-15 at 12:19:02
12:21:00 | Player "Survivor" is connected (id=<Player ID>=)
12:44:17 | Player "Survivor"(id=<Player ID>=) has been disconnected
13:02:50 | Player "Survivor" is connected (id=<Player ID>=)
13:18:06 | Player "Survivor" (DEAD) (id=<Player ID>= pos=<6181.3, 3699.8, 59.0>) died. Stats> Water: 116.251 Energy: 411.258 Bleed sources: 0
13:37:30 | Player "Survivor"(id=<Player ID>=) has been disconnected

Top