FallingSheep
OpenDayZ Lord!
HOW TO ADD MORE BUILDINGS TO BASE BUILDING 1.2
-------------------------------------------------------------------------
Assumes you have Base building already working(see link below)
http://opendayz.net/threads/base-building-dayz-1-2-released.8579/
STEP 1
-------------------------------------------------------------------------
open MPmissions\Dayz.Chernarus\dayz_code\external\dy_work\Build_List.sqf
find this line
copy this line and change "Fence_Ind" to the class name of the building/object you want EG: "Land_ladderEP1"
IMPORTANT: EACH item must have a different recipe or they wont work!
set the required building materials by changing the numbers at the start
[TankTrap, SandBags, Wires, Logs, Scrap Metal, Grenades
[0, 0, 1, 0, 0, 0]
EG: 2 tanktraps and 2 logs [2, 0, 0, 2, 0, 0]
now set any other options using the true/false section
below is a example setup and what each option means
(not all options work as far as i can tell needs more work)
_toolBox, _eTool, _medWait, _longWait, _inBuilding, _roadAllowed, _inTown, _removable, _isStructure, _isSimulated, _isDestructable];
true, true, true, false, false, true, true, false, false, true, false
must have toolbox
must have entrenching tool
medium wait time
no long wait time (only use one wait time)
cant be built in buildings
cant be built on roads
cant be built in towns (this requires additional setup just)
cant be removed
is not a structure
is simulated (not sure what this does)
is not destructible
STEP 2
-------------------------------------------------------------------------
now open @day_server\dayz_server\init\server_functions.sqf
find this line
copy this line and change change "Fence_Ind" to the class name same name you used in step 1 EG: "Land_ladderEP1"
set the required building materials to same as you used in step 1
now set any other options usnig the true/false section to same as you used in step 1
STEP 3
-------------------------------------------------------------------------
now to add the new building/object image to the recipe list
open MPmissions\Dayz.Chernarus\dayz_code\buildRecipeBook\images\buildable
and paste in your image for you new building/object
IT MUST BE 256x256 AND JPG
STEP 4
-------------------------------------------------------------------------
now you have to add the building/object to the Data Base
open your Data Base using your DB editor (eg Navicat)
open the table Deployable and add a record using the class name of the building/object you used above in step 1 EG: "Land_ladderEP1"
STEP 5 ( IF BUILDINGS DISAPPEAR AFTER BEING BUILT )
-------------------------------------------------------------------------
open dayz_server\compile\server_publishObject.sqf
find this line
if (!(_object isKindOf "Building")) exitWith {
deleteVehicle _object;
};
and change it to this
//if (!(_object isKindOf "Building")) exitWith {
// deleteVehicle _object;
//};
If your items are disappearing after server restart, find your variables.sqf
There is an array 'SafeObjects = ["blah","blah"]; Add the names of your objects to this array, save and compile. Your items should now not disappear!
STEP 6
-------------------------------------------------------------------------
pack up your PBOs and enjoy your new buildings
CREDIT TO Bejasc3D FOR MISSING BUILDINGS FIX
THANKS TO daimyo21 FOR MAKING BASE BUILDING 1.2
-------------------------------------------------------------------------
Assumes you have Base building already working(see link below)
http://opendayz.net/threads/base-building-dayz-1-2-released.8579/
STEP 1
-------------------------------------------------------------------------
open MPmissions\Dayz.Chernarus\dayz_code\external\dy_work\Build_List.sqf
find this line
Code:
[[0, 0, 1, 0, 0, 0], "Fence_Ind", [[0,4,.7], [0,2,0], 0, true, false, false, false, false, false, true, true, false, true, true]] //Fence_Ind --34 *** Remember that the last element in array does not get comma ***
copy this line and change "Fence_Ind" to the class name of the building/object you want EG: "Land_ladderEP1"
*** Remember that the last element in array does not get comma ***
IMPORTANT: EACH item must have a different recipe or they wont work!
set the required building materials by changing the numbers at the start
[TankTrap, SandBags, Wires, Logs, Scrap Metal, Grenades
[0, 0, 1, 0, 0, 0]
EG: 2 tanktraps and 2 logs [2, 0, 0, 2, 0, 0]
now set any other options using the true/false section
below is a example setup and what each option means
(not all options work as far as i can tell needs more work)
_toolBox, _eTool, _medWait, _longWait, _inBuilding, _roadAllowed, _inTown, _removable, _isStructure, _isSimulated, _isDestructable];
true, true, true, false, false, true, true, false, false, true, false
must have toolbox
must have entrenching tool
medium wait time
no long wait time (only use one wait time)
cant be built in buildings
cant be built on roads
cant be built in towns (this requires additional setup just)
cant be removed
is not a structure
is simulated (not sure what this does)
is not destructible
STEP 2
-------------------------------------------------------------------------
now open @day_server\dayz_server\init\server_functions.sqf
find this line
Code:
[[0, 0, 1, 0, 0, 0], "Fence_Ind", [[0,4,.7], [0,2,0], 0, true, false, false, false, false, false, true, true, false, true, true]] //Fence_Ind --34 *** Remember that the last element in array does not get comma ***
copy this line and change change "Fence_Ind" to the class name same name you used in step 1 EG: "Land_ladderEP1"
set the required building materials to same as you used in step 1
now set any other options usnig the true/false section to same as you used in step 1
STEP 3
-------------------------------------------------------------------------
now to add the new building/object image to the recipe list
open MPmissions\Dayz.Chernarus\dayz_code\buildRecipeBook\images\buildable
and paste in your image for you new building/object
IT MUST BE 256x256 AND JPG
STEP 4
-------------------------------------------------------------------------
now you have to add the building/object to the Data Base
open your Data Base using your DB editor (eg Navicat)
open the table Deployable and add a record using the class name of the building/object you used above in step 1 EG: "Land_ladderEP1"
STEP 5 ( IF BUILDINGS DISAPPEAR AFTER BEING BUILT )
-------------------------------------------------------------------------
open dayz_server\compile\server_publishObject.sqf
find this line
if (!(_object isKindOf "Building")) exitWith {
deleteVehicle _object;
};
and change it to this
//if (!(_object isKindOf "Building")) exitWith {
// deleteVehicle _object;
//};
If your items are disappearing after server restart, find your variables.sqf
There is an array 'SafeObjects = ["blah","blah"]; Add the names of your objects to this array, save and compile. Your items should now not disappear!
STEP 6
-------------------------------------------------------------------------
pack up your PBOs and enjoy your new buildings
CREDIT TO Bejasc3D FOR MISSING BUILDINGS FIX
THANKS TO daimyo21 FOR MAKING BASE BUILDING 1.2