Jump to content
  • 0

Adding custom buildings that don't duplicate


Dan1997

Question

16 answers to this question

Recommended Posts

  • 0
//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
call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf";                            //Compile trader configs
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
progressLoadingScreen 1.0;

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions

call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";

call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles

 

why have you not merged these into one?

 

thats whats causing your duplicate building issues

 

at the very least remove 

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions 

as its completely un-needed if u have set ur  custom\compiles up correctly 

Link to comment
Share on other sites

  • 0
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 "server_traders.sqf";				//Compile trader configs
call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
progressLoadingScreen 1.0;

changed it to that still two doors

 

my init.sqf and custom compiles:

 

init: http://pastebin.com/C1VgN3yZ

custom compiles: http://pastebin.com/Bq1H1bEi

Link to comment
Share on other sites

  • 0

I see one error. In the server_functions.sqf

 

Yours is like this

//Balota Airfield Camp
    call compile preProcessFileLineNumbers "z\addons\dayz_server\buildingsepo\epochbalota.sqf";

Should look like this:

//Balota Airfield Camp
    call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\epochbalota.sqf";

Notice the "\z\" instead of "z\"

Link to comment
Share on other sites

  • 0

If calling your building sqf from the mission pbo then in the init.sqf you need to call it from the isserver section before the }; at the end of that section

 

the problem is your servers if putting the buildings in place but when a client joins it is also creating the building, causing a duplicate

Link to comment
Share on other sites

  • 0

OP, did you find a solution? I'm running into the same issue you were. On Epoch, my buildings are fine, but now that I've created an Overpoch server the buildings are duplicating.

 

Any help is appreciated.

 

 

Edit:

I resolved this issue by removing the [] from [] execVM .... when calling the .SQF files from the server pbo. 

 

Before:

 

[] execVM yourdirectory\base.sqf

 

Now:

 

execVM yourdirectory\base.sqf

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...