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.
//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;
The only change I've had to make in my compiles.sqf is a redirect to a customized fn_selfActions.sqf, so as such, my entire custom compiles.sqf looks like this. Any time an addon/script tells you to "modify" your compiles.sqf, simply add that line to your custom compiles.sqf:
Question
BetterDeadThanZed
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:
Below it, put this code:
It should look similar to this:
Link to comment
Share on other sites
42 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now