Dan1997 Posted April 15, 2014 Report Share Posted April 15, 2014 Basically when I add random town they have 2 sets of doors, I know definitely that they are NOT called twice is the .sqf file Link to comment Share on other sites More sharing options...
0 Triage Posted April 15, 2014 Report Share Posted April 15, 2014 How are you adding your buildings to your server? Like which method? Link to comment Share on other sites More sharing options...
0 Dan1997 Posted April 15, 2014 Author Report Share Posted April 15, 2014 Through dayz_server.pbo Using server_functions.sqf I am using: call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\script.sqf"; Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 15, 2014 Report Share Posted April 15, 2014 Post your init.sqf Link to comment Share on other sites More sharing options...
0 Dan1997 Posted April 16, 2014 Author Report Share Posted April 16, 2014 My init.sqf has nothing to do with this as I call the buildings server side, my server_functions.sqf is where i call the buildings: http://pastebin.com/i4ZNFgZq but if you insist here is my init.sqf: http://pastebin.com/tCAMUqhe Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 16, 2014 Report Share Posted April 16, 2014 Remove your second call for compiles That will resolve your issue Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 16, 2014 Report Share Posted April 16, 2014 Infact for some reason you have 3 compiles? Why? Link to comment Share on other sites More sharing options...
0 Dan1997 Posted April 17, 2014 Author Report Share Posted April 17, 2014 Can you tell me where i have these 3 call compiles? Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 17, 2014 Report Share Posted April 17, 2014 //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 More sharing options...
0 Buck0 Posted April 17, 2014 Report Share Posted April 17, 2014 double post Link to comment Share on other sites More sharing options...
0 Dan1997 Posted April 17, 2014 Author Report Share Posted April 17, 2014 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 More sharing options...
0 Namindu Posted April 17, 2014 Report Share Posted April 17, 2014 You need to edit the sqf of the added buildings and add theses: At the top: if (isServer) then { Leave a space then what every was in there before. And at the bottom add this: }; Make Sure these have there own line. Link to comment Share on other sites More sharing options...
0 Dan1997 Posted April 18, 2014 Author Report Share Posted April 18, 2014 Already added in the sqfs Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 18, 2014 Report Share Posted April 18, 2014 id have to have a look at your server files, theres mistakes. dont have the time atm as im setting up new servers for several people tho Link to comment Share on other sites More sharing options...
0 Namindu Posted April 18, 2014 Report Share Posted April 18, 2014 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 More sharing options...
0 carl101 Posted April 18, 2014 Report Share Posted April 18, 2014 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 More sharing options...
0 ricwoodard Posted July 5, 2014 Report Share Posted July 5, 2014 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 More sharing options...
Question
Dan1997
Basically when I add random town they have 2 sets of doors, I know definitely that they are NOT called twice is the .sqf file
Link to comment
Share on other sites
16 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now