HELP with adding custom buildings to Vilayer Server...

DangerRuss

OpenDayZ Rockstar!
OK, this might be the wrong forum but if someone could give me a hand or link me to a tutorial that still works I'd really appreciate it. I was following this tut

but it seems this is out dated. Basically it tells me to edit the map on the 3d map editor, convert it to a 2d map with a converter, then go into the single player editor and merge my dayz mission with the map mission I edited. Its more directions after that, but I am hitting a road block right here. For one, DayZ doesn't have a single player option in the menu any longer, and if I try to use the Arma single player editor, it can't find my dayz mission to load, so I cant merge it with my new map. So I think Im doing something incorrectly, and also that this tut is too old. Could someone give me a hand here? I have a map saved in 3d and 2d format that I'd really like to put on my server. Thanks!
 
I find it a lot easier to handle 3D map files separately and load them via init.sqf:

Code:
[] execVM "file.sqf";

This way, you don't need to worry about converting or merging anything.
 
Could you please explain more? Im very new at this, which is why I was hoping for a tutorial... or if you could just dumb it down for me? Thanks man
 
In a bit of a rush but I'll hammer out something really quick (and hopefully it makes sense):

-Let's assume your saved 3D file is "mapfile.sqf"
-You can ignore the "mission.biedi" file

-"init.sqf"; at the very bottom of the file, add the following:
Code:
[] execVM "mapfile.sqf";

note: this is assuming "mapfile.sqf" will be in the root location (where init.sqf and description.ext are) - you can copy the file to another sub-folder but need to update init.sqf accordingly

e.g.
Code:
[] execVM "sub-folder\mapfile.sqf";

-Package "mapfile.sqf" and "init.sqf" into your mission PBO file and upload to server (certain hosts simply need you to copy files into the proper file folder, with no need to package/upload)

-Which method you use really depends on who your host is
-Restart your server, and the map additions should be loaded in.
 
so lets say I go into my root missions folder, into my chernarus folder, at the bottom where Im executing all of my other addons, I add that line? I think Ive got it.. will give it a shot later and let you know thanks!
 
ok so Vilayer has a folder called Vilayercodecustom and in it all of your root mission stuff is unpacked. Normally you just drop the mods or addons .sqf file into there, and then change the init.sqf and add that code.. well I did that, made sure the names were correct, and server is hanging up. Any ideas?
Do I need to do anything with my missions.sqm file?
 
heres the mission.sqf I was attempting to load, don't know if this helps you see what Im doing wrong

Code:
activateAddons [
];
 
activateAddons [];
initAmbientLife;
 
_vehicle_3 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [12355.14, 12546.253, 0.05885265], [], 0, "CAN_COLLIDE"];
  _vehicle_3 = _this;
  _this setDir 111.15591;
  _this setPos [12355.14, 12546.253, 0.05885265];
};
 
_this = createCenter civilian;
_center_1 = _this;
 
_group_0 = createGroup _center_1;
 
_vehicle_4 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [12340.315, 12551.988, -0.062053632], [], 0, "CAN_COLLIDE"];
  _vehicle_4 = _this;
  _this setDir 110.83466;
  _this setPos [12340.315, 12551.988, -0.062053632];
};
 
_vehicle_5 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [12319.795, 12558.629, 0.046107039], [], 0, "CAN_COLLIDE"];
  _vehicle_5 = _this;
  _this setDir 110.11853;
  _this setPos [12319.795, 12558.629, 0.046107039];
};
 
_vehicle_6 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [12303.261, 12563.842], [], 0, "CAN_COLLIDE"];
  _vehicle_6 = _this;
  _this setDir 111.40623;
  _this setPos [12303.261, 12563.842];
};
 
_vehicle_7 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [12288.045, 12568.747, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_7 = _this;
  _this setDir 110.84273;
  _this setPos [12288.045, 12568.747, -1.5258789e-005];
};
 
_vehicle_11 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [12123.832, 12626.927, 0], [], 0, "CAN_COLLIDE"];
  _vehicle_11 = _this;
  _this setPos [12123.832, 12626.927, 0];
};
 
_vehicle_12 = objNull;
if (true) then
{
  _this = createVehicle ["HeliHCivil", [12101.301, 12634.124, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_12 = _this;
  _this setPos [12101.301, 12634.124, -3.0517578e-005];
};
 
_vehicle_39 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [6765.9692, 2759.9988, 3.8146973e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_39 = _this;
  _this setDir 135.24965;
  _this setPos [6765.9692, 2759.9988, 3.8146973e-006];
};
 
_vehicle_40 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak2", [4901.0898, 2251.2954, 2.9087067e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_40 = _this;
  _this setDir 37.117779;
  _this setPos [4901.0898, 2251.2954, 2.9087067e-005];
};
 
_vehicle_41 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak2", [4877.1909, 2268.6086, 2.3841858e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_41 = _this;
  _this setDir 35.647209;
  _this setPos [4877.1909, 2268.6086, 2.3841858e-006];
};
 
