Jump to content
  • 0

oh noes barrack spawn two times


bliskin

Question

11 answers to this question

Recommended Posts

  • 0

My server_functions.sqf in rar wrapping

http://www.files.com/set/52cc0585570d8

 

Simply this is what I added at the bottom of server_functions.sqf

As far as I know there are no duplicate lines or files

 

//North West Airfield

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\nwaf.sqf";

//North East Airfield

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\neaf.sqf";

//Berezino Military Camp

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\berezino.sqf";

//Kamenka Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\kamenka.sqf";

//Cherno Improved

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\cherno.sqf";

//Zelenogorsk Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\zeleno.sqf";

//Cap G. Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\capg.sqf";

//Abandoned camps

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\milicamps.sqf";

//Elektro Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\elektro.sqf";

//Skalisty Military Refuge

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\skalistyrefuge.sqf";

//Balota Airfield Camp

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildingsepo\epochbalota.sqf";

//West Kamenka Enhanced

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\epochkamenka.sqf";

//Cherno Military Camp

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\epochcherno.sqf";

Link to comment
Share on other sites

  • 0

Not this again :P There should be a ton of topics about this error around here.

 

Anyway, you forgot to wrap this around your files.:

if (isServer) then {

};

So make it look like this:

if (isServer) then {

//North West Airfield

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\nwaf.sqf";

//North East Airfield

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildings\neaf.sqf";

//Berezino Military Camp

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\berezino.sqf";

//Kamenka Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\kamenka.sqf";

//Cherno Improved

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\cherno.sqf";

//Zelenogorsk Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\zeleno.sqf";

//Cap G. Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\capg.sqf";

//Abandoned camps

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\milicamps.sqf";

//Elektro Addons

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\elektro.sqf";

//Skalisty Military Refuge

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildings\skalistyrefuge.sqf";

//Balota Airfield Camp

call compile preProcessFileLineNumbers "z\addons\dayz_server\buildingsepo\epochbalota.sqf";

//West Kamenka Enhanced

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\epochkamenka.sqf";

//Cherno Military Camp

call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\epochcherno.sqf";

};

Or simple copy-paste those custom files/lines into the area where it already states the "if (isServer) then {". Because it's already in your init.sqf

Link to comment
Share on other sites

  • 0

i would load your custom buildings from server side, and check you if they are all correct, this way you can keep you mission file to a minimum and have AI's detect them too

 

in your server PBO create a new folder and add you custom buildings in that folder and then go to your server_functions.sqf and add in the load of the files like this At the bottom of the file:

 

[] execVM "\z\addons\dayz_server\buildingAddon\skacast.sqf";

 

as you see i have a custom folder in the root of my server PBO called buildingAddon

Link to comment
Share on other sites

  • 0

These suggestions are fine and dandy but, I think his issue is a double entry for said barracks in the same spot, hence the two doors, the barracks spawn into each other.

 

Check the .sqf file that spawns that specific barrack and see if there are two that match coordinates, the author of the map edit probably didn't notice the error.

Link to comment
Share on other sites

  • 0

I had this same issue and never found the cause, I think it's another building or object causing it.

If you place the barracks down and just the barracks it works fine, start building other things and the double doors happen.

 

Maybe use a weapons crate instead of a barracks ?

Link to comment
Share on other sites

  • 0

When I had this issue, it was because I did not use the wrap around as suggested above. Also, I call my maps mission side and have never called them server side so IDK if that makes any difference whatsoever. Furthermore, they are still invisible to AI even if you call them server side, or at least that's according to butthead the creator of DZAI.

Here is an example of a commonly used map addition that I did not create but added to my server. It can be found on opendayz.net. I have altered it slightly for my own preferences but the point is, this I show the SQF should look.

 

if(isServer)then{

_vehicle_0 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9613.2188, 11285.408, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_0 = _this;
  _this setDir 48.644501;
  _this setPos [9613.2188, 11285.408, 3.0517578e-005];
};

