Frequently I've seen people posting mods and instructing other players to "copy your compiles.sqf to your fixes/custom folder". Well, I've been doing this differently since I first started modding my server so I thought I'd share my knowledge here.
The problem with copying your compiles.sqf to your custom folder is that with each new release, you have to copy the latest version and go through and edit it again. With this solution, you just have to add a line to init.sqf and copy your custom compiles.sqf into your custom folder with each update.
Some people call their folder that contains their custom addons/scripts something other than "custom". Many use the name "fixes". In my example, I use "custom".
1. In your "custom" folder, create a blank file called compiles.sqf. This is the file where anything that is supposed to be added/modified in the compiles.sqf file will go.
2. In your init.sqf file, find this line:
call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
Below it, put this code:
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
It should look similar to this:
//Load in compiled functions call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early) progressLoadingScreen 0.1; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers progressLoadingScreen 0.2; call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical progressLoadingScreen 0.4; call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions progressLoadingScreen 0.5; call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles progressLoadingScreen 1.0;
fnc_usec_selfActions = compile preprocessFileLineNumbers "custom\fn_selfActions.sqf"; // fnc_usec_selfActions - adds custom actions to dayz code