EDIT: Got it done, somehow DayZ.st changed the default server.pbo. I just changed the new one and its working now =)
Thanks for the help
Haha, glad it turned out to be something easy.
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.
EDIT: Got it done, somehow DayZ.st changed the default server.pbo. I just changed the new one and its working now =)
Thanks for the help
_isPole = (_classname == "Plastic_Pole_EP1_DZ");
_distance = 30;
if(_isPole) then {
_distance = 200;
};
// check for near plot
_findNearestPoles = nearestObjects [(vehicle player), ["Plastic_Pole_EP1_DZ"], _distance];
_findNearestPole = [];
{if (alive _x) then {_findNearestPole set [(count _findNearestPole),_x];};} foreach _findNearestPoles;
_IsNearPlot = count (_findNearestPole);
// If item is plot pole and another one exists within 200m
if(_isPole and _IsNearPlot > 0) exitWith { TradeInprogress = false; cutText ["Cannot build plot pole within 200m of an existing plot." , "PLAIN DOWN"]; };
if(_IsNearPlot == 0) then {
// Allow building of plot
if(_isPole) then {
_canBuildOnPlot = true;
};
} else {
// Since there are plots nearby we check for ownership and then for friend status
_nearestPole = _findNearestPole select 0;
// Find owner
_ownerID = _nearestPole getVariable["CharacterID","0"];
// diag_log format["DEBUG BUILDING: %1 = %2", dayz_characterID, _ownerID];
// check if friendly to owner
if(dayz_playerUID == _ownerID) then {
// owner can build anything within his plot except other plots
if(!_isPole) then {
_canBuildOnPlot = true;
};
} else {
// disallow building plot
if(!_isPole) then {
_friendlies = player getVariable ["friendlyTo",[]];
// check if friendly to owner
if(_ownerID in _friendlies) then {
_canBuildOnPlot = true;
};
};
};
};
// _message
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText ["Building requires plot pole within 30m." , "PLAIN DOWN"]; };
Sry for the late answerHere is my server functions.
http://pastebin.com/sUVB5RMz
*it is going to be something simple isn't it...
Sry for the late answer
Everything on the server_functions seems to be right. Who is Hosting your Server? What Version are you using exactly and Pastbin the other files you changed in the server.pbo
Ok I am at a loss. I just did a clean restart and followed all your instructions rosska, and now when I try to log on to my server it get through the lobby screen and then it just sits there and stays on the loading screen right before it does the server authentication. I have tried installing it multiple times all with different errors but this last time I followed the instructions word for word.
Hi there !
I have an issue with BB1.2 and epoch 1.0.2.3. In fact two...
1 - My items are not saved in the DB : I can make them and just when they are complete, they disapears...
2 - It is requiring plot pole and it is quite disapointing as the plot pole as not the same function in epoch 1.0.2.3 than in previous version (it was mandatory to build, now it is only saving the builds)...
Code:_isPole = (_classname == "Plastic_Pole_EP1_DZ"); _distance = 30; if(_isPole) then { _distance = 200; }; // check for near plot _findNearestPoles = nearestObjects [(vehicle player), ["Plastic_Pole_EP1_DZ"], _distance]; _findNearestPole = []; {if (alive _x) then {_findNearestPole set [(count _findNearestPole),_x];};} foreach _findNearestPoles; _IsNearPlot = count (_findNearestPole); // If item is plot pole and another one exists within 200m if(_isPole and _IsNearPlot > 0) exitWith { TradeInprogress = false; cutText ["Cannot build plot pole within 200m of an existing plot." , "PLAIN DOWN"]; }; if(_IsNearPlot == 0) then { // Allow building of plot if(_isPole) then { _canBuildOnPlot = true; }; } else { // Since there are plots nearby we check for ownership and then for friend status _nearestPole = _findNearestPole select 0; // Find owner _ownerID = _nearestPole getVariable["CharacterID","0"]; // diag_log format["DEBUG BUILDING: %1 = %2", dayz_characterID, _ownerID]; // check if friendly to owner if(dayz_playerUID == _ownerID) then { // owner can build anything within his plot except other plots if(!_isPole) then { _canBuildOnPlot = true; }; } else { // disallow building plot if(!_isPole) then { _friendlies = player getVariable ["friendlyTo",[]]; // check if friendly to owner if(_ownerID in _friendlies) then { _canBuildOnPlot = true; }; }; }; }; // _message if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText ["Building requires plot pole within 30m." , "PLAIN DOWN"]; };
Do someone have a working version ?
Many thanks !
seaweeduk: good idea ^^
Now i have noticed a big problem on my server. For some reason the vehicles do not get updated in the DB
EDIT: server_updateobject.sqf
Somehow its not only the vehicles its everything now (Tents, Vehicles, etc.) I tried to do it like i did before but sadly no result
Someone could help me ?
Not sure how but your file has quite a few errors in it. It's missing a lot of quotes, has an extra { or two and a couple of lines that I'm not even sure what they are there for. Here's a copy of mine, you can either use it to compare and try to fix yours, or if those extra lines in yours aren't actually used by a script then just replace yours with mine (it already has the Sarge exception that yours has, but without the extra { on the end).
Link
THANK YOU! With your file the database is now updating. I will watch this if its working now as it should, but as far as i can see it does. Thank you so much!
THANK YOU! With your file the database is now updating. I will watch this if its working now as it should, but as far as i can see it does. Thank you so much!
if (!_parachuteWest) then {
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
{
_object_position = getPosATL _object;
diag_log format ["DEBUG: Deleting object %1 with invalid ID at [%2,%3,%4]",
typeOf _object,
_object_position select 0,
_object_position select 1,
_object_position select 2];
_isNotOk = true;
};
};
if (!_parachuteWest) then {
if ((typeOf _object) in SafeObjects) then {
} else {
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
{
_object_position = getPosATL _object;
diag_log format ["DEBUG: Deleting object %1 with invalid ID at [%2,%3,%4]",
typeOf _object,
_object_position select 0,
_object_position select 1,
_object_position select 2];
_isNotOk = true;
};
};
};
my rpt log has 25000+ lines. Do you want me to pastebin it or just look for something specific? Pastebin only allows 500kb, it is 2.17mb.
Exe timestamp: 2013/06/09 08:48:55
Current time: 2013/10/09 00:31:40