_vehicle_2 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9607.6006, 11291.501], [], 0, "CAN_COLLIDE"];
  _vehicle_2 = _this;
  _this setDir 48.644501;
  _this setPos [9607.6006, 11291.501];
};

_vehicle_6 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9595.6455, 11304.415, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_6 = _this;
  _this setDir 48.644501;
  _this setPos [9595.6455, 11304.415, 1.5258789e-005];
};

_vehicle_8 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9586.3672, 11316.953, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_8 = _this;
  _this setDir 48.644501;
  _this setPos [9586.3672, 11316.953, -1.5258789e-005];
};

_vehicle_10 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9575.6309, 11328.979, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_10 = _this;
  _this setDir 54.477703;
  _this setPos [9575.6309, 11328.979, 9.1552734e-005];
};

_vehicle_12 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9580.9473, 11322.775, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_12 = _this;
  _this setDir 48.644501;
  _this setPos [9580.9473, 11322.775, -1.5258789e-005];
};

_vehicle_14 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9590.9365, 11310.722], [], 0, "CAN_COLLIDE"];
  _vehicle_14 = _this;
  _this setDir 61.387283;
  _this setPos [9590.9365, 11310.722];
};

_vehicle_16 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9570.5684, 11335.069, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_16 = _this;
  _this setDir 48.644501;
  _this setPos [9570.5684, 11335.069, 3.0517578e-005];
};

_vehicle_18 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9564.9336, 11341.063, 7.6293945e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_18 = _this;
  _this setDir 48.644501;
  _this setPos [9564.9336, 11341.063, 7.6293945e-005];
};

_vehicle_20 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9559.3232, 11346.884, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_20 = _this;
  _this setDir 48.644501;
  _this setPos [9559.3232, 11346.884, 4.5776367e-005];
};

_vehicle_22 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9553.7051, 11352.869, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_22 = _this;
  _this setDir 228.26367;
  _this setPos [9553.7051, 11352.869, -4.5776367e-005];
};

_vehicle_24 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9542.6553, 11342.563, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_24 = _this;
  _this setDir 136.5961;
  _this setPos [9542.6553, 11342.563, 1.5258789e-005];
};

_vehicle_26 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9537.2939, 11336.751, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_26 = _this;
  _this setDir 132.90459;
  _this setPos [9537.2939, 11336.751, 6.1035156e-005];
};

_vehicle_28 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9539.2295, 11315.728, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_28 = _this;
  _this setDir 257.58539;
  _this setPos [9539.2295, 11315.728, 4.5776367e-005];
};

_vehicle_30 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9535.5107, 11322.385, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_30 = _this;
  _this setDir 48.644501;
  _this setPos [9535.5107, 11322.385, 4.5776367e-005];
};

_vehicle_32 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fort_Watchtower_EP1", [9532.7705, 11329.07, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_32 = _this;
  _this setDir 45.901695;
  _this setPos [9532.7705, 11329.07, 1.5258789e-005];
};

_vehicle_33 = objNull;
if (true) then
{
  _this = createVehicle ["Land_repair_center", [9584.6318, 11311.655, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_33 = _this;
  _this setDir 321.34323;
  _this setPos [9584.6318, 11311.655, -4.5776367e-005];
};

_vehicle_34 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [9593.1396, 11276.314, -0.00010681152], [], 0, "CAN_COLLIDE"];
  _vehicle_34 = _this;
  _this setDir -40.795223;
  _this setPos [9593.1396, 11276.314, -0.00010681152];
};

_vehicle_35 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [9586.9883, 11283.221, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_35 = _this;
  _this setDir -40.523617;
  _this setPos [9586.9883, 11283.221, 1.5258789e-005];
};

_vehicle_38 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [9574.96, 11296.953, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_38 = _this;
  _this setDir -40.523617;
  _this setPos [9574.96, 11296.953, -3.0517578e-005];
};

