**I'm Currently away from the ArmA Scene so am unable to update this thread, if anyone wants to take over this and keep it updated feel free to contact me**
How to setup Traders
Ok ive been looking through these forums for info on how to setup traders, move them, build trader citys etc and found that the information is very disjointed and all over the palce.
So I thought I would put it all together before I ask my question.
What Ive found that works:
1. Use M3Editor by @maca134 to place the objects you want in your trader city
(M3Editor Thread: http://www.exilemod.com/topic/236-m3editor-3d-map-editor/?page=1)
(Tut to place Traders:http://www.exilemod.com/topic/607-how-to-build-custom-trader-zones/ )
2. Use this method to get your custom map content onto the server (Keeps the mission file small)
3. Edit the initPlayerLocal.sqf to add/move current traders to your new trader locations
In initPlayerLocal.Sqf :
// Example Trader
"Exile_Trader_Aircraft", <-- Trader Type
["Acts_Kore_IdleNoWeapon_loop"], <-- Trader Animation type
[10165.2,18644.1,0], <-- This is the position of the trader
313.349 <- This is the orientation of the trader
Get the co ordinates for the trader by placing an object using M3Editor and copying the co ords and orientation info from that object to the trader info:
example from M3Editor output sqf: ["TargetP_Civ_F",[17500.5,7168.5,0.228912],0,[[0,1,0],[0,0,1]],false],
4. Edit SafeZones
To edit safeZones copy the mission.sqm to a folder in your Users\USERNAME\Documents\Arma 3 - Other Profiles\ARMA3PROFILE\missions
in the abover folder create a folder called Exile.MAPNAME i.e. Exile.Altis and past the sqm file there.
Open ArmA3 Editor and your mission should be visible to open.
Once open use the Marker placement tool to place SafeZone Triggers and Safezone Markers as you require
SafeZone Trigger Code:
Once you have all your triggers and markers placed save and exit.
Copy the sqm from the Users\USERNAME\Documents\Arma 3 - Other Profiles\ARMA3PROFILE\missions\Exile.MAPNAME to your server mission file and re-pbo.
It seems from testing that you can only place 28 traders, anymore and they don't seem to spawn in-game.
5. Adding Items from other mods: (In progress)
Once you have your traders setup its time to add mod content to them (If you want to run mods such as @Mas, @RHS etc)
Open your config.cpp (In mission file). The config.cpp is layed out as follows:
1. Clan & Crafting Settings
2. Item Costing
3. Item trader definitions
First you want to add any mod items to the Item costings section as shown below:
Once you have added your items you need to add them to the releant area in the definition section to allow the items to be added to the relevent area in the trader menus. to do this add the items again in the areas shown below:
Ensure that the mod from which your adding items is added to your servers startup parameters and you should be good to go.
ArmA has a good error checking function so if you have added items incorectly on server startup it should inform you of any errors and the line in which the error has occured.
* Ensure that clients have the required mods active for the items to show in the trader menu's.
Community Customs Traders: To be done
Anything else people want in this guide (Trader Related)?