Jump to content
  • 0
Sign in to follow this  
FreaksV2.0

new custom buildings not showing

Question

I ran into something weird while trying to set up a new town kamenka. I got it to work in the mpmission files, by editing the init.sqf file, but when I take it out of there to load from server side it wont load in. I don't get no error messages, its just not there.

 

I loaded the file into the dayz_server.pbo, in newbuildings/kamenka.sqf.

Then I edited the server_functions.sqf with this line at the bottom [] execVM "\z\addons\dayz_server\newbuildings\kamenka.sqf"; and nothing happens

 

So what am I overlooking her, any help will do.

 

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 0

Hi Freaks,

 

Create a new .sqf called execution in your newbuildings folder.

 

add this to it and then any other building you want to add after that;

 

call compile preprocessFileLineNumbers "\z\addons\dayz_server\newbuildings\kamenka.sqf";

 

(so if you had say 4 custom building .sqf's , your execution.sqf would look like this;

call compile preprocessFileLineNumbers "\z\addons\dayz_server\newbuildings\kamenka.sqf";

call compile preprocessFileLineNumbers "\z\addons\dayz_server\newbuildings\EXAMPLE1.sqf";

call compile preprocessFileLineNumbers "\z\addons\dayz_server\newbuildings\EXAMPLE2.sqf";

call compile preprocessFileLineNumbers "\z\addons\dayz_server\newbuildings\EXAMPLE3.sqf";

)

 

 

change the line at the very bottom of your server_functions.sqf to this;

 

execVM "\z\addons\dayz_server\newbuildings\execution.sqf";

 

You shouldn't have any issue now.

Share this post


Link to post
Share on other sites
  • 0

nope now I'm getting a long loop of requesting authentication, then about 50 sec in I get "you must be close to mine ore" then nothing but logo screen.

 

1. this is what I did a new file named newbuildings in the dayz_server.pbo,

 

2. in that file 2 .sqf files named execution.sqf & kamenka.sqf,

 

3. execution.sqf is edited with  call compile preprocessFileLineNumbers "\z\addons\dayz_server\newbuildings\kamenka.sqf";

 

4. then edited the server_functions.sqf with this  execVM "\z\addons\dayz_server\newbuildings\execution.sqf";

 

Do you think it might be the kamenka.sqf file itself, this is where i got it from https://github.com/IanHardy/ChernarusBuildings/blob/master/kamenka.sqf .

 

I just don't understand, why does it work in mpmission files and not server side.

Share this post


Link to post
Share on other sites
  • 0

Ok I got it to work, this is what I did.

 

1. create a folder named newbuildings.

 

2. moved my .sqf (kamenka.sqf) files into the newbuildings folder

 

3. edited the kamenka.sqf file by taking out  "if (isServer) then { _vehicle_1 = objNull; if (true) then" line, anything above that like title or who made it, and }; at the bottom so its nothing but codes.

 

4. I moved the whole folder into the dayz_server.pbo

 

5. I edited the dayz_server\init\server_functions with this at the bottom [] ExecVM "\z\addons\dayz_server\newbuildings\kamenka.sqf"; with no closing }; at the end.

 

6. booted up my server, it took a little longer to log in but not bad. Then "badda bing" it worked.

Share this post


Link to post
Share on other sites
  • 0

Offtopic. ICE, you shut down your server?

Kind of, I dont really have the patiance to run it. Its great but the constant hack using is such a pain that I only use it sometimes with friends. Gives me more time to concentrate on custom things and enjoy playing on others! If you want anything, or a hand with yours let me know. A burden shared etc.

 

Ive been working on a few things for the lingor map recently.......

Share this post


Link to post
Share on other sites
  • 0

Hi guys,

 

i hope you can help me. I'm working on map additions for 3 days now.

 

My problem is that i cant see the objects/buildings i added. They aren't just there? No collision or anything...

 

in my dayz_server.pbo:

 

maps\mapedit.sqf

_bldObj_1484 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_FuelStation_Shed", [380.97571, 24870.688, 2.8610229e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1484 = _this;
  _this setPos [380.97571, 24870.688, 2.8610229e-006];
};

_bldObj_1485 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Guardhouse", [608.34406, 24379.836, 1.9073486e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1485 = _this;
  _this setDir -38.972935;
  _this setPos [608.34406, 24379.836, 1.9073486e-005];
};

_bldObj_1486 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_PowGen_Big", [390.79739, 24493.631, -5.1498413e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1486 = _this;
  _this setDir 100.44908;
  _this setPos [390.79739, 24493.631, -5.1498413e-005];
};

_bldObj_1487 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_CamoNet_NATO", [292.27322, 24601.984], [], 0, "CAN_COLLIDE"];
  _bldObj_1487 = _this;
  _this setDir 175.05156;
  _this setPos [292.27322, 24601.984];
};

_bldObj_1488 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_CamoNet_EAST_var1", [336.01419, 24603.289, 2.3841858e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1488 = _this;
  _this setPos [336.01419, 24603.289, 2.3841858e-006];
};

_bldObj_1489 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Pristresek", [288.59882, 24583.947, 2.8610229e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1489 = _this;
  _this setPos [288.59882, 24583.947, 2.8610229e-006];
};

_bldObj_1490 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_obihacka", [623.17639, 24358.73, 9.059906e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1490 = _this;
  _this setDir 230.39415;
  _this setPos [623.17639, 24358.73, 9.059906e-005];
};

_bldObj_1491 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_fort_watchtower", [587.03723, 24332.689, 0.00042295456], [], 0, "CAN_COLLIDE"];
  _bldObj_1491 = _this;
  _this setDir -35.637928;
  _this setPos [587.03723, 24332.689, 0.00042295456];
};

_bldObj_1492 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_fortified_nest_big", [603.98041, 24326.668, 0.00024366379], [], 0, "CAN_COLLIDE"];
  _bldObj_1492 = _this;
  _this setDir -36.327049;
  _this setPos [603.98041, 24326.668, 0.00024366379];
};

_bldObj_1493 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Fortress_02", [654.46277, 24341.975, -1.9550323e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1493 = _this;
  _this setDir 223.86116;
  _this setPos [654.46277, 24341.975, -1.9550323e-005];
};

_bldObj_1494 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_GuardShed", [656.49072, 24292.434, 7.2002411e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1494 = _this;
  _this setDir -10.954136;
  _this setPos [656.49072, 24292.434, 7.2002411e-005];
};

_bldObj_1495 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Pristresek_mensi", [650.17719, 24348.939, -3.3855438e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1495 = _this;
  _this setDir 580.43048;
  _this setPos [650.17719, 24348.939, -3.3855438e-005];
};

_bldObj_1496 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_MASH", [574.0285, 24338.949, -9.2506409e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1496 = _this;
  _this setDir 61.840145;
  _this setPos [574.0285, 24338.949, -9.2506409e-005];
};

_bldObj_1497 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Stan", [491.39874, 24470.521, 9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1497 = _this;
  _this setDir 312.9295;
  _this setPos [491.39874, 24470.521, 9.5367432e-007];
};