_vehicle_39 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [9581.0088, 11290.104, -0.011734009], [], 0, "CAN_COLLIDE"];
  _vehicle_39 = _this;
  _this setDir -40.795223;
  _this setPos [9581.0088, 11290.104, -0.011734009];
};

_vehicle_42 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [9547.5654, 11329.354, 7.6293945e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_42 = _this;
  _this setDir -40.523617;
  _this setPos [9547.5654, 11329.354, 7.6293945e-005];
};

_vehicle_43 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [9553.7422, 11321.695, -0.079071045], [], 0, "CAN_COLLIDE"];
  _vehicle_43 = _this;
  _this setDir -40.795223;
  _this setPos [9553.7422, 11321.695, -0.079071045];
};

_vehicle_46 = objNull;
if (true) then
{
  _this = createVehicle ["US_WarfareBAntiAirRadar_Base_EP1", [9547.624, 11286.445, 7.6293945e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_46 = _this;
  _this setDir -53.307198;
  _this setPos [9547.624, 11286.445, 7.6293945e-005];
};

_vehicle_47 = objNull;
if (true) then
{
  _this = createVehicle ["US_WarfareBArtilleryRadar_Base_EP1", [9559.8604, 11263.717, 0.00012207031], [], 0, "CAN_COLLIDE"];
  _vehicle_47 = _this;
  _this setDir 143.15996;
  _this setPos [9559.8604, 11263.717, 0.00012207031];
};

_vehicle_48 = objNull;
if (true) then
{
  _this = createVehicle ["US_WarfareBFieldhHospital_Base_EP1", [9585.4365, 11255.966, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_48 = _this;
  _this setDir 45.211361;
  _this setPos [9585.4365, 11255.966, -1.5258789e-005];
};

_vehicle_52 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9537.7744, 11309.841, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_52 = _this;
  _this setDir 315.34207;
  _this setPos [9537.7744, 11309.841, 1.5258789e-005];
};

_vehicle_54 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9535.4463, 11303.079, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_54 = _this;
  _this setDir 270.48871;
  _this setPos [9535.4463, 11303.079, 3.0517578e-005];
};

_vehicle_56 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9535.7217, 11295.386], [], 0, "CAN_COLLIDE"];
  _vehicle_56 = _this;
  _this setDir 267.27856;
  _this setPos [9535.7217, 11295.386];
};

_vehicle_58 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9536.4023, 11287.335], [], 0, "CAN_COLLIDE"];
  _vehicle_58 = _this;
  _this setDir 267.75217;
  _this setPos [9536.4023, 11287.335];
};

_vehicle_60 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9538.1455, 11279.939, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_60 = _this;
  _this setDir 250.44591;
  _this setPos [9538.1455, 11279.939, 9.1552734e-005];
};

_vehicle_62 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9541.7998, 11272.556, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_62 = _this;
  _this setDir 241.30855;
  _this setPos [9541.7998, 11272.556, 6.1035156e-005];
};

_vehicle_64 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9545.998, 11265.243, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_64 = _this;
  _this setDir 241.80844;
  _this setPos [9545.998, 11265.243, 3.0517578e-005];
};

_vehicle_66 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9585.6309, 11241.646, 0.00036621094], [], 0, "CAN_COLLIDE"];
  _vehicle_66 = _this;
  _this setDir 145.72508;
  _this setPos [9585.6309, 11241.646, 0.00036621094];
};

_vehicle_68 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9565.4453, 11238.095, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_68 = _this;
  _this setDir 215.11385;
  _this setPos [9565.4453, 11238.095, -4.5776367e-005];
};

_vehicle_70 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9579.1367, 11236.816, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_70 = _this;
  _this setDir 146.08037;
  _this setPos [9579.1367, 11236.816, -1.5258789e-005];
};

_vehicle_74 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9572.4971, 11235.257, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_74 = _this;
  _this setDir 192.20625;
  _this setPos [9572.4971, 11235.257, -4.5776367e-005];
};

_vehicle_76 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9555.7168, 11252.132, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_76 = _this;
  _this setDir 230.17934;
  _this setPos [9555.7168, 11252.132, -9.1552734e-005];
};

