DayZ: Modding Your Server

From TRUgaming Wiki
Jump to navigation Jump to search

Main Page | DayZ & DayZ Launcher

** 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 (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.
  • *** 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
  • 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 ONLY and create configuration files that you then add to existing server side files.
  • Some mods are server side ONLY and do not need to be installed on your PC. Make sure you read the mod documentation

Server Batch File


Frequently, mod documentation tells you to edit your startup batch file, to edit the "-mod=" parameter...

On TRUgaming servers, you do not have access to the actual batch file itself.
The Commandline Manager allows you to edit any batch parameters that will not cause a conflict with other servers in the system .
Cmdlinelarge.png

For Example:
In the background the batch file looks like:

<programname.exe> -ip=<system managed IP Address> -port=<system managed port number> "-bepath=<system managed user folder>\Battleye" "-profiles=<system managed user folder>\default" "-config=<system managed user folder>\default\serverDZ.cfg"<br>

When you go to add mods, what you see in the Commandline Manager is the information unique to your server:

-ip=<system managed IP Address> -port=<system managed port number> "-bepath=<system managed user folder>\Battleye" "-profiles=<system managed user folder>\default" "-config=<system managed user folder>\default\serverDZ.cfg" "-mod=<user editable mod list>"<br>
  • As the server owner or sub-user with appropriate permissions, you can edit the batch file, but ONLY have access to the -mod= option.
  • For more details on changing your commandline (batch file) see the Changing Commandline section on this page.

Top

Server Profile Folder

IMPORTANT NOTE FOR MODS:
 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

Adding Mods Using The Steam Workshop

NEW FEATURE!!!!

Top

Adding Mods Manually

** PLEASE NOTE ***
  • If you manually add mods to your server, you still need to make sure they are updated
    The Steam Update option in the Game Control Panel, DOES NOT update your mods for you.
  • Anytime your Steam application downloads mod updates or if you are using the DZSA Launcher, it downloads mod updates, you need to upload those updated mods to your server
    You also need to check the mod documentation to see if there are any changes

Top

Changing/Removing Active Mods From Your Server Startup

  1. Stop your server
  2. Click on the Commandline Manager icon
  3. Click on the Active/Selected commandline link on the right of the commandline option you wish to edit
  4. This will open a dialog box that will allow you to add, remove or edit the order of 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
  5. Save you changes
  6. Start your server

Top

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

Workshop Mod Information

ZomBerry Admin Tools

  • To change the key kinding
    Use ZomBerryConfig.json file in Documents\DayZ folder of your user directory (on your PC, not server side)
    (copy it there from ZomBerry addon files if it wasn't created for some reason).
    You need to edit line
    "MenuKey": "KC_M",
    and change KC_M (which stands for M on keyboard) to any key you want.
  • Example of resulting line:
    • "MenuKey": "KC_K",
      (for K key)

Top

Workshop Mod: Community Online Tools

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

Profile Folder Setup Option 1 (Manual)

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

Profile Folder Setup Option 2 (Script)

  1. From Game Service page for your Server, click on the Actions tab
    Dzactions.png
  2. This will list a set of available actions you can perform on your server:
    Dztscript2.png
  3. Click on the [Setup Community Online Tools Folders] link,
  4. Click on the Ok button to Execute the script?
    This will attempt to create the profile folders in the \default\ folder as outlined in the mod documentation.
    1. If you HAVE NOT installed the Community Online Tools mod you will get an error message: Mod folder does not exists. Exiting script
      Click on the X in the top right of the open window, to close it.
    2. If you HAVE installed the mod, it will create the \default\<required folders> folders and and create the empty .txt and .json files listed in the documentation.
      Once completed you will get the message:
      Folders Created
      Placeholder files created:
      steam64_id.txt and steam64_id.json
      The script has executed successfully. You may close this window.
      Click on the X in the top right of the open window to close it.
      You still need to:
      1. Rename the default\PermissionsFramework\Permissions\steam64_id.txt file, replacing steam64_id with your Steam64ID and then add the text from the link in the documentation into the file.
      2. Rename the default\PermissionsFramework\Players\steam64_id.json file, replacing steam64_id with your Steam64ID and then add the text from the link in the documentation into the file.


Top

Workshop Mod: Trader

Steam Workshop DayZ Trader Mod

** PLEASE NOTE ***
   The Steam Workshop page documentation for this mod has some very specific information regarding the placement of the @Trader  text in the -mod= statement.
   From experience, you may need to experiment with its placement as the suggested placement, may not work for you.  
      A lot of it has to do with the other mods you have chosen to load.

There seems to be a lot of confusion regarding the Trader mod set up. Admittedly they are a little confusing!!

The posted instructions are:

15. Navigate to your DayZServer Root Folder.
16. Open the @Trader Folder.
17. Open the ServerProfileFolder Folder.
18. Copy the Trader Folder.
19. Make sure you have setup a Profile Folder for your Server inside the Start Parameters
    click here for more Information about -profiles Launch Parameter[forums.dayz.com]
21. Navigate to the Profile Folder you have setup in the Server Start Parameters.
22. Paste the Trader Folder here.
23. Open the Batchfile to start the Server with an Texteditor.
24. Add @Trader to -mod= (if you are using multiple Mods look into the Mod Loading Info).

The Batch and Profile implementations for TRUgaming servers are explained at the beginning of the Modding Your Server section above.

Profile Folder Setup Option 1 (Manual)

  • These can be done easily using your FTP client or you can do them using the File Manager (a little longer process).
    Dayztrader1.png
  1. You should still have your FTP client open and connected to your server, because you just uploaded the @Trader folder to your server :-)
    In the Local site frame, make sure you are in the @Trader folder
    Click on the + sign next to the ServerProfileFolder folder to expand it.
  2. In the Remote site frame, click on the default folder, so that it is highlighted.
    then go back to the Local site frame and Right click on the Trader folder and select Upload.
    This will upload the Trader folder and its contents to the default folder on your server'
    Dayztrader2.png
  3. Next go to the Commandline Manager and edit your active /Selected commandline
    Add @Trader to the commandline, if there are other mods on the commandline make sure you add the @Trader text in the appropriate location and if there are other mods listed after it, that you add the ; between them.
    See Changing Commandline above for more info.

Profile Folder Setup Option 2 (Script)

  1. From Game Service page for your Server, click on the Actions tab
    Dzactions.png
  2. This will list a set of available actions you can perform on your server:
    Dztscript2.png
  3. Click on the [Setup Trader Profile Folder] link,
  4. Click on the Ok button to Execute the script?
    This will attempt to copy the Trader folder files from the @Trader\ServerProfileFolder\Trader\ folder to the \default\Trader folder.
    1. If you HAVE NOT installed the Trader mod you will get an error message: Mod folder does not exists. Exiting script
      Click on the X in the top right of the open window, to close it.
    2. If you HAVE installed the mod, it will create the \default\Trader folder and copy over the Trader files.
      Once complete you will get the message:
      Trader Files Copied
      The script has executed successfully. You may close this window
      Click on the X in the top right of the open window to close it.
  5. You can verify the copy via the File Manager
    Dztrfiles.png

Top