_bldObj_1498 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_tent2_west", [460.04456, 24457.869, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1498 = _this;
  _this setDir 51.343689;
  _this setPos [460.04456, 24457.869, 1.9073486e-006];
};

_bldObj_1499 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_tent_east", [379.57764, 24441.039, 9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1499 = _this;
  _this setDir 161.64391;
  _this setPos [379.57764, 24441.039, 9.5367432e-007];
};

_bldObj_1500 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Barbedwire", [676.83179, 24254.852, 0.00010490417], [], 0, "CAN_COLLIDE"];
  _bldObj_1500 = _this;
  _this setDir -65.409859;
  _this setPos [676.83179, 24254.852, 0.00010490417];
};

_bldObj_1501 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Barbedwire", [678.74683, 24259.586], [], 0, "CAN_COLLIDE"];
  _bldObj_1501 = _this;
  _this setDir -67.845322;
  _this setPos [678.74683, 24259.586];
};

_bldObj_1502 = objNull;
if (true) then
{
  _this = createVehicle ["Land_BarGate2", [648.80823, 24280.57, -2.3841858e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1502 = _this;
  _this setDir -4.4415712;
  _this setPos [648.80823, 24280.57, -2.3841858e-006];
};

_bldObj_1503 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CamoNetB_NATO_EP1", [421.43073, 24551.805, -9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1503 = _this;
  _this setDir -0.9629705;
  _this setPos [421.43073, 24551.805, -9.5367432e-007];
};

_bldObj_1504 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [658.88312, 24282.037, 1.9073486e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1504 = _this;
  _this setPos [658.88312, 24282.037, 1.9073486e-005];
};

_bldObj_1505 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [655.43243, 24281.773, -6.2942505e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1505 = _this;
  _this setDir -13.298439;
  _this setPos [655.43243, 24281.773, -6.2942505e-005];
};

_bldObj_1506 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [652.41205, 24281.143, -2.6702881e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1506 = _this;
  _this setDir -14.68742;
  _this setPos [652.41205, 24281.143, -2.6702881e-005];
};

_bldObj_1507 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [645.91364, 24282.074], [], 0, "CAN_COLLIDE"];
  _bldObj_1507 = _this;
  _this setDir 72.820442;
  _this setPos [645.91364, 24282.074];
};

_bldObj_1508 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_concrete_High", [620.90417, 24352.092, 4.2915344e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1508 = _this;
  _this setDir 52.167858;
  _this setPos [620.90417, 24352.092, 4.2915344e-006];
};

_bldObj_1509 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [618.08563, 24351.504, 1.0490417e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1509 = _this;
  _this setDir 49.238327;
  _this setPos [618.08563, 24351.504, 1.0490417e-005];
};

_bldObj_1510 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [616.11261, 24353.867, -4.6730042e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1510 = _this;
  _this setDir 50.292942;
  _this setPos [616.11261, 24353.867, -4.6730042e-005];
};

_bldObj_1511 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [602.76196, 24369.541, 9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1511 = _this;
  _this setDir 50.292942;
  _this setPos [602.76196, 24369.541, 9.5367432e-007];
};

_bldObj_1512 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [605.15021, 24357.865, 0.00029373169], [], 0, "CAN_COLLIDE"];
  _bldObj_1512 = _this;
  _this setDir 50.292942;
  _this setPos [605.15021, 24357.865, 0.00029373169];
};

_bldObj_1513 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [606.35455, 24372.465, -9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1513 = _this;
  _this setDir 141.59235;
  _this setPos [606.35455, 24372.465, -9.5367432e-007];
};

_bldObj_1514 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [618.20569, 24343.184, 9.5367432e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1514 = _this;
  _this setDir 232.3399;
  _this setPos [618.20569, 24343.184, 9.5367432e-006];
};

