Jump to content
Sign in to follow this  
vbawol

Trader City Templates Explained (CfgPropTemplate)

Recommended Posts

For some of the newly supported CUP terrain maps I have added a new feature that allows for dynamically placed trader cites and NPC traders. 

The server will attempt to load a template from 'CfgPropTemplate' when the 4th 'telePos' array element is a string.

For example Sahrani uses 3 trader city templates (north,east,west) 
https://github.com/EpochModTeam/Epoch/blob/master/Sources/epoch_server_settings/configs/maps/Sara.h#L38

The initial seed location for these are pulled from Marker locations with the same names. https://github.com/EpochModTeam/Epoch/blob/master/Sources/mpmissions/epoch.Sara/mission.sqm#L2077-L2094

The CfgPropTemplate template data (the actual templates) are contained in the server settings pbo here: https://github.com/EpochModTeam/Epoch/blob/master/Sources/epoch_server_settings/configs/templates/CfgPropTemplate.h

You can customize these templates. The script needed to generate the configs and was made to work with the new 3d "eden editor" can be found here. https://github.com/EpochModTeam/Epoch/blob/8bbec6258a45345080832212299f3aed223a8452/Tools/SQF/saveTraderCityTemplate.sqf

Currently the 4 existing templates (north,east,west,south) are the same exact layouts and will likely made more unique in future patches.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By looter809
      Epoch Trader Converter -- Version 1.0
      A simple program built for DayZ Epoch to easily convert trader files into a CSV file for easier editing. You can also import a CSV file to rebuild trader files. If you want to switch your economy from gold/gem to coins or vice versa, you can simple build a CSV file with your current files and then rebuild the trader files with your desired economy system.
      GITHUB LINK AND DOWNLOAD
      Features
      Convert trader files to CSV files Import CSV files to rebuild trader files Switch between gold/gem and coins Super Fast! YOUTUBE VIDEO EXAMPLE
      Notes
      This DOES NOT deal the with the trader menu handling. If you add Category numbers to the CSV file, you will need to manually assign them to your desired traders. The default location for this is @DayZ_Epoch\addons\dayz_code\system\mission\server_traders\chernarus11.sqf or replace chernarus11.sqf with whichever map you are using. These are not instructions for how to customize this file. It is suggested to backup your trader files before using this program in case of some sort of error. Although, it doesn't change your files directly unless you tell it to. Running Trader to CSV will not take any comments from the trader files, they are stripped as it reads them. Trader to CSV only works with "worth" aka coins and silver/gold item classnames for the buy/sell prices. Be sure to select the entire CfgServerTrader (or CfgServerTraderZSC) folder when using Trader to CSV. Once you have the CSV file, consider the following: You can use the CSV file to rebuild trader files with your desired economy system. Do not add any more columns to the CSV file. Do not change the order of the columns. Do not change the column names. You CAN and are encouraged to add/remove/change the rows in the CSV file, but not the first row (the header row). Notes for when converting back into trader files: You can use the CSV file to rebuild trader files with your desired economy system as previously stated. The returned trader files will be named CfgServerTraderZSC if you are using coins or CfgServerTrader if you are using gold/gem. If you select classic economy, the program will use a lowest common denominator of silver and gold for the buy/sell prices. This means 12000 in the CSV file would be converted to 12x ItemGoldBar10oz Another example: 1050 would be converted to 105x ItemSilverBar10oz Consider the above carefully when choosing prices if you plan to use classic silver/gold economy. As stated before, do not use something like "ItemRuby" for the buy price, it will not work. Epoch should automatically convert 10, "Itembriefcase100oz" to 1 ruby in the traders if you have a ruby set to being worth to 10 briefcases.
    • By calinova22
      How would I go about adding custom vehicles to my server? I want to have an F35B with no weapons. I know how to remove the weapons, just cant find the file for the jet itself to edit.
    • By Cyrus
      I have placed a fuel pump in starry using a custom script. The fuel pump is there and accessible but i would like to know how i can make it work with out the need of having to place a generator or a running fuel ural. by default it acts the same way a placeable fuel pump works picked up in the world. 
      Here is the code that use to spawn the fuel pump. 
      _vehicle_344 = objNull; if (true) then { _this = createVehicle ["Land_A_FuelStation_Feed", [6325.166, 7715.0869, 0.15837258], [], 0, "CAN_COLLIDE"]; _vehicle_344 = _this; _this setDir -52.000465; _this setPos [6325.166, 7715.0869, 0.15837258]; }; Any help will be appreciated.
    • By Cyrus
      Hi,
      I have successfully set up an Arma 3 Epoch altis server (private for now) with a bunch of server side mods running. One of them is the Black Market Trader found elsewhere in the forums. My question is how do i add weapons and gear from the DLC expansions (MARK, HELI) etc. more specifically gear and weapons. I have seen on the BMS server they have gear specific to APEX and helis specific to HELI DLC. My black market trader does not have any of the DLC gear and weapons but only some of the heli's like the Huron and Taru. I own all of the DLC's and they are all present on the server folder structure. I cannot spawn them either using the builtin Anti Hack admin menu as they aren't present.
       
      I there any way that i can make them visible th AH menu and black market trader?
       
      Thanks in advance
    • By Mart123
      Hey, i have a question.
       
      How, and where do i change the prices for my traders in my Dayz Epoch server?
       
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...