DayZ

From TRUgaming Wiki
Revision as of 13:27, 1 August 2019 by Fjamieson (talk | contribs) (Noobs 101)
Jump to navigation Jump to search

Main Page | All_Supported_Games

Noobs 101

  • If you plan on adding mods to your server and run into issues!!!!
  1. Make sure you have the mods on your server
  2. Make sure you have the mods you want active are listed in the commandline
  3. Make sure the names of mods listed in the commandline are identical to the names of the mod folders on your server
    Example:
    @WeaponsReduxPack is NOT the same as @WeaponReduxPack
    You will get an log file error, similar to the: [Error] Mod Error: failed to find mod, @WeaponsReduxPack does not exist
  4. Make sure you have the mods listed in the commandline in the correct order. YES order does matter!!!
  5. Make sure you do not have a trailing semi-colon at the end of your 'mods commmmandline
    Example:
    @CF;@BaseFurnitureMods;@Unlimited Stamina;@VanillaPlusPlusMap is correct
    @CF;@BaseFurnitureMods;@Unlimited Stamina;@VanillaPlusPlusMap; is WRONG
  6. Make sure you have copied the mods .bikey files to the \keys folder
  7. Make sure you have copied any mod profile folders to the profile folder on the server. On TRUgaming servers this is named default
  8. Make sure you have read the mod documentation and associated discussions for any additional setup requirements:
    Additional folders
    Files that require you copy info from 3rd party websites/file repositories
    Files that need to start with your STEAMID64 or BECGUID
  9. If you have made manual edits/changes to your serverDZ.cfg file that they are correct and you have not removed any closing quotes or semi-colons.
    Example:
    hostname = "Your Awesome Server - Hosted by TRUgaming.com"; is correct
    hostname = "Your Awesome Server - Hosted by TRUgaming.com; is WRONG or
    hostname = "Your Awesome Server - Hosted by TRUgaming.com" is WRONG.
  10. If you have edited any .xml or .json files that you have made sure that you have kept the formatting intact.
  11. Make sure you have looked at the log files for errors. Log files are your friend. Yes, there is a lot of info in there, but can save you a lot of time and frustration
  12. If you have been looking a other websites and videos, make sure you have verified that they pertain to the most recent release of the game and actually to the game.
    There is a lot of DayZ information that still exists and is related to the Arma II DayZ mod.

Top

DayZ vs DZSA Launcher

  • DayZ: This is a standard DayZ Server installation.  Requires only the DayZ game client to connect.
  • DZSA Launcher: This installation uses the DayZ SA Launcher tool.  This tool enables the players to subscribe and download the mods running on the server. 
    Mods are checked everytime the player hits join, comparing the local files with those running on the server.  Requires the client side installation of the DZSA Launcher and the DayZ game client to connect.
    For more info on DZSA Launcher, click here
  • NOTE: DayZSA Launcher server setup and management is Identical to a regular DayZ server, so you can use the same instructions below.
    The only extra steps are detailed in DayZ SA Launcher section below.


Top

Server Administration

Changing Loot/Spawn Rates



    • This section is STILL UNDER CONSTRUCTION, but the basics are here **



To edit/change the loot and/or spawn rates on your server, you need to edit teh types.xml file.
This file can be found in the \mpmissions\dayzOffline.chernarusplus\db\ folder.

WARNING:
    Before editing this file, or any of the other server configuration files, make sure you have made a backup copy.
    We can only provide you with an original/default file if you break yours.

There are two ways to edit this file:

Manual Edit

You can use the game control panel built in file editor ( part of the File Manager ). Once you have located the types.xml file. Click on the edit icon (pencil) to open the file.
The other option is to download the file to your local PC and use your favorite editor to edit the file, then upload it back to your server.

In the following example:

   <type name="Ammo_12gaPellets">
        <nominal>100</nominal>
        <lifetime>7200</lifetime>
        <restock>0</restock>
        <min>80</min>
        <quantmin>20</quantmin>
        <quantmax>100</quantmax>
        <cost>100</cost>
        <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
        <category name="weapons"/>
        <usage name="Police"/>
        <usage name="Farm"/>
        <usage name="Town"/>
        <usage name="Village"/>
        <usage name="Hunting"/>
        <value name="Tier1"/>
        <value name="Tier2"/>
        <value name="Tier3"/>
    </type>