_bldObj_1515 = objNull;
if (true) then
{
  _this = createVehicle ["Land_CncBlock", [604.26276, 24370.715, 8.5830688e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1515 = _this;
  _this setDir 137.93268;
  _this setPos [604.26276, 24370.715, 8.5830688e-005];
};

_bldObj_1516 = objNull;
if (true) then
{
  _this = createVehicle ["EntranceGate_EP1", [574.53857, 24402.799, 5.0544739e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1516 = _this;
  _this setDir -41.783066;
  _this setPos [574.53857, 24402.799, 5.0544739e-005];
};

_bldObj_1517 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Toilet", [578.28223, 24333.871, -0.00010728836], [], 0, "CAN_COLLIDE"];
  _bldObj_1517 = _this;
  _this setDir 508.03259;
  _this setPos [578.28223, 24333.871, -0.00010728836];
};

_bldObj_1518 = objNull;
if (true) then
{
  _this = createVehicle ["FlagCarrierArmex_EP1", [596.21259, 24329, 2.1934509e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1518 = _this;
  _this setPos [596.21259, 24329, 2.1934509e-005];
};

_bldObj_1519 = objNull;
if (true) then
{
  _this = createVehicle ["HeliH", [249.00566, 24641.094, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1519 = _this;
  _this setPos [249.00566, 24641.094, 1.9073486e-006];
};

_bldObj_1520 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHRescue", [227.10423, 24641.381, -9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1520 = _this;
  _this setPos [227.10423, 24641.381, -9.5367432e-007];
};

_bldObj_1521 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [201.07378, 24641.217, -0.00011444092], [], 0, "CAN_COLLIDE"];
  _bldObj_1521 = _this;
  _this setPos [201.07378, 24641.217, -0.00011444092];
};

_bldObj_1522 = objNull;
if (true) then
{
  _this = createVehicle ["Fort_Barracks_USMC", [253.66716, 24586.604], [], 0, "CAN_COLLIDE"];
  _bldObj_1522 = _this;
  _this setPos [253.66716, 24586.604];
};

_bldObj_1523 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Antenna", [230.17706, 24554.752, 1.335144e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1523 = _this;
  _this setDir -6.0576172;
  _this setPos [230.17706, 24554.752, 1.335144e-005];
};

_bldObj_1524 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Barrack2_EP1", [412.40189, 24579.551, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1524 = _this;
  _this setDir 162.53999;
  _this setPos [412.40189, 24579.551, 1.9073486e-006];
};

_bldObj_1525 = objNull;
if (true) then
{
  _this = createVehicle ["Barrack2", [404.37354, 24577.93, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1525 = _this;
  _this setDir 163.96942;
  _this setPos [404.37354, 24577.93, 3.8146973e-006];
};

_bldObj_1526 = objNull;
if (true) then
{
  _this = createVehicle ["Bunker_PMC", [361.45007, 24761.094], [], 0, "CAN_COLLIDE"];
  _bldObj_1526 = _this;
  _this setDir 104.39967;
  _this setPos [361.45007, 24761.094];
};

_bldObj_1527 = objNull;
if (true) then
{
  _this = createVehicle ["Land_RedWhiteBarrier", [602.18738, 24361.527, 9.5367432e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1527 = _this;
  _this setDir 50.829014;
  _this setPos [602.18738, 24361.527, 9.5367432e-006];
};

_bldObj_1528 = objNull;
if (true) then
{
  _this = createVehicle ["Land_RedWhiteBarrier", [643.75232, 24305.303, -1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1528 = _this;
  _this setPos [643.75232, 24305.303, -1.1444092e-005];
};

_bldObj_1529 = objNull;
if (true) then
{
  _this = createVehicle ["Sign_Danger", [677.67487, 24251.631, -5.9604645e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1529 = _this;
  _this setDir -72.853287;
  _this setPos [677.67487, 24251.631, -5.9604645e-005];
};

_bldObj_1530 = objNull;
if (true) then
{
  _this = createVehicle ["Sign_Checkpoint_US_EP1", [701.82294, 24240.871, 8.1062317e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1530 = _this;
  _this setDir -44.271286;
  _this setPos [701.82294, 24240.871, 8.1062317e-005];
};

_bldObj_1531 = objNull;
if (true) then
{
  _this = createVehicle ["RoadBarrier_long", [715.0246, 24213.932, -1.2397766e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1531 = _this;
  _this setDir -26.621992;
  _this setPos [715.0246, 24213.932, -1.2397766e-005];
};

_bldObj_1532 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBDepot", [352.50952, 24478.672, -2.8610229e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1532 = _this;
  _this setDir 90.193504;
  _this setPos [352.50952, 24478.672, -2.8610229e-005];
};

_bldObj_1533 = objNull;
if (true) then
{
  _this = createVehicle ["USMC_WarfareBArtilleryRadar", [344.55984, 24519.756, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1533 = _this;
  _this setPos [344.55984, 24519.756, 3.8146973e-006];
};

_bldObj_1534 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [289.96426, 24342.584, -7.2479248e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1534 = _this;
  _this setPos [289.96426, 24342.584, -7.2479248e-005];
};

_bldObj_1535 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [305.67578, 24342.563, -2.3841858e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1535 = _this;
  _this setPos [305.67578, 24342.563, -2.3841858e-006];
};

_bldObj_1536 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [321.35956, 24342.615, 0.00032186508], [], 0, "CAN_COLLIDE"];
  _bldObj_1536 = _this;
  _this setPos [321.35956, 24342.615, 0.00032186508];
};

_bldObj_1537 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [336.94565, 24342.43, -0.00011205673], [], 0, "CAN_COLLIDE"];
  _bldObj_1537 = _this;
  _this setPos [336.94565, 24342.43, -0.00011205673];
};

_bldObj_1538 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [352.62799, 24342.484, 0.00014972687], [], 0, "CAN_COLLIDE"];
  _bldObj_1538 = _this;
  _this setPos [352.62799, 24342.484, 0.00014972687];
};

_bldObj_1539 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [368.18658, 24342.389, 5.2452087e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1539 = _this;
  _this setPos [368.18658, 24342.389, 5.2452087e-006];
};

_bldObj_1540 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [375.04706, 24334.895, 0.00011444092], [], 0, "CAN_COLLIDE"];
  _bldObj_1540 = _this;
  _this setDir 88.141006;
  _this setPos [375.04706, 24334.895, 0.00011444092];
};

_bldObj_1541 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [382.50424, 24326.51, 9.393692e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1541 = _this;
  _this setDir 182.56462;
  _this setPos [382.50424, 24326.51, 9.393692e-005];
};

_bldObj_1542 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [397.44556, 24326.701, 2.2411346e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1542 = _this;
  _this setPos [397.44556, 24326.701, 2.2411346e-005];
};

_bldObj_1543 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [409.63406, 24326.381, -0.00030136108], [], 0, "CAN_COLLIDE"];
  _bldObj_1543 = _this;
  _this setPos [409.63406, 24326.381, -0.00030136108];
};

_bldObj_1544 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [424.83267, 24326.404, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1544 = _this;
  _this setPos [424.83267, 24326.404, 1.5258789e-005];
};

_bldObj_1545 = objNull;
if (true) then
{
  _this = createVehicle ["Base_WarfareBBarrier10xTall", [440.4725, 24326.582, -9.5367432e-007], [], 0, "CAN_COLLIDE"];
  _bldObj_1545 = _this;
  _this setPos [440.4725, 24326.582, -9.5367432e-007];
};

_bldObj_1546 = objNull;
if (true) then
{
  _this = createVehicle ["LAV25_HQ_unfolded", [321.78799, 24520.275, 0.0001411438], [], 0, "CAN_COLLIDE"];
  _bldObj_1546 = _this;
  _this setPos [321.78799, 24520.275, 0.0001411438];
};

_bldObj_1547 = objNull;
if (true) then
{
  _this = createVehicle ["USMC_WarfareBBarracks", [364.53867, 24517.74, 1.9073486e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1547 = _this;
  _this setPos [364.53867, 24517.74, 1.9073486e-005];
};

_bldObj_1548 = objNull;
if (true) then
{
  _this = createVehicle ["USMC_WarfareBLightFactory", [389.49557, 24473.18, 1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1548 = _this;
  _this setPos [389.49557, 24473.18, 1.1444092e-005];
};

_bldObj_1549 = objNull;
if (true) then
{
  _this = createVehicle ["USMC_WarfareBAntiAirRadar", [371.23782, 24572.953, 2.8610229e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1549 = _this;
  _this setPos [371.23782, 24572.953, 2.8610229e-005];
};

_bldObj_1550 = objNull;
if (true) then
{
  _this = createVehicle ["USMC_WarfareBAircraftFactory", [442.73383, 24504.148, 2.2888184e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1550 = _this;
  _this setPos [442.73383, 24504.148, 2.2888184e-005];
};

_bldObj_1551 = objNull;
if (true) then
{
  _this = createVehicle ["USMC_WarfareBHeavyFactory", [334.63956, 24422.914, 1.9073486e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1551 = _this;
  _this setDir 179.49994;
  _this setPos [334.63956, 24422.914, 1.9073486e-005];
};

_bldObj_1552 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBAirport", [114.70186, 24885.354, 5.3405762e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1552 = _this;
  _this setPos [114.70186, 24885.354, 5.3405762e-005];
};

_bldObj_1553 = objNull;
if (true) then
{
  _this = createVehicle ["WarfareBAirport", [110.3716, 24703.83, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1553 = _this;
  _this setDir 177.72339;
  _this setPos [110.3716, 24703.83, -1.5258789e-005];
};

_bldObj_1554 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_runway_beton", [112.99685, 24794.578, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
  _bldObj_1554 = _this;
  _this setPos [112.99685, 24794.578, 3.8146973e-006];
};

_bldObj_1555 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_runway_beton", [108.57281, 24721.6, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _bldObj_1555 = _this;
  _this setPos [108.57281, 24721.6, -3.0517578e-005];
};

processInitCommands;

i edited server_functions.sqf (last line):

 

call compile preprocessFileLineNumbers "\z\addons\dayz_server\maps\mapedit.sqf";

 

The Mod is Dayz Epoch 1.0.5.1 (Linux Debian Server) - Sauerland Map

 

If you need more information tell me.

Share this post


Link to post
Share on other sites
  • 0

in dayz_server.pbo

 

missions\Dayz_Epoch_25.chernarus\mission.sqf

 

start:

_vehicle_27 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1E_EP1", [24774.123, 21743.719, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_27 = _this;
  _this setPos [24774.123, 21743.719, -6.1035156e-005];
};

_vehicle_28 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1B_military", [24753.67, 21727.393, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_28 = _this;
  _this setDir 89.235222;
  _this setPos [24753.67, 21727.393, 6.1035156e-005];
};

_vehicle_29 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1Bo_military", [24742.969, 21765.781, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_29 = _this;
  _this setDir 190.70085;
  _this setPos [24742.969, 21765.781, 9.1552734e-005];
};

_vehicle_30 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1Eo_EP1", [24756.422, 21749.088, 0.00018310547], [], 0, "CAN_COLLIDE"];
  _vehicle_30 = _this;
  _this setDir -120.50433;
  _this setPos [24756.422, 21749.088, 0.00018310547];
};

_vehicle_34 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1B_military", [24752.213, 21758.996, -0.034812283], [], 0, "CAN_COLLIDE"];
  _vehicle_34 = _this;
  _this setDir -47.392124;
  _this setPos [24752.213, 21758.996, -0.034812283];
};

_vehicle_36 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1E_EP1", [24756.449, 21754.355, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_36 = _this;
  _this setDir -37.268543;
  _this setPos [24756.449, 21754.355, -3.0517578e-005];
};

and so on...

 

end:

_vehicle_1480 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_cargo_cont_net3", [2445.7886, 3894.7576, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_1480 = _this;
  _this setDir -95.426903;
  _this setPos [2445.7886, 3894.7576, -3.0517578e-005];
};

_vehicle_1482 = objNull;
if (true) then
{
  _this = createVehicle ["FoldChair", [2446.5603, 3898.8323], [], 0, "CAN_COLLIDE"];
  _vehicle_1482 = _this;
  _this setDir 103.76042;
  _this setPos [2446.5603, 3898.8323];
};

_vehicle_1483 = objNull;
if (true) then
{
  _this = createVehicle ["FoldTable", [2444.9607, 3899.1589, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_1483 = _this;
  _this setDir -92.448402;
  _this setPos [2444.9607, 3899.1589, 3.0517578e-005];
};

_unit_173 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Soldier_MG", [2446.0735, 3899.76], [], 0, "CAN_COLLIDE"];
  _unit_173 = _this;
  _this setDir -97.42749;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;  ";
  _this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};

processInitCommands;

Share this post


Link to post
Share on other sites
  • 0

I did not change server_monitor.sqf at all, but i read some people does instead of editing server_functions.sqf

 

No clue what the difference is.

 

As well with [] ExecVM "..." or execVM "..." or call compile preprocessFileLineNumbers "..."

 

I dont think that, in my mission.pbo the init.sqf has

 

DZE_BuildOnRoad = false;

 

matters.

 

I just wanted to build a admin base & in the future other buildings over the map on server side (not mission.pbo)

 

I also read all 17 pages of

 

and tried all kind of combinations (dont worry did backup of original), there was just no difference ingame.

Share this post


Link to post
Share on other sites
  • 0
Guest

Hi, Atsutake. As far as i can see, you are using ProcessInitCommands twice, but you are only allowed to use it once. Everything else will be ignored.

Also make sure, that you don't have any variable twice.

Share this post


Link to post
Share on other sites
  • 0

I posted my new files here:

 

processInitCommands = call compile preprocessFileLineNumbers?

 

Can you tell me what file i should edit and how, but in other topic because my files look like those in the other thread.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By FG_Trap
      Made this in my free time awhile ago thought id make it public.
      Right Alt is the key to open the menu.
      Install instructions are inside the download.
      https://github.com/NWDZ-Trapxxgods/traps-menu
       
       
      here is a picture of the server menu
       
    • By spitfirez404
      Hey, everyone I have built a cave with added trees and more I use on my server it can be used for a custom Ai mission or whatever you would like to use it for on the map Chernarus! Just add in the ai or what you want.
      Use notepad++ or whatever you normally use and make a mission.sqm file place this code (Below) inside of it.
      At the bottom of the code where it says "Hallows Cave" you can rename it whatever you like.
      Use the A2 editor and merge this with your original mission.sqm make sure to keep the original mission.sqm from your server in case you do not like it.
      Hope you like it! :) 
      version=11; class Mission { addOns[]= { "map_eu", "caair2_uh1y", "CAMisc", "camisc3", "chernarus" }; addOnsAuto[]= { "map_eu", "caair2_uh1y", "CAMisc", "camisc3", "chernarus" }; randomSeed=7826573; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; class Vehicles { items=65; class Item0 { position[]={1308.886,0.1181917,5812.1128}; azimut=175.6563; id=0; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1308.886, 5812.1128, 0.1181917];"; }; class Item1 { position[]={1337.8951,0.00010681152,5812.9761}; azimut=-183.59708; id=1; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1337.8951, 5812.9761, 0.00010681152];"; }; class Item2 { position[]={1279.5168,-3.0517578e-005,5810.7354}; azimut=-184.08788; id=2; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1279.5168, 5810.7354, -3.0517578e-005];"; }; class Item3 { position[]={1263.7977,3.0517578e-005,5797.2485}; azimut=83.567741; id=3; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1263.7977, 5797.2485, 3.0517578e-005];"; }; class Item4 { position[]={1353.0201,-1.5258789e-005,5791.4214}; azimut=-100.02558; id=4; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1353.0201, 5791.4214, -1.5258789e-005];"; }; class Item5 { position[]={1352.4172,0.00015258789,5756.6089}; azimut=-95.953461; id=5; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1352.4172, 5756.6089, 0.00015258789];"; }; class Item6 { position[]={1266.1676,0.00033569336,5757.0713}; azimut=78.796616; id=6; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1266.1676, 5757.0713, 0.00033569336];"; }; class Item7 { position[]={1292.1116,25.500643,5798.3506}; azimut=175.98927; id=7; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1292.1116, 5798.3506, 25.500643];"; }; class Item8 { position[]={1330.1263,26.658922,5798.1104}; azimut=177.82625; id=8; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1330.1263, 5798.1104, 26.658922];"; }; class Item9 { position[]={1292.7681,24.582647,5781.6655}; azimut=172.31401; id=9; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1292.7681, 5781.6655, 24.582647];"; }; class Item10 { position[]={1332.5977,25.092699,5782.042}; azimut=177.05884; id=10; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1332.5977, 5782.042, 25.092699];"; }; class Item11 { position[]={1288.6293,25.61083,5763.2319}; azimut=178.23929; id=11; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1288.6293, 5763.2319, 25.61083];"; }; class Item12 { position[]={1327.7802,27.711185,5760.9395}; azimut=170.81143; id=12; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1327.7802, 5760.9395, 27.711185];"; }; class Item13 { position[]={1330.2716,23.567842,5746.3193}; azimut=182.9642; id=13; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1330.2716, 5746.3193, 23.567842];"; }; class Item14 { position[]={1289.9707,23.964474,5744.1226}; azimut=183.20248; id=14; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1289.9707, 5744.1226, 23.964474];"; }; class Item15 { position[]={1343.7726,0.00018310547,5738.4648}; id=15; side="EMPTY"; vehicle="MAP_R2_RockTower"; skill=0.2; init="this setpos [1343.7726, 5738.4648, 0.00018310547];"; }; class Item16 { position[]={1310.6842,6.1035156e-005,5731.2124}; id=16; side="EMPTY"; vehicle="MAP_R2_RockTower"; skill=0.2; init="this setpos [1310.6842, 5731.2124, 6.1035156e-005];"; }; class Item17 { position[]={1280.5291,0.00012207031,5737.0176}; id=17; side="EMPTY"; vehicle="MAP_R2_RockTower"; skill=0.2; init="this setpos [1280.5291, 5737.0176, 0.00012207031];"; }; class Item18 { position[]={1386.9114,-15.594225,5725.9766}; id=18; side="EMPTY"; vehicle="MAP_R2_RockTower"; skill=0.2; init="this setpos [1386.9114, 5725.9766, -15.594225];"; }; class Item19 { position[]={1230.8561,-15.415525,5720.2939}; id=19; side="EMPTY"; vehicle="MAP_R2_RockTower"; skill=0.2; init="this setpos [1230.8561, 5720.2939, -15.415525];"; }; class Item20 { position[]={1319.9504,0.00019836426,5730.3481}; id=20; side="EMPTY"; vehicle="MAP_R2_Stone"; skill=0.2; init="this setpos [1319.9504, 5730.3481, 0.00019836426];"; }; class Item21 { position[]={1327.1923,4.5776367e-005,5738.917}; id=21; side="EMPTY"; vehicle="MAP_R2_Boulder2"; skill=0.2; init="this setpos [1327.1923, 5738.917, 4.5776367e-005];"; }; class Item22 { position[]={1337.9111,7.6293945e-005,5754.7773}; id=22; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1337.9111, 5754.7773, 7.6293945e-005];"; }; class Item23 { position[]={1285.358,7.6293945e-005,5729.2915}; id=23; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1285.358, 5729.2915, 7.6293945e-005];"; }; class Item24 { position[]={1284.3668,0.00016784668,5751.1152}; id=24; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1284.3668, 5751.1152, 0.00016784668];"; }; class Item25 { position[]={1310.3997,-3.0517578e-005,5719.9819}; id=25; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1310.3997, 5719.9819, -3.0517578e-005];"; }; class Item26 { position[]={1272.9858,-3.0517578e-005,5802.6533}; id=26; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1272.9858, 5802.6533, -3.0517578e-005];"; }; class Item27 { position[]={1345.4098,-4.5776367e-005,5729.5298}; id=27; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1345.4098, 5729.5298, -4.5776367e-005];"; }; class Item28 { position[]={1319.2845,0,5751.3809}; id=28; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; }; class Item29 { position[]={1302.6494,0.00012207031,5723.6025}; id=29; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1302.6494, 5723.6025, 0.00012207031];"; }; class Item30 { position[]={1333.9025,4.5776367e-005,5737.189}; id=30; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1333.9025, 5737.189, 4.5776367e-005];"; }; class Item31 { position[]={1318.0431,1.5258789e-005,5784.6226}; id=31; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1318.0431, 5784.6226, 1.5258789e-005];"; }; class Item32 { position[]={1263.4698,4.5776367e-005,5722.6357}; id=32; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1263.4698, 5722.6357, 4.5776367e-005];"; }; class Item33 { position[]={1293.6953,1.5258789e-005,5764.6636}; id=33; side="EMPTY"; vehicle="MAP_R2_Boulder1"; skill=0.2; init="this setpos [1293.6953, 5764.6636, 1.5258789e-005];"; }; class Item34 { position[]={1358.4407,4.5776367e-005,5730.458}; id=34; side="EMPTY"; vehicle="MAP_R2_Boulder2"; skill=0.2; init="this setpos [1358.4407, 5730.458, 4.5776367e-005];"; }; class Item35 { position[]={1351.8339,9.1552734e-005,5722.1943}; id=35; side="EMPTY"; vehicle="MAP_R2_Boulder2"; skill=0.2; init="this setpos [1351.8339, 5722.1943, 9.1552734e-005];"; }; class Item36 { position[]={1316.3303,0.00012207031,5721.6694}; id=36; side="EMPTY"; vehicle="MAP_R2_Boulder2"; skill=0.2; init="this setpos [1316.3303, 5721.6694, 0.00012207031];"; }; class Item37 { position[]={1278.1462,6.1035156e-005,5727.2095}; id=37; side="EMPTY"; vehicle="MAP_R2_Boulder2"; skill=0.2; init="this setpos [1278.1462, 5727.2095, 6.1035156e-005];"; }; class Item38 { position[]={1348.8813,1.5258789e-005,5725.9893}; id=38; side="EMPTY"; vehicle="MAP_t_carpinus2s"; skill=0.2; init="this setpos [1348.8813, 5725.9893, 1.5258789e-005];"; }; class Item39 { position[]={1278.8987,0,5723.5278}; id=39; side="EMPTY"; vehicle="MAP_t_carpinus2s"; skill=0.2; }; class Item40 { position[]={1312.1283,6.1035156e-005,5716.896}; id=40; side="EMPTY"; vehicle="MAP_t_acer2s"; skill=0.2; init="this setpos [1312.1283, 5716.896, 6.1035156e-005];"; }; class Item41 { position[]={1224.8661,4.5776367e-005,5812.3364}; id=41; side="EMPTY"; vehicle="MAP_t_betula2s"; skill=0.2; init="this setpos [1224.8661, 5812.3364, 4.5776367e-005];"; }; class Item42 { position[]={1267.177,1.5258789e-005,5691.4517}; id=42; side="EMPTY"; vehicle="MAP_t_betula2s"; skill=0.2; init="this setpos [1267.177, 5691.4517, 1.5258789e-005];"; }; class Item43 { position[]={1391.4387,4.5776367e-005,5717.2666}; id=43; side="EMPTY"; vehicle="MAP_t_betula2s"; skill=0.2; init="this setpos [1391.4387, 5717.2666, 4.5776367e-005];"; }; class Item44 { position[]={1362.6277,0.00018310547,5691.1436}; azimut=66.556885; id=44; side="EMPTY"; vehicle="MAP_t_betula2s"; skill=0.2; init="this setpos [1362.6277, 5691.1436, 0.00018310547];"; }; class Item45 { position[]={1372.9424,0.00010681152,5646.2871}; id=45; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1372.9424, 5646.2871, 0.00010681152];"; }; class Item46 { position[]={1303.2216,0.00015258789,5666.5625}; id=46; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1303.2216, 5666.5625, 0.00015258789];"; }; class Item47 { position[]={1335.0012,1.5258789e-005,5623.2314}; id=47; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1335.0012, 5623.2314, 1.5258789e-005];"; }; class Item48 { position[]={1293.4785,-0.00021362305,5616.0273}; id=48; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1293.4785, 5616.0273, -0.00021362305];"; }; class Item49 { position[]={1361.7677,0.0001373291,5605.0732}; id=49; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1361.7677, 5605.0732, 0.0001373291];"; }; class Item50 { position[]={1395.4496,0.00010681152,5770.7378}; id=50; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1395.4496, 5770.7378, 0.00010681152];"; }; class Item51 { position[]={1387.2894,0.0002746582,5826.9111}; id=51; side="EMPTY"; vehicle="MAP_t_fagus2f"; skill=0.2; init="this setpos [1387.2894, 5826.9111, 0.0002746582];"; }; class Item52 { position[]={1333.8317,3.0517578e-005,5666.271}; id=52; side="EMPTY"; vehicle="MAP_t_picea2s"; skill=0.2; init="this setpos [1333.8317, 5666.271, 3.0517578e-005];"; }; class Item53 { position[]={1291.162,0.00051879883,5633.918}; id=53; side="EMPTY"; vehicle="MAP_t_picea2s"; skill=0.2; init="this setpos [1291.162, 5633.918, 0.00051879883];"; }; class Item54 { position[]={1245.4023,9.1552734e-005,5722.3335}; id=54; side="EMPTY"; vehicle="MAP_t_picea2s"; skill=0.2; init="this setpos [1245.4023, 5722.3335, 9.1552734e-005];"; }; class Item55 { position[]={1382.7906,0.00015258789,5688.6479}; id=55; side="EMPTY"; vehicle="MAP_t_picea2s"; skill=0.2; init="this setpos [1382.7906, 5688.6479, 0.00015258789];"; }; class Item56 { position[]={1317.1052,0.00010681152,5610.771}; id=56; side="EMPTY"; vehicle="MAP_t_picea2s"; skill=0.2; init="this setpos [1317.1052, 5610.771, 0.00010681152];"; }; class Item57 { position[]={1304.2625,3.0517578e-005,5696.6387}; id=57; side="EMPTY"; vehicle="MAP_t_picea3f"; skill=0.2; init="this setpos [1304.2625, 5696.6387, 3.0517578e-005];"; }; class Item58 { position[]={1329.5486,0.00016784668,5707.4805}; id=58; side="EMPTY"; vehicle="MAP_t_picea3f"; skill=0.2; init="this setpos [1329.5486, 5707.4805, 0.00016784668];"; }; class Item59 { position[]={1338.825,6.1035156e-005,5618.6816}; id=59; side="EMPTY"; vehicle="MAP_t_picea3f"; skill=0.2; init="this setpos [1338.825, 5618.6816, 6.1035156e-005];"; }; class Item60 { position[]={1292.2566,0.00018310547,5660.4814}; azimut=-189.29378; id=60; side="EMPTY"; vehicle="UH1Wreck"; skill=0.2; init="this setpos [1292.2566, 5660.4814, 0.00018310547];"; }; class Item61 { position[]={1357.3984,0.00033569336,5723.8389}; azimut=55.139076; id=61; side="EMPTY"; vehicle="hiluxWreck"; skill=0.2; init="this setpos [1357.3984, 5723.8389, 0.00033569336];"; }; class Item62 { position[]={1326.6917,18.652861,5740.6152}; azimut=-10.305964; id=62; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1326.6917, 5740.6152, 18.652861];"; }; class Item63 { position[]={1285.3906,18.872669,5737.8501}; id=63; side="EMPTY"; vehicle="MAP_R2_RockWall"; skill=0.2; init="this setpos [1285.3906, 5737.8501, 18.872669];"; }; class Item64 { position[]={1311.3625,-9.6852903,5776.6274}; azimut=46.218235; id=64; side="EMPTY"; vehicle="MAP_R2_RockTower"; skill=0.2; init="this setpos [1311.3625, 5776.6274, -9.6852903];"; }; }; class Markers { items=1; class Item0 { position[]={1307.9352,6.1035156e-005,5755.5313}; name="Hallows Cave"; text="Hallows Cave"; type="Dot"; colorName="ColorBlack"; }; }; }; class Intro { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=7826573; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; class OutroWin { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=7826573; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; }; class OutroLoose { addOns[]= { "chernarus" }; addOnsAuto[]= { "chernarus" }; randomSeed=7826573; class Intel { startWeather=0.40000001; forecastWeather=0.25; year=2008; month=10; day=11; hour=14; minute=20; }; };

    • By freakneek
      G'day, Guys and Girls,
      you might want grab another Rabbitman Beer or R4Z0R soda (if your not allowed beer). This is gonna be a long one!
      This tutorial goes into some length and is for the most part, copy/paste, from @Poncho's How to make Custom map content [ Tutorial & Ongoing Support ] tutorial. I had a major issue today trying to figure out why my map edit wasn't working. but after many thanks to the awesome @JasonTM, for identifying the issue, It has been found that you need to use a compiles line instead of a execVM line in the code.
      ***NOTE***
      This tutorial is not my work.... BUT, I felt that this could use an update.
      ***for those of you who already know how to do this scroll down to the server_functions.sqf part!***

      Most people create these map additions, simply by launching dayz through an epoch server via dayz commander will give you a working editor, but some buildings (such as Barracks, Hospitals, and Fire Stations) will not spawn any loot.
      This is because of their class names. The default ARMA editor makes most building classnames begin with "Map_" . All buildings of this type will not spawn loot in dayz, this is inherited from the EU_ update to the editor. You may simply read through your code and change all these manually to (for example) "Land_A_Hospital" instead of the original "Map_A_Hospital" to trigger loot spawns within those buildings.
      There is however an easier way for those of you unfamiliar with code, which also adds a few extra items in. This will however remove some options brought by the EU_ update such as being able to place rocks/cliffs e.t.c so it is important to pick when you want to use the editor I am about to show you.
      It is called the Jon-C5- Editor Update by (surprisingly enough) Jon-C5-. It is available  here http://www.armaholic.com/page.php?id=5932
       
      To turn your map edits into functioning dayz map additions simply follow the instructions below (If you do not wish to use the Jon-C5-Editor, skip to step 4):
      1) Download the zip file linked above.
       
      2) Drag/copy&paste it into your Arma2 Operation Arrowhead folder (where your @dayz and @dayzepoch folder are stored)
       
      3) Launch dayz with the following launch options (set via steam or dayz commander):
      -mo[email protected]_EditorUpdate  
      4) Once you are in the main menus press ALT+E
       
      5) This will open up the editor click the Chernarus map then click ok.
       
      6) A map view will then pop up, on the right hand side you will see a list of categories:
                  - First click 'Centre' then right click on the map, select 'new',  and press ok,
                  - Next click 'Group' then right click on the map, slect 'new'. and press ok,
                  - Now click 'Unit' then right click on the map, select the unit you want - default may be 'Alsatian' the change from 'non playable' to 'playable'.
       
      7) You are now ready to start editing. To begin, enter the '3D View' and click on 'Vehicle' (this is where all the buildings are listed). Right click on the map and select 'new', The list will then appear.
       
      8) Once you have selected an item, the ALT key will allow you to raise or lower items, with the SHIFT key allowing you to spin it around.
       
      9) Once you are happy with the edit, save it (Name it something relative to the edit). Then check your edits, sometimes large items may shift from where you placed them.
       
      10) Locate the mission.sqf file, usually in My Documents > Arma 2 > Missions > "Your mission name"
       
      11) Open up the mission.sqf file, you must now make some small edits to allow it to add these items to your server. Example Below:
      Default mission.sqf code example, areas to edit show indicated.
      ----------------------------------------------------------Remove start Here activateAddons [ ]; Replace with: if (isServer) then { activateAddons []; initAmbientLife; ----------------------------------------------------------Remove End Here _vehicle_4 = objNull; if (true) then { _this = createVehicle ["Land_ruin_corner_2", [14110.31, 2782.1448, 3.8146973e-006], [], 0, "CAN_COLLIDE"]; _vehicle_4 = _this; _this setPos [14110.31, 2782.1448, 3.8146973e-006]; }; ------------------------------------------------------------------------------------------ Remove Start Here _this = createCenter west; _center_0 = _this; _group_0 = createGroup _center_0; _unit_2 = objNull; if (true) then { _this = _group_0 createUnit ["GER_Soldier_EP1", [14116.508, 2764.6309, 4.0054321e-005], [], 0, "CAN_COLLIDE"]; _unit_2 = _this; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; ----------------------------------------------------------------------------------------- Remove End Here _vehicle_192 = objNull; if (true) then { _this = createVehicle ["Land_a_stationhouse", [5160.0171, 2183.0002, 0.14117265], [], 0, "CAN_COLLIDE"]; _vehicle_192 = _this; _this setDir 211.89264; _this setPos [5160.0171, 2183.0002, 0.14117265]; }; ----------------------------------------------------------------------------------------Remove Start Here processInitCommands; runInitScript; Replace with: }; By Mr. Smith e.t.c finishMissionInit; ----------------------------------------------------------------------------------------Remove End Here Edited mission.sqf code example:
      if (isServer) then { _vehicle_4 = objNull; if (true) then { _this = createVehicle ["Land_ruin_corner_2", [14110.31, 2782.1448, 3.8146973e-006], [], 0, "CAN_COLLIDE"]; _vehicle_4 = _this; _this setPos [14110.31, 2782.1448, 3.8146973e-006]; }; _vehicle_192 = objNull; if (true) then { _this = createVehicle ["Land_a_stationhouse", [5160.0171, 2183.0002, 0.14117265], [], 0, "CAN_COLLIDE"]; _vehicle_192 = _this; _this setDir 211.89264; _this setPos [5160.0171, 2183.0002, 0.14117265]; }; }; // By Mr. Smith e.t.c **If the code editing is not done as follows, it will crash your server on start up. Mainly because of the unit spawn (in this example "GER_Soldier_EP1"), follow the instructions for editing the code and it will work fine**
       
      The Custom Content is now ready for publishing! Here is a quick, safe and guaranteed way to get your [working] edits into your server:
       
      1. Unpack your server.pbo
       
      2. Create a folder in the root of the server.pbo called: Maps     3. Drag your mapedit.sqf into this folder.     ***UPDATED PART FOR 1.0.6.2*** 4. In the init folder you will find a file called server_functions.sqf . Find these lines: // Precise base building 1.0.5 call compile preprocessFileLineNumbers Just above it add this line:
      call compile preprocessFileLineNumbers "\z\addons\dayz_server\maps\mapedit.sqf"; so now it looks like this....
      call compile preprocessFileLineNumbers "\z\addons\dayz_server\maps\mapedit.sqf"; // Precise base building 1.0.5 call compile preprocessFileLineNumbers  NOTE**:  Be sure to change the mapedit.sqf to whatever it is you have named your file, and that it corresponds with the execVM in your server_functions.sqf
      ***END UPDATED PART FOR 1.0.6.2)***
       
      EXTRA HINTS AND TIPS:
      Having trouble moving roads and other similar items to where you want them?
       
      Want your buildings spawn straight and level like they do with the new epoch build system?
      _this setDir -415.88132; _this setVehicleInit "this setVectorUp [0,0,1];"; _this setPos [1939.5042, 14563.26, -0.068630017]; Beidi file should look as follows:
      Add the "INIT" line between the "AZIMUT" and "PARENT" lines.
      AZIMUT="-67.231117"; INIT="_this setVehicleInit "this setVectorUp [0,0,1];";"; PARENT=""; - Big thanks to @Wesley for that one!
       
      Want to edit the trader camps / locations (Chernarus Only)?
       
       
      Having trouble with buildings 'double-spawning'? (often creating duplicate doors in a building)
       
       
      Here is a little example of how to remove grass from in/around your buildings:
       
      OK i think that is pretty much it.....
      HAPPY MAP EDITING!!
      -Freak
    • By randall421
      The loot spawning on my server will respawn or cycle right infrnt of you if you move more than 5m away or if someone else near you moves 5ft away. I check player_spawncheck.sqf and it looks fine. 
      player_spawncheck.sqf 
      //player_spawncheck.sqf private ["_isWreck","_maxControlledZombies","_looted","_zombied","_doNothing","_spawnZedRadius","_serverTime","_age","_nearbyBuildings","_position","_speed","_radius","_maxlocalspawned","_maxWeaponHolders","_currentWeaponHolders","_maxtoCreate","_inVehicle","_isAir","_isLand","_isSea","_Controlledzeddivided","_totalcrew","_nearby","_type","_config","_canSpawn","_dis","_checkLoot","_islocal","_bPos","_zombiesNum"]; _age = -1; //_nearbyBuildings = []; _position = [player] call fnc_getPos; _speed = speed (vehicle player); _radius = 200; //150*0.707; Pointless Processing (106.5) _spawnZedRadius = 20; /* //Tick Time PVDZ_getTickTime = player; publicVariableServer "PVDZ_getTickTime"; */ //Total Counts _maxlocalspawned = round(dayz_spawnZombies); _maxControlledZombies = round(dayz_maxLocalZombies); _maxWeaponHolders = round(dayz_maxMaxWeaponHolders); _currentWeaponHolders = round(dayz_currentWeaponHolders); //Limits (Land,Sea,Air) _inVehicle = (vehicle player != player); /* _isAir = vehicle player iskindof "Air"; _isLand = vehicle player iskindof "Land"; _isSea = vehicle player iskindof "Sea"; if (_isLand) then { } else { }; if (_isAir) then { } else { }; if (_isSea) then { } else { }; */ _doNothing = false; if (_inVehicle) then { _Controlledzeddivided = 0; //exit if too fast if (_speed > 25) exitwith {_doNothing = true;}; //Crew can spawn zeds. _totalcrew = count (crew (vehicle player)); if (_totalcrew > 1) then { _Controlledzeddivided = 2; //Dont allow driver to spawn if we have other crew members. if (player == driver (vehicle player)) exitwith {_doNothing = true;}; } else { _Controlledzeddivided = 4; }; if (_Controlledzeddivided > 0) then { _maxControlledZombies = round(_maxControlledZombies / _Controlledzeddivided); r_player_divideinvehicle = _Controlledzeddivided; }; }; if (_doNothing) exitwith {}; /*if ("ItemMap_Debug" in items player) then { deleteMarkerLocal "MaxZeds"; deleteMarkerLocal "Counter"; deleteMarkerLocal "Loot30"; deleteMarkerLocal "Loot120"; deleteMarkerLocal "Agro80"; _markerstr = createMarkerLocal ["MaxZeds", _position]; _markerstr setMarkerColorLocal "ColorYellow"; _markerstr setMarkerShapeLocal "ELLIPSE"; _markerstr setMarkerBrushLocal "Border"; _markerstr setMarkerSizeLocal [_radius, _radius]; _markerstr1 = createMarkerLocal ["Counter", _position]; _markerstr1 setMarkerColorLocal "ColorRed"; _markerstr1 setMarkerShapeLocal "ELLIPSE"; _markerstr1 setMarkerBrushLocal "Border"; _markerstr1 setMarkerSizeLocal [_radius+100, _radius+100]; _markerstr2 = createMarkerLocal ["Agro80", _position]; _markerstr2 setMarkerColorLocal "ColorRed"; _markerstr2 setMarkerShapeLocal "ELLIPSE"; _markerstr2 setMarkerBrushLocal "Border"; _markerstr2 setMarkerSizeLocal [80, 80]; _markerstr2 = createMarkerLocal ["Loot30", _position]; _markerstr2 setMarkerColorLocal "ColorRed"; _markerstr2 setMarkerShapeLocal "ELLIPSE"; _markerstr2 setMarkerBrushLocal "Border"; _markerstr2 setMarkerSizeLocal [30, 30]; _markerstr3 = createMarkerLocal ["Loot120", _position]; _markerstr3 setMarkerColorLocal "ColorBlue"; _markerstr3 setMarkerShapeLocal "ELLIPSE"; _markerstr3 setMarkerBrushLocal "Border"; _markerstr3 setMarkerSizeLocal [120, 120]; diag_log ("LocalZombies: " +str(dayz_spawnZombies) + "/" +str(dayz_maxLocalZombies)); //Logging diag_log (format["%1 Local.Agents: %2/%3, NearBy.Agents: %8/%9, Global.Agents: %6/%7, W.holders: %10/%11, (radius:%4m %5fps).","SpawnCheck", _maxlocalspawned, _maxControlledZombies, _radius, round diag_fpsmin,dayz_currentGlobalZombies, dayz_maxGlobalZeds, dayz_CurrentNearByZombies, dayz_maxNearByZombies, _currentWeaponHolders,_maxWeaponHolders]); };*/ // nearObjects is faster than nearestObjects when sorting by distance isn't needed // "Building" includes House and all of its child classes (Crashsite, IC_Fireplace1, IC_Tent, etc.) _nearby = _position nearObjects ["Building",_radius]; _maxlocalspawned = _maxlocalspawned max floor(_maxControlledZombies*.8); if (_maxlocalspawned > 0) then { _spawnZedRadius = _spawnZedRadius * 3; }; //Spawn Zeds & loot in buildings { _type = typeOf _x; _config = missionConfigFile >> "CfgLoot" >> "Buildings" >> _type; _canSpawn = isClass (_config); if (_canSpawn) then { _dis = _x distance player; _checkLoot = (count (getArray (_config >> "lootPos"))) > 0; _islocal = _x getVariable ["", false]; // object created locally via TownGenerator. //Make sure wrecks always spawn Zeds _isWreck = _x isKindOf "CrashSite"; //Loot if (getNumber(_config >> "lootChance") > 0) then { if (_currentWeaponHolders < _maxWeaponHolders) then { //Basic loot check if ((_dis < 125) and (_dis > 30) and !_inVehicle and _checkLoot) then { _serverTime = serverTime; _looted = (_x getVariable ["looted",_serverTime]); _age = _serverTime - _looted; //Building refresh rate if (_age == 0 or (_age > getNumber(_config >> "lootRefreshTimer"))) then { _x setVariable ["looted",_serverTime,!_islocal]; _x call building_spawnLoot; if (!(_x in dayz_buildingBubbleMonitor)) then { dayz_buildingBubbleMonitor set [count dayz_buildingBubbleMonitor, _x]; }; //diag_log [ diag_tickTime, "new loot at",_x,"age:", _age, "serverTime:", _serverTime]; }/* else { diag_log [ diag_tickTime, "won't spawn loot at",_x,"age:", _age, "serverTime:", _serverTime]; }*/; }; }; }; //Zeds if (getNumber(_config >> "zombieChance") > 0) then { if (_dis > _spawnZedRadius) then { _serverTime = serverTime; _zombied = (_x getVariable ["zombieSpawn",_serverTime]); _age = _serverTime - _zombied; if ((_age == 0) or (_age > 300)) then { if (!_isWreck) then { if ((dayz_spawnZombies < _maxControlledZombies) and (dayz_CurrentNearByZombies < dayz_maxNearByZombies) and (dayz_currentGlobalZombies < dayz_maxGlobalZeds)) then { _bPos = getPosATL _x; _zombiesNum = count (_bPos nearEntities ["zZombie_Base",(((sizeOf _type) * 2) + 10)]); if (_zombiesNum == 0) then { _x setVariable ["zombieSpawn",_serverTime,!_islocal]; if (!(_x in dayz_buildingBubbleMonitor)) then { //add active zed to var dayz_buildingBubbleMonitor set [count dayz_buildingBubbleMonitor, _x]; }; //start spawn [_x] call building_spawnZombies; }; //diag_log (format["%1 building. %2", __FILE__, _x]); }; } else { _bPos = getPosATL _x; _zombiesNum = count (_bPos nearEntities ["zZombie_Base",(((sizeOf _type) * 2) + 30)]); //Should be a wreck if (_zombiesNum == 0) then { [_x,_isWreck] call building_spawnZombies; }; }; }; }; }; }; } forEach _nearby; At first I thought it was a respawn timer issue or something like that but if you don't move the loot will stay, you have to back away from it or someone else has to get within range and its not like you have to run away for this to happen, you can just back up a few steps and watch the loot change right infront of you. I have been playing around with it just trying to see if i can figure it out but if anyone knows what i should do or can at least point me in the right direction it would be a huge help.
       
      Thanks
    • By calinova22
      I was wondering if it is possible to make it so that a players humanity would not change for a certain amount of time? I have a PVP arena with a teleport in and I was wanting to make it so people could TP in and fight without worrying about gaining or losing humanity.
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...