_vehicle_42 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak2", [4855.04, 2284.0854, -9.059906e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_42 = _this;
  _this setDir 35.468719;
  _this setPos [4855.04, 2284.0854, -9.059906e-006];
};
 
_vehicle_43 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak", [4854.9604, 2245.5212, 3.528595e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_43 = _this;
  _this setDir 34.501007;
  _this setPos [4854.9604, 2245.5212, 3.528595e-005];
};
 
_vehicle_44 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_GeneralStore_01", [4801.9917, 2322.0039, 1.4305115e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_44 = _this;
  _this setDir 30.147303;
  _this setPos [4801.9917, 2322.0039, 1.4305115e-005];
};
 
_vehicle_45 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_Office01", [1563.536, 2221.0032, -0.078685731], [], 0, "CAN_COLLIDE"];
  _vehicle_45 = _this;
  _this setDir 567.07953;
  _this setPos [1563.536, 2221.0032, -0.078685731];
};
 
_vehicle_46 = objNull;
if (true) then
{
  _this = createVehicle ["Land_a_stationhouse", [1679.8545, 2234.0767, 0.51845717], [], 0, "CAN_COLLIDE"];
  _vehicle_46 = _this;
  _this setDir 381.99655;
  _this setPos [1679.8545, 2234.0767, 0.51845717];
};
 
_vehicle_47 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_Pub_01", [1686.0399, 2192.3892, 0.12152801], [], 0, "CAN_COLLIDE"];
  _vehicle_47 = _this;
  _this setDir 240.98827;
  _this setPos [1686.0399, 2192.3892, 0.12152801];
};
 
_vehicle_48 = objNull;
if (true) then
{
  _this = createVehicle ["Land_A_Hospital", [1720.1257, 2349.9827, 1.4305115e-006], [], 0, "CAN_COLLIDE"];
  _vehicle_48 = _this;
  _this setDir 16.650627;
  _this setPos [1720.1257, 2349.9827, 1.4305115e-006];
};
 
_vehicle_49 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4731.9028, 10715.334, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_49 = _this;
  _this setDir 57.497662;
  _this setPos [4731.9028, 10715.334, 6.1035156e-005];
};
 
_vehicle_50 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4713.3804, 10704.202, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_50 = _this;
  _this setDir 56.22591;
  _this setPos [4713.3804, 10704.202, -3.0517578e-005];
};
 
_vehicle_51 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4669.5967, 10686.47, -9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_51 = _this;
  _this setDir 237.13687;
  _this setPos [4669.5967, 10686.47, -9.1552734e-005];
};
 
_vehicle_52 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4684.9946, 10695.994], [], 0, "CAN_COLLIDE"];
  _vehicle_52 = _this;
  _this setDir -124.8111;
  _this setPos [4684.9946, 10695.994];
};
 
_vehicle_53 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4638.8979, 10737.461, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_53 = _this;
  _this setDir 142.35052;
  _this setPos [4638.8979, 10737.461, 3.0517578e-005];
};
 
_vehicle_54 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4647.645, 10722.749, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_54 = _this;
  _this setDir 144.2834;
  _this setPos [4647.645, 10722.749, 3.0517578e-005];
};
 
_vehicle_56 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4688.4976, 10738.742], [], 0, "CAN_COLLIDE"];
  _vehicle_56 = _this;
  _this setDir 55.158688;
  _this setPos [4688.4976, 10738.742];
};
 
_vehicle_57 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4710.5449, 10750.961], [], 0, "CAN_COLLIDE"];
  _vehicle_57 = _this;
  _this setDir 58.412071;
  _this setPos [4710.5449, 10750.961];
};
 
_unit_5 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["Villager1", [12254.014, 9758.7549, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _unit_5 = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
};
 
_vehicle_61 = objNull;
if (true) then
{
  _this = createVehicle ["Land_pumpa", [4697.6436, 10745.424, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_61 = _this;
  _this setPos [4697.6436, 10745.424, 3.0517578e-005];
};
 
_vehicle_62 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak2", [13377.186, 4935.1772, -4.6730042e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_62 = _this;
  _this setDir -98.879333;
  _this setPos [13377.186, 4935.1772, -4.6730042e-005];
};
 
_vehicle_63 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak2", [13367.693, 4993.4521, -1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_63 = _this;
  _this setDir -100.34745;
  _this setPos [13367.693, 4993.4521, -1.1444092e-005];
};
 
_vehicle_64 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Panelak2", [13436.971, 5215.8633, -3.0040741e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_64 = _this;
  _this setDir 89.658951;
  _this setPos [13436.971, 5215.8633, -3.0040741e-005];
};
 
_vehicle_65 = objNull;
 
Back
Top