Element Description
Name Class Name of Item to Spawn
Nominal Number of items spawned in the world at any given time. (Ideal Value)
Lifetime Time (In Seconds) before this type of items gets deleted in the world (If no players interact with it)
Restock If Value=0, Respawn item type in bulk to reach Nominal Value, If !=0, then Value=Time in seconds to respawn 1 additional item type, until Nominal Value is reached.
Min Minimum number of items of this type in world, Once number falls below minimum, the Restock process begins.
QuantMin Minimum % Value for quantity (Rags #, Mag Ammo Value, Ammo Counts), Use -1 if Not Applicable
QuantMax Maximum % Value for quantity (Rags #, Mag Ammo Value, Ammo Counts), Use -1 if Not Applicable
Cost Priority of Item Spawning in CE queue (100 is default)
Flags

count_in_cargo - Count items stored in containers as part of Nominal Value (0=False, 1=True)
count_in_hoarder - <unknown>
count_in_map - Count items in map as part of Nominal Value (0=False, 1=True)
count_in_player - Count items stored in Player Inventory as part of Nominal Value (0=False, 1=True)
crafted - Is the item a crafted item (0=False, 1=True)
deloot - <unknown>

Category Name Useful for sorting, Internal Category
Usage Name Internal Category used in the mpmissions\dayzOffline.chernarusplus\cfgRandomPresets.xml file.
Value Name Used to specify Central Loot Economy Spawning Locations ( More info here: Loot Locations)

Web Based Editor

This is one link we have found that allows you to edit your types.xml file, very easily.

Follow the instructions on the website.
We cannot provide any assistance with this site. It is provided for information purposes only.



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.

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

Server Profile Folder

PLEASE NOTE:
 Several mods refer to adding information to your Profiles folder.
  • By default the server profile on all TRUgaming DayZ servers is set to: default
    -profiles=<user server directory>\default
  • Please note that the profiles folder on the server does NOT have to be named "Profiles"
    It is whatever value that is set in the commandline variable that is used to launch the server.


The exact path can be seen when you open the Commandline Manager.
Dzcommandlinea.png

Top

'Modding' Your Server

Mod Warning!!

**  WARNING!!!!  ***
Not all mods are supported for mod stacking (multiple mods). Mods may also be outdated upon release of new game updates which have caused major issues for server owners in the past (data loss, crashing). Also, note that technical support related to mods will be rather limited. The moment mods are installed, we are not held liable for any issues which may be related to the mod install - including data loss, service instability, and so forth. You are given every tool necessary to add and maintain mods.

*** PLEASE READ!!!!!! ***

  • Read the instructions from the 'mod' documentation very carefully.
  • Remember mods are new to DayZ SA and they may not work well together so make sure you test them individually, add them one at a time and test
  • Its important to have Mods loaded in the right Order to work properly!
  • Not all so called MODS are mods, some are missions or map updates/addons/enhancements and are treated differently than typical mods
  • Not all 'MODS' require loading anything but the key file to the server, everything else is on the local PC
  • Some mods require extensive editing of key server files, like the init.c and types.xml files. Make sure you have a backup before editing.
  • Some mods are client side and create configuration files that you then add to existing server side files.


Adding Mods To Your Server

Step 1: Subscribe to your Workshop Mods

Once you have subscribed to your workshop mods and they have been downloaded to your local PC,
Launch your DayZ game via the Steam application,
Dayzml8.png
using the Launcher option "Run Dayz Launcher", so that you can add the mods to your game and create the necessary folder shortcuts to make uploading your mods easier.

  • DayZ App and Workshop folder before adding mods

Dayzml1.png


  • DayZ App and Workshop folder after adding mods

Dayzml2.png



Step 2: Upload Your Mods

  1. Finding my Mods on my local PC so I can upload them to my server.
  2. Stop your server
  3. Using your favorite FTP client connect to your server. (Using FileZilla for all examples)
    ( More info on how to FTP files/folders to your server can be found here:411_on_Game_Server_Management#FTP_To_My_Game_Server )
    1. In the Local site: section of your FTP client, navigate to your mod folder on your local PC.
      Dayzml3.png
    2. In the Remote Site: section of yout FTP client, make sure you scroll to the bottom of the file list.
    3. Returning to your Local Site:, Right Click on the mod folder you wish to upload and choose Upload to upload the mod folder to the root of your server
      Dayzml4.png
      Repeat this for every mod you want to upload
      Once complete you will see your mod folder(s) on both sides.
      Dayzml5.png
    4. You can also, at this time, use your FTP client to copy the mod(s) .bikeys file(s) to the \Keys folder on your server.
      Using your favorite FTP client, copy the .bikey file from the mod folder(s) \Keys folder on your PC to the \Keys folder on your server
      Dayzkeys1.png
      The end result is that for each mod you have copied you should have an associated .bikey file in the \Keys folder on your server
      Dayzkeys2.png
      NOTE: the dayz.bikey file is there by default. DO NOT DELETE IT.

Top

Step 3: Changing Commandline

  1. Click on the Commandline Manager
    Cmdlinemgr.png
  2. This will open to your Predefinded Commandline tab.
    Dzcommandlinea.png
  3. Depending on the mod you are using, some mods require the -scrAllowFileWrite flag, click on the Select link on the right hand side
  4. This will open a dialog box
    Dzmodinput.png
    In the Mods input field enter the mods you want loaded. If you are adding multiple mods make sure you separate them with a semi-colon (;)
    Example: @mod1;@mod2;@mod3 or @mod1;mod2,@mod3 (depending on what you have called the mod folders)
    DO NOT put a ";" after the last mod in your list
  5. Click Apply
    Your Commandline will now look like:
    Dzmods.png
    Note: The Select on the right hand side has now changed to Selected. This will be the commandline that the server will use when you start it

Top

Step 4: Additional Configuration

  • PLEASE READ YOUR MOD DOCUMENTATION FOR ADDITIONAL CONFIGURATION REQUIREMENTS
  • IF YOU DO NOT MAKE THESE ADDITIONAL REQUIRED CHANGES YOUR MOD MAY NOT WORK AS EXPECTED
  • Depending on the mod you have installed, some mods require additional configuration of either:
    mod files or other core server files like the init.c file
    creation of additional folders
    creation of additional files.

Top

Step 5: Start Your Server Backup

Once you have started your server, make sure you take a look at the log files to make sure there are no errors.
Available log files can viewed by clicking on the Log Viewer icon.

Top

Changing/Removing Active Mods On Your Server

  1. Stop your server
  2. Using the same basic process as above, click on the Active/Selected commandline and add or remove the mods you want loaded.
    You do not have to delete the mod folder/files from your server.
    BUT, IF YOU MADE ANY CHANGES TO ANY CORE SERVER CONFIG FILES BECAUSE OF A MOD YOU ADDED, IT MAY BREAK YOUR SERVER
    SO REMEMBER WHAT YOU DID AND HOW YOU DID IT
  3. Start your server

Finding my Mods on my local PC

  1. Navigate to the DayZ game folder on your PC.
    Typically .../Steam/steamapps/common/DayZ
    Under this folder you will see a folder called !Workshop
  2. Double click on this folder
    You will see all your subscribed mods
    Dayzml9.png

Back to Step 2: Uploading Your Mods
Top

Additional Server Administration Info

How To Ban Players

There are currently two ways to ban players from a server:

  • Create a file ban.txt in the server root folder and add the player UID in a new line (44 characters long id that you can find in .adm or .rpt logs)
  • Create a file bans.txt in the serverRootDirectory\battleye folder and add the player BE GUID in a new line (32 characters long GUID which you can get from RCon tools like Dart or BEC).


The location of the BattlEye folder can be customized via the startup parameters -bePath and -profiles.

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

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

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

RCON Password Change

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

 Default Contents:
   RConPassword <MyPasswordHere>
   RestrictRCon 1
   * NOTE: Mixed case passwords do not seem to work very well, ie TRUpassword will not let you connect but trupassword will


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.

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

Other Game Info

DayZ SA Launcher

PLEASE NOTE:
     Our offering of the DayZ SA Launcher is the Mod Download Server
     This tool enables clients who join the server to subscribe to the workshop mods, in use on the server, and download them to their local PC. 
     Mods are checked every time the player hits join, comparing the local files with those running on the server.
  
     IF YOU HAVE A regular DayZ server, YOU CANNOT UPLOAD the DZSALModServer.exe file to your server.
     1) Uploading of .exe files is restricted
     2) The .exe file is required to be part of the command line that starts your server and as such cannot be changed by users.
  • The setup is the same as that for a regular DayZ Standalone server (See above)
  • You will need to Check/Register your server for it to appear in the DayZ SA Launcher in-game list
    If everything is setup and running correctly you will see
    Salaunchercheck.png


    • NOTE As of writing this page the DZSALModServer.exe has not been updated since February 2019.
      We will do our best to keep the server side updated but there is no notification process on the developers part as to when update are released.

Top

Workshop Mod: Community Online Tools

We have had numerous questions about the Community Online Tools mod by Jacob Mango.

In the Server Installation Instructions section:

  • Step 3 is says:
    3. Enter your profiles directory for the server and then create the following folder setup.
    - {PROFILE}\PermissionsFramework\Players
    - {PROFILE}\PermissionsFramework\Permissions
    - {PROFILE}\PermissionsFramework\Roles
    - {PROFILE}\CommunityOnlineTools\ItemSets
    - {PROFILE}\CommunityOnlineTools\Vehicles

    On TRUgaming servers the profiles directory is \default, and is located in the root of the server.
    Dayzdefault.png
    The result should look like:
    Dayzdefault1.png


  • Step 47 is says:
    7. Inside PermissionsFramework/Permissions folder create a text file named your Steam64_id.
    This can be obtained while logged into steam goto steam profile/account it will be a series of numbers in link box near top left of steam page at the end of the link.
    Inside of your Steam64_id.txt paste only this link: https://pastebin.com/ktf1Z3Hq.

    The file you create needs to be placed in the PermissionsFramework\Permissions folder.
    Dayzdefault2.png
    The file MUST also end with the .txt extension or it will not work

Top