_vehicle_78 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9550.5273, 11258.385, 0.00021362305], [], 0, "CAN_COLLIDE"];
  _vehicle_78 = _this;
  _this setDir 233.9214;
  _this setPos [9550.5273, 11258.385, 0.00021362305];
};

_vehicle_80 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9591.1006, 11247.264, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_80 = _this;
  _this setDir 309.90244;
  _this setPos [9591.1006, 11247.264, 3.0517578e-005];
};

_vehicle_82 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9595.6328, 11253.876, 0.00010681152], [], 0, "CAN_COLLIDE"];
  _vehicle_82 = _this;
  _this setDir 302.17422;
  _this setPos [9595.6328, 11253.876, 0.00010681152];
};

_vehicle_84 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9613.6338, 11279.783], [], 0, "CAN_COLLIDE"];
  _vehicle_84 = _this;
  _this setDir 298.73514;
  _this setPos [9613.6338, 11279.783];
};

_vehicle_86 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9599.5195, 11260.854, 0.00010681152], [], 0, "CAN_COLLIDE"];
  _vehicle_86 = _this;
  _this setDir 300.63861;
  _this setPos [9599.5195, 11260.854, 0.00010681152];
};

_vehicle_88 = objNull;
if (true) then
{
  _this = createVehicle ["Land_HBarrier_large", [9603.8154, 11267.812, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_88 = _this;
  _this setDir 306.48627;
  _this setPos [9603.8154, 11267.812, 4.5776367e-005];
};

_vehicle_90 = objNull;
if (true) then
{
  _this = createVehicle ["Land_fortified_nest_big", [9559.7773, 11244.907, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_90 = _this;
  _this setDir 46.612946;
  _this setPos [9559.7773, 11244.907, 4.5776367e-005];
};

_vehicle_91 = objNull;
if (true) then
{
  _this = createVehicle ["Land_fortified_nest_small", [9608.0615, 11265.349, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_91 = _this;
  _this setDir -50.045353;
  _this setPos [9608.0615, 11265.349, -6.1035156e-005];
};

_vehicle_93 = objNull;
if (true) then
{
  _this = createVehicle ["Land_fortified_nest_small", [9616.126, 11275.157, 4.5776367e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_93 = _this;
  _this setDir -50.045353;
  _this setPos [9616.126, 11275.157, 4.5776367e-005];
};

_vehicle_95 = objNull;
if (true) then
{
  _this = createVehicle ["Land_fortified_nest_small", [9540.291, 11347.493, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_95 = _this;
  _this setDir 130.18826;
  _this setPos [9540.291, 11347.493, -3.0517578e-005];
};

_vehicle_98 = objNull;
if (true) then
{
  _this = createVehicle ["Land_fortified_nest_small", [9549.8018, 11352.833], [], 0, "CAN_COLLIDE"];
  _vehicle_98 = _this;
  _this setDir 136.00327;
  _this setPos [9549.8018, 11352.833];
};

_vehicle_100 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Fort_Watchtower", [9602.3506, 11299.68, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_100 = _this;
  _this setDir 136.75902;
  _this setPos [9602.3506, 11299.68, 1.5258789e-005];
};

_vehicle_101 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Antenna", [9542.1143, 11304.863, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_101 = _this;
  _this setPos [9542.1143, 11304.863, 6.1035156e-005];
};

_vehicle_102 = objNull;
if (true) then
{
  _this = createVehicle ["HeliH", [9558.3691, 11306.055, -7.6293945e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_102 = _this;
  _this setPos [9558.3691, 11306.055, -7.6293945e-005];
};

};

Link to comment
Share on other sites

  • 0

I know an unpacked dayz_server pbo (folder named dayz_server) in the "addons" folder with the packed dayz_server.pbo will do this.  I've left an unpacked pbo in the addons folder with my packed one before and the server still read both. Which duplicated buildings.

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...