I got the smelting working with W4rGo's scripts
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
ok daimyo I fixed the server functions, but I cant get the build menu to pop up I have buildables and im running crawling nothing pops up, heres my server.pbo.
if (!(_object isKindOf "Building")) exitWith {
deleteVehicle _object;
};
TO:
//if (!(_object isKindOf "Building")) exitWith {
//deleteVehicle _object;
//};
this is prolly your answer!got this working and loveing it only one thing when we build a pannel it goes bye bye it pops up saying it was built but know one can see it.
Keypad disappears on creation probably due to the "dayz_server\compile\server_publishObject.sqf"
Inside the server_publishObject.sqf comment out this section:
from
Code:if (!(_object isKindOf "Building")) exitWith { deleteVehicle _object; };
to
Code://if (!(_object isKindOf "Building")) exitWith { // deleteVehicle _object; //};
13:16:54 "OBJ: 723407240338252 - Fence_Ind"
13:16:54 "SERVER: in allbuildables_class:Fence_Ind !"
13:16:54 Error in expression <ct _i - _i + 2;
};
};
_isDestructable = _requirements select 13;
diag_log ("SERV>
13:16:54 Error position: <_requirements select 13;
diag_log ("SERV>
13:16:54 Error Undefined variable in expression: _requirements
13:16:54 File z\addons\dayz_server\system\server_monitor.sqf, line 131
13:16:54 "OBJ: 72425723793777 - Fence_Ind"
13:16:54 "SERVER: in allbuildables_class:Fence_Ind !"
13:16:54 Error in expression <ct _i - _i + 2;
};
};
_isDestructable = _requirements select 13;
diag_log ("SERV>
13:16:54 Error position: <_requirements select 13;
diag_log ("SERV>
13:16:54 Error Undefined variable in expression: _requirements
13:16:54 File z\addons\dayz_server\system\server_monitor.sqf, line 131
// Set whether or not buildable is destructable
if (typeOf(_object) in allbuildables_class) then {
diag_log ("SERVER: in allbuildables_class:" + typeOf(_object) + " !");
for "_i" from 0 to ((count allbuildables) - 1) do
{
_classname = (allbuildables select _i) select _i - _i + 1;
_result = [_classname,typeOf(_object)] call BIS_fnc_areEqual;
if (_result) then {
_requirements = (allbuildables select _i) select _i - _i + 2;
};
};
_isDestructable = _requirements select 13;
diag_log ("SERVER: " + typeOf(_object) + " _isDestructable = " + str(_isDestructable));
its in there perfectly and it still wont work.
What server build are you using? Have you followed the updated tutorial? Look through it again, ive addressed this issue:i have this installed on day.st server....chernarus...building works great ...so far..unable to save to database and somehow when we build a normal tent it dissapears as its being made...any ideas?
I got it working ok but I have 2 problems I cannot find a solution too. I am running a DayZ.ST server.
1. the codes I get given when placing an item never work, they seem too long and not all characters fit into the keypad.
2. after a server restart everything is deleted
Any idea's please?
I get an error in the .rpt log at at server start:
Code:13:16:54 "OBJ: 723407240338252 - Fence_Ind" 13:16:54 "SERVER: in allbuildables_class:Fence_Ind !" 13:16:54 Error in expression <ct _i - _i + 2; }; }; _isDestructable = _requirements select 13; diag_log ("SERV> 13:16:54 Error position: <_requirements select 13; diag_log ("SERV> 13:16:54 Error Undefined variable in expression: _requirements 13:16:54 File z\addons\dayz_server\system\server_monitor.sqf, line 131 13:16:54 "OBJ: 72425723793777 - Fence_Ind" 13:16:54 "SERVER: in allbuildables_class:Fence_Ind !" 13:16:54 Error in expression <ct _i - _i + 2; }; }; _isDestructable = _requirements select 13; diag_log ("SERV> 13:16:54 Error position: <_requirements select 13; diag_log ("SERV> 13:16:54 Error Undefined variable in expression: _requirements 13:16:54 File z\addons\dayz_server\system\server_monitor.sqf, line 131
(only tested with deploying 2 fence pieces)
Snippet from my server_monitor.sqf:
Code:// Set whether or not buildable is destructable if (typeOf(_object) in allbuildables_class) then { diag_log ("SERVER: in allbuildables_class:" + typeOf(_object) + " !"); for "_i" from 0 to ((count allbuildables) - 1) do { _classname = (allbuildables select _i) select _i - _i + 1; _result = [_classname,typeOf(_object)] call BIS_fnc_areEqual; if (_result) then { _requirements = (allbuildables select _i) select _i - _i + 2; }; }; _isDestructable = _requirements select 13; diag_log ("SERVER: " + typeOf(_object) + " _isDestructable = " + str(_isDestructable));
Not sure what I have done wrong. Any ideas?
// Set whether or not buildable is destructable
if (typeOf(_object) in allbuildables_class) then {
diag_log ("SERVER: in allbuildables_class:" + typeOf(_object) + " !");
for "_i" from 0 to ((count allbuildables) - 1) do
{
_classname = (allbuildables select _i) select _i - _i + 1;
_result = [_classname,typeOf(_object)] call BIS_fnc_areEqual;
if (_result) then {
_requirements = (allbuildables select _i) select _i - _i + 2;
};
};
_isDestructable = _requirements select 13;
diag_log ("SERVER: " + typeOf(_object) + " _isDestructable = " + str(_isDestructable));
if (!_isDestructable) then {
diag_log("Spawned: " + typeOf(_object) + " Handle Damage False");
_object addEventHandler ["HandleDamage", {false}];
};
//gateKeypad = _object addaction ["Defuse", "\z\addons\dayz_server\compile\enterCode.sqf"];
};
// Set whether or not buildable is destructable
if (typeOf(_object) in allbuildables_class) then {
diag_log ("SERVER: in allbuildables_class:" + typeOf(_object) + " !");
for "_i" from 0 to ((count allbuildables) - 1) do
{
_classname = (allbuildables select _i) select _i - _i + 1;
_result = [_classname,typeOf(_object)] call BIS_fnc_areEqual;
if (_result) then {
_requirements = (allbuildables select _i) select _i - _i + 2;
_isDestructable = _requirements select 13;
diag_log ("SERVER: " + typeOf(_object) + " _isDestructable = " + str(_isDestructable));
if (!_isDestructable) then {
diag_log("Spawned: " + typeOf(_object) + " Handle Damage False");
_object addEventHandler ["HandleDamage", {false}];
};
};
};
//gateKeypad = _object addaction ["Defuse", "\z\addons\dayz_server\compile\enterCode.sqf"];
};
23:35:33 "OBJ: 723407240338252 - Fence_Ind"
23:35:33 "SERVER: in allbuildables_class:Fence_Ind !"
23:35:33 "SERVER: Fence_Ind _isDestructable = true"
23:35:33 "OBJ: 72425723793777 - Fence_Ind"
23:35:33 "SERVER: in allbuildables_class:Fence_Ind !"
23:35:33 "SERVER: Fence_Ind _isDestructable = true"