r3nt3r Posted January 18, 2015 Report Share Posted January 18, 2015 So I want to add a custom building to my server and done everything but it's not showing. I have this in my server_functions.sqf [] execVM "\z\addons\dayz_server\Maps\bazata.sqf"; And here is my bazata.sqf(too long for here)http://pastebin.com/dNc3CfdJ I don't see where is the problem :/ Link to comment Share on other sites More sharing options...
0 Richie Posted January 18, 2015 Report Share Posted January 18, 2015 Delete what you put and at the very bottom of your server_functions.sqf add the following : call compile preProcessFileLineNumbers "\z\addons\dayz_server\Maps\bazata.sqf"; Link to comment Share on other sites More sharing options...
0 r3nt3r Posted January 18, 2015 Author Report Share Posted January 18, 2015 Delete what you put and at the very bottom of your server_functions.sqf add the following : call compile preProcessFileLineNumbers "\z\addons\dayz_server\Maps\bazata.sqf"; Nope doesn't work :/ I even tried this the result is the same... Link to comment Share on other sites More sharing options...
0 0verHeaT Posted January 18, 2015 Report Share Posted January 18, 2015 Delete this line if (isServer) then { its not necessary when you call it in your server_function Make also sure to check your server .RPT to see if you got an error in your file. Link to comment Share on other sites More sharing options...
0 Richie Posted January 18, 2015 Report Share Posted January 18, 2015 Delete the first line if (isServer) then { and of course the closing bracket at the bottom Link to comment Share on other sites More sharing options...
0 oSoDirty Posted January 18, 2015 Report Share Posted January 18, 2015 I always add my buildings into the mission.sqf. That aside, im not sure if this was intentional or even a problem but starting at line 4497: _vehicle_1409 = objNull; if (true) then { _this = createVehicle ["WoodFloorQuarter_DZ", [6580.1279, 5630.3428, -0.32421464], [], 0, "CAN_COLLIDE"]; _vehicle_1409 = _this; _this setPos [6580.1279, 5630.3428, -0.32421464]; }; there is no direction set. Link to comment Share on other sites More sharing options...
0 Antichrist Posted January 18, 2015 Report Share Posted January 18, 2015 No direction set means it's facing in default direction (0° i believe) Link to comment Share on other sites More sharing options...
0 Richie Posted January 18, 2015 Report Share Posted January 18, 2015 No direction set means it's facing in default direction (0° i believe) Correct, anything without a direction spawns North Link to comment Share on other sites More sharing options...
0 r3nt3r Posted January 18, 2015 Author Report Share Posted January 18, 2015 I deleted the if (isServer) then { and the } but nothing changed. Here is the server .rtp but I don't see any errors related to the buildings.https://secure.r3nt3r.com/b/?b13f578b1bc6a1f4#2ljZv595U+HYTfQ23fTv5SVI7bnHiiRW/DLEtCOSeo4=(pastebin limit reached) Link to comment Share on other sites More sharing options...
0 tripl_b Posted January 20, 2015 Report Share Posted January 20, 2015 I'm having a similar issue. I've followed the instructions above and nothing is appearing on the map. I'm trying to do it from the server side. My server functions sqf and the map files are below. Thanks in advance for any help!! very bottom of server_functions.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"; //trader bor call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\bor.sqf"; //trader klen call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\klen.sqf"; //trader novy call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\novystary.sql"; //trader staroye call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\staroye.sqf"; //trader stary call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\starymods.sqf"; //neaf base call compile preProcessFileLineNumbers "\z\addons\dayz_server\buildingsepo\neaf.sqf"; execVM "\z\addons\dayz_server\init\broadcaster.sqf"; map files _this = createCenter sideLogic; _center_0 = _this; _group_0 = createGroup _center_0; _vehicle_0 = objNull; if (true) then { _this = createVehicle ["Land_A_Hospital", [11893.698, 12668.41], [], 0, "CAN_COLLIDE"]; _vehicle_0 = _this; _this setDir 201.45306; _this setPos [11893.698, 12668.41]; }; _vehicle_1 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11873.832, 12618.718, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_1 = _this; _this setDir -158.75601; _this setPos [11873.832, 12618.718, -6.1035156e-005]; }; _vehicle_2 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11870.668, 12609.84, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_2 = _this; _this setDir 202.21158; _this setPos [11870.668, 12609.84, -3.0517578e-005]; }; _vehicle_3 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11858.497, 12580.785, -0.0001373291], [], 0, "CAN_COLLIDE"]; _vehicle_3 = _this; _this setDir -152.55159; _this setPos [11858.497, 12580.785, -0.0001373291]; }; _vehicle_4 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11863.439, 12592.633, -0.0001373291], [], 0, "CAN_COLLIDE"]; _vehicle_4 = _this; _this setDir 206.11517; _this setPos [11863.439, 12592.633, -0.0001373291]; }; _vehicle_5 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11867.162, 12601.392, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setDir -156.77211; _this setPos [11867.162, 12601.392, -3.0517578e-005]; }; _vehicle_6 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11887.993, 12615.905, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_6 = _this; _this setDir -72.59436; _this setPos [11887.993, 12615.905, 3.0517578e-005]; }; _vehicle_7 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11885.915, 12607.652, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_7 = _this; _this setDir 106.84487; _this setPos [11885.915, 12607.652, -3.0517578e-005]; }; _vehicle_8 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11884.037, 12599.668, -4.5776367e-005], [], 0, "CAN_COLLIDE"]; _vehicle_8 = _this; _this setDir 104.03579; _this setPos [11884.037, 12599.668, -4.5776367e-005]; }; _vehicle_9 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11882.059, 12591.435, -0.00010681152], [], 0, "CAN_COLLIDE"]; _vehicle_9 = _this; _this setDir 106.28995; _this setPos [11882.059, 12591.435, -0.00010681152]; }; _vehicle_10 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11879.962, 12583.429, -4.5776367e-005], [], 0, "CAN_COLLIDE"]; _vehicle_10 = _this; _this setDir 106.93756; _this setPos [11879.962, 12583.429, -4.5776367e-005]; }; _vehicle_11 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11878.208, 12575.68, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_11 = _this; _this setDir 104.33752; _this setPos [11878.208, 12575.68, -6.1035156e-005]; }; _vehicle_12 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11875.771, 12568.021, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_12 = _this; _this setDir 114.01917; _this setPos [11875.771, 12568.021, -1.5258789e-005]; }; _vehicle_13 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11869.531, 12566.754, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_13 = _this; _this setDir 199.95944; _this setPos [11869.531, 12566.754, 6.1035156e-005]; }; _vehicle_14 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11861.588, 12569.508], [], 0, "CAN_COLLIDE"]; _vehicle_14 = _this; _this setDir 19.750738; _this setPos [11861.588, 12569.508]; }; _vehicle_15 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11853.782, 12572.539, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_15 = _this; _this setDir 26.96176; _this setPos [11853.782, 12572.539, -3.0517578e-005]; }; _vehicle_16 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11846.112, 12575.938, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_16 = _this; _this setDir 25.16449; _this setPos [11846.112, 12575.938, -1.5258789e-005]; }; _vehicle_17 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11838.619, 12579.55], [], 0, "CAN_COLLIDE"]; _vehicle_17 = _this; _this setDir 30.707771; _this setPos [11838.619, 12579.55]; }; _vehicle_18 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11831.165, 12583.523, 4.5776367e-005], [], 0, "CAN_COLLIDE"]; _vehicle_18 = _this; _this setDir 29.10655; _this setPos [11831.165, 12583.523, 4.5776367e-005]; }; _vehicle_19 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11823.781, 12587.377, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_19 = _this; _this setDir 26.872557; _this setPos [11823.781, 12587.377, 3.0517578e-005]; }; _vehicle_20 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11816.491, 12590.667, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_20 = _this; _this setDir 27.650181; _this setPos [11816.491, 12590.667, 1.5258789e-005]; }; _vehicle_21 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11808.88, 12594.265, 7.6293945e-005], [], 0, "CAN_COLLIDE"]; _vehicle_21 = _this; _this setDir 26.890776; _this setPos [11808.88, 12594.265, 7.6293945e-005]; }; _vehicle_22 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11808.105, 12599.982, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_22 = _this; _this setDir 116.27681; _this setPos [11808.105, 12599.982, 3.0517578e-005]; }; _vehicle_23 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11811.624, 12607.682, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_23 = _this; _this setDir 116.98647; _this setPos [11811.624, 12607.682, 3.0517578e-005]; }; _vehicle_24 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11815.173, 12615.243], [], 0, "CAN_COLLIDE"]; _vehicle_24 = _this; _this setDir 116.28768; _this setPos [11815.173, 12615.243]; }; _vehicle_25 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11821.279, 12629.775, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_25 = _this; _this setDir -65.788712; _this setPos [11821.279, 12629.775, 1.5258789e-005]; }; _vehicle_26 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11824.51, 12637.448, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_26 = _this; _this setDir 113.17874; _this setPos [11824.51, 12637.448, 6.1035156e-005]; }; _vehicle_27 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11837.376, 12636.652, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_27 = _this; _this setDir 198.4733; _this setPos [11837.376, 12636.652, -1.5258789e-005]; }; _vehicle_28 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11884.56, 12620.774, -7.6293945e-005], [], 0, "CAN_COLLIDE"]; _vehicle_28 = _this; _this setDir 22.607445; _this setPos [11884.56, 12620.774, -7.6293945e-005]; }; _vehicle_29 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11876.798, 12623.75, 0.00010681152], [], 0, "CAN_COLLIDE"]; _vehicle_29 = _this; _this setDir 22.276403; _this setPos [11876.798, 12623.75, 0.00010681152]; }; _vehicle_30 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11868.786, 12626.548, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_30 = _this; _this setDir 20.142328; _this setPos [11868.786, 12626.548, 1.5258789e-005]; }; _vehicle_31 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11860.798, 12629.194, -7.6293945e-005], [], 0, "CAN_COLLIDE"]; _vehicle_31 = _this; _this setDir 20.804188; _this setPos [11860.798, 12629.194, -7.6293945e-005]; }; _vehicle_32 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11853.192, 12631.833, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_32 = _this; _this setDir 21.34149; _this setPos [11853.192, 12631.833, 3.0517578e-005]; }; _vehicle_33 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11845.401, 12634.403, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_33 = _this; _this setDir 18.143631; _this setPos [11845.401, 12634.403, 1.5258789e-005]; }; _vehicle_34 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [11830.297, 12638.937, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_34 = _this; _this setDir 20.033672; _this setPos [11830.297, 12638.937, -3.0517578e-005]; }; _vehicle_35 = objNull; if (true) then { _this = createVehicle ["Hhedgehog_concreteBig", [11820.479, 12621.414, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_35 = _this; _this setDir 111.04386; _this setPos [11820.479, 12621.414, -6.1035156e-005]; }; _vehicle_36 = objNull; if (true) then { _this = createVehicle ["Misc_cargo_cont_net2", [11811.979, 12599.795, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_36 = _this; _this setPos [11811.979, 12599.795, 1.5258789e-005]; }; _vehicle_37 = objNull; if (true) then { _this = createVehicle ["Misc_cargo_cont_net2", [11813.915, 12602.755, 7.6293945e-005], [], 0, "CAN_COLLIDE"]; _vehicle_37 = _this; _this setDir 57.431568; _this setPos [11813.915, 12602.755, 7.6293945e-005]; }; _vehicle_38 = objNull; if (true) then { _this = createVehicle ["PowGen_Big_EP1", [11818.678, 12611.578, 7.6293945e-005], [], 0, "CAN_COLLIDE"]; _vehicle_38 = _this; _this setDir 21.347025; _this setPos [11818.678, 12611.578, 7.6293945e-005]; }; _vehicle_40 = objNull; if (true) then { _this = createVehicle ["Land_Antenna", [11882.305, 12587.301, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_40 = _this; _this setPos [11882.305, 12587.301, 1.5258789e-005]; }; _vehicle_41 = objNull; if (true) then { _this = createVehicle ["M1130_HQ_unfolded_Base_EP1", [11832.576, 12632.886, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_41 = _this; _this setDir -71.604965; _this setPos [11832.576, 12632.886, 3.0517578e-005]; }; _vehicle_43 = objNull; if (true) then { _this = createVehicle ["HeliH", [11840.106, 12602.498, 0], [], 0, "CAN_COLLIDE"]; _vehicle_43 = _this; _this setPos [11840.106, 12602.498, 0]; }; _vehicle_44 = objNull; if (true) then { _this = createVehicle ["HeliH", [11847.743, 12619.038, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_44 = _this; _this setPos [11847.743, 12619.038, 1.5258789e-005]; }; _vehicle_46 = objNull; if (true) then { _this = createVehicle ["Land_A_Stationhouse_ep1", [11851.551, 12682.216, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_46 = _this; _this setDir 196.39677; _this setPos [11851.551, 12682.216, 3.0517578e-005]; }; _vehicle_48 = objNull; if (true) then { _this = createVehicle ["UH1Wreck", [11923.342, 12772.853, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_48 = _this; _this setPos [11923.342, 12772.853, -1.5258789e-005]; }; _vehicle_52 = objNull; if (true) then { _this = createVehicle ["HMMWVWreck", [11813.727, 12629.617, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_52 = _this; _this setPos [11813.727, 12629.617, 6.1035156e-005]; }; _unit_0 = objNull; if (true) then { _this = _group_0 createUnit ["LocationLogicAirport", [11850.864, 12542.281, 4.5776367e-005], [], 0, "CAN_COLLIDE"]; _unit_0 = _this; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; Link to comment Share on other sites More sharing options...
Question
r3nt3r
So I want to add a custom building to my server and done everything but it's not showing.
I have this in my server_functions.sqf
And here is my bazata.sqf(too long for here)
http://pastebin.com/dNc3CfdJ
I don't see where is the problem :/
Link to comment
Share on other sites
9 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