BetterDeadThanZed
Valued Member!
On my Epoch servers, I've used this to create a full 24 hour day/night cycle in 4 hours: http://epochmod.com/forum/index.php?/topic/16067-joelmas-time-control/
However, this doesn't work with Dayz 1.8.5. The problem I see is that the code that you are supposed to add to server_functions.sqf so the accelerated time works is trying to call another snippet of code that doesn't exist in the Dayz 1.8.5 server_function.sqf.
The code is trying to call this section of code:
So, I was wondering if I could just add that to the server_functions.sqf of Dayz 1.8.5 and if so, where I should put it so the other code that gets inserted for the accelerated time will properly call it.
However, this doesn't work with Dayz 1.8.5. The problem I see is that the code that you are supposed to add to server_functions.sqf so the accelerated time works is trying to call another snippet of code that doesn't exist in the Dayz 1.8.5 server_function.sqf.
The code is trying to call this section of code:
Code:
server_timeSync = {
//Send request
private ["_hour","_minute","_date","_key","_result","_outcome"];
_key = "CHILD:307:";
_result = _key call server_hiveReadWrite;
_outcome = _result select 0;
if(_outcome == "PASS") then {
_date = _result select 1;
if(dayz_fullMoonNights) then {
_hour = _date select 3;
_minute = _date select 4;
//Force full moon nights
_date = [2013,8,3,_hour,_minute];
};
setDate _date;
PVDZE_plr_SetDate = _date;
publicVariable "PVDZE_plr_SetDate";
diag_log ("TIME SYNC: Local Time set to " + str(_date));
};
};
So, I was wondering if I could just add that to the server_functions.sqf of Dayz 1.8.5 and if so, where I should put it so the other code that gets inserted for the accelerated time will properly call it.