DayZ
Not enough ratings
How to add MODDED items to your Trader (2020)
By Skuzzy
This Guide will walk you through the entire process of adding custom items to your Server's Trader Mod.
   
Award
Favorite
Favorited
Unfavorite
Part 1 - Download and install the Mod
THIS GUIDE ASSUMES YOU ALREADY HAVE CF (Community Framework) AND the TRADER MOD installed

For this Guide, I will use Munghards Item Pack as an example.

Workshop link: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1734713776&searchtext=munghard

  • Subscribe to the Mod
  • Navigate to where DayZ is installed (ProgramFiles/Steam/SteamApps/Common/DayZ)
  • Make sure your File Explorer can view hidden items
  • Click 'View'
  • Check the 'Hidden items' box


  • You should see a '!Workshop' folder
  • Open the folder
  • Copy the @MunghardsItempack folder
  • Navigate to your Server
  • Paste the @MunghardsItempack folder into your Servers main directory
  • Open the @MunghardsItempack folder
  • Open the 'Keys' folder
  • Copy the file
  • Navigate to your Server's 'keys' folder
  • Paste the file inside the Server's 'keys' folder
  • Don't forget to add @MunghardsItempack to your Server's Startup Command Line

Should look similar to this:

"-mod:@CF;@Trader;@MunghardsItempack"

Now we can begin adding Munghards custom items to your current Trader.
Part 2 - Add the items to your Server's economy
You've installed the MunghardsItempack on your server, added it to the startup command line, but you're not finished.

Now you have to manually INJECT the new items into your Server's loot table. And it's very easy to do so.

Make sure you have Notepad++ installed for this part of the guide.

Notepad++
https://notepad-plus-plus.org/downloads/

  • Navigate to your Server
  • Open your 'mpmissions' folder
  • Open your currently chosen map folder (default chernarus is dayzOffline.chernarusplus)
  • Open the 'db' folder

BEFORE PROCEEDING, PLEASE RIGHT CLICK -> COPY THE 'types.xml' FILE -> PASTE A COPY ON YOUR DESKTOP -> PLACE IT IN A FOLDER CALLED 'types backup'.

IF YOU ACCIDENTALLY MESS SOMETHING UP, IT WILL BREAK YOUR SERVER. IT IS IMPORTANT TO HAVE A BACKUP SO THAT YOU CAN RESTART YOUR PROGRESS.


  • Inside the 'db' folder you will see a 'types.xml' file
  • This file holds EVERY loot item in the game of DayZ
  • Right click 'types.xml' -> Edit with Notepad++
  • Minimize this window for now
  • Navigate BACK to your @MunghardsItempack folder INSIDE your Server
  • Open the folder, 'types'

You can ignore all of these files

newtypes newtypes2 newtypes3 newtypes4 newtypes5

We only care about this file

types

  • Open the 'types' file

At this point you should have two Notepad++ windows open.

  • MunghardsItempack types file
  • Your Server's types file

All we need to do, is properly copy and paste the MunghardsItempack items INTO our Server's types file. When we do this, we are telling the server to add these items into the loot pool.

We do not want to include the very top and bottom lines of code that read :

<types> </types>

We want everything in-between that start with :
<type

and end with:

</type>

  • Select and Copy the text in this file
  • Navigate to your Server's types file that you already have open in Notepad++
  • Scroll to the bottom of your Server's types file

You will see these lines at the bottom:

</type> </types>

You will paste the MunghardsItempack code in-between the </type> and </types> code. Like this:

</type> **PASTE THE ITEMS HERE** </types>

You don't have to do this part but I highly recommend that you use a comment to organize your addition to this file.

To do this, scroll up to where the beginning of the MunghardsItempack is (or whichever mod you installed).

For MunghardsItempack, the first item in the list is:

<type name="wolffurcowl_mung"> <lifetime>7200</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> </type>

So I add a blank line ABOVE this item in the list, and I add the following comment:

<!-- MunghardsItempack -->

Using the <!--insert anything here --> comment is the preferred method for writing down notes inside the types files. It will NOT break or disrupt anything in the file. In fact it is the preferred comment method for types.xml files.

DO NOT USE // FOR COMMENTS, IT CAN BREAK YOUR TYPES FILE

USE <!-- to start the comment
USE --> to end the comment

So the beginning of my MunghardsItempack looks like this:

<!-- MunghardsItempack --> <type name="wolffurcowl_mung"> <lifetime>7200</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> </type> <type name="bearfurcowl_mung"> <lifetime>7200</lifetime> <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> </type> etc...etc...

Now, in the future if this Mod is updated and there are NEW items added, you can simply come back to your Server's types.xml file, Open it, Ctrl + F, type MunghardsItempack and it will scroll immediately to where you placed all of this code.

Then it's as easy as highlighting the entire MunghardsItempack, deleting it, and adding in the new items from the update.

Next, adding these items to your Trader.
Part 3 - Add the items to your Server's Trader
Most Mod authors will include a Trader Config file. BUT be aware! Some Mod authors DO NOT include a Trader Config file.

No matter what, they will include a types file. You just learned how to add the new items to your Server's loot table.

IF you download an itempack, and the Mod author did NOT include a Trader Config file, you can still add the items to your Trader. You have to open the Mod's 'types' file and manually copy + paste each item name into your TraderConfig.txt file (located inside your ServerProfile folder).

Anyways, looks like MunghardsItempack DOES in fact include a TraderConfig file.

  • Open your @MunghardsItempack folder in your Server Directory
  • Open the 'traderconfig' folder
  • Right click -> Edit with notepad++ the 'Trader_Config.txt' file

Now we are going to open another window.

  • Navigate to your Server's Directory
  • Open your ServerProfile folder
  • Open the 'Trader' folder

IMPORTANT! MAKE SURE YOU BACK UP THIS TRADER FOLDER! COPY AND PASTE THIS TRADER FOLDER ONTO YOUR DESKTOP AND NAME IT TRADER BACKUP! IF YOU SCREW SOMETHING UP YOU'LL BE HAPPY YOU CAN REVERT BACK TO A DEFAULT FILE!

  • Right click -> Edit with Notepad ++ the 'TraderConfig.txt' file

You should now have 2 windows open:
  • MunghardsItempack traderconfig file
  • Your Server's TraderConfig file

Try to imagine that your Server's TraderConfig file is the MASTER FILE. It includes all of your Traders and items.

When you download new item mods, you will have to add them to your MASTER LIST so that players can see the new items and buy them.

That is what we are doing here. You can now copy the MunghardsItempack traderconfig code and paste it into your Server's TraderConfig file.

You get to choose where it goes. (You can choose which trader sells these items) Just monkey around with it and have fun!

That should cover everything. You can use this guide for any Item mod and it should all work the same.

Please leave feedback if you enjoyed this guide! Let me know if anything is incorrect or if you're having troubles!
9 Comments
Venom8791 9 Nov, 2023 @ 9:05pm 
On gportal it's located at the bottom under mpmission, your map name, dB then trader
BookOfTheDamned 15 Oct, 2023 @ 8:03am 
Maybe I am not using the correct server hosting website I am using GPORTAL but I am adding all my mods Via FileZilla and I cant find my Trader.txt file in my server config folder am I doing something wrong?
Lee 3 Oct, 2022 @ 9:19pm 
It is, it really helped me!
Skuzzy  [author] 2 Oct, 2022 @ 1:09pm 
Thank you! I hope my guide is still relevant as of today. Someone should let me know if that is the case.
Lee 2 Oct, 2022 @ 10:37am 
Great Guide!
Skuzzy  [author] 28 Aug, 2022 @ 5:13pm 
Please share this guide! :)
gwt123 27 Aug, 2022 @ 1:09pm 
More people should know about this guide.
Skuzzy  [author] 5 Nov, 2020 @ 9:43am 
Thank you! :steamhappy:
_Sabre_ 4 Nov, 2020 @ 7:22pm 
Mate, sensational guide, really well articulated and works well when you follow the instructions. Much appreciated.