Jump to content

Search the Community

Showing results for tags 'time'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements
  • DayZ
    • Discussion
    • Public Servers
    • DayZ SA Resources
    • Q&A Section
  • ArmA 3
    • Epoch Survival
    • Community Projects
    • Q&A Section
    • Terrain Discussion
    • Resources
  • Arma 3 Resources
  • ArmA 2
    • General Discussion.
    • Q&A Section
    • Resources
    • Legacy Resources
    • A2: Community Projects
    • A2 Community Servers
  • Space Engineers
    • General Discussion.
    • Public Servers
  • Other Games
    • Discussion
  • Off Topic
    • Off Topic

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 11 results

  1. Thug

    HiveExt file

    In the HiveExt.ini if I wanted to set the time to say 1415, would you set it as 1415, 14:15 or does it have to be on the hour? [Time] ;Possible values: Local, Custom, Static ;You cannot use Static on OFFICIAL Hive, it will just revert to Local Type = Static ;If using Custom type, offset from UTC in hours (can be negative as well) Offset = -4 ;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to Hour = 14
  2. If you like my work, please consider a donation: $USD $EURO *** UPDATED THE FILE TIME_CONTROL.SQF IN 2014-10-09 13:00 *** *** TIME_CONTROL.SQF WAS CHANGED, THE CHANGED PARTE HAVE *** *** THE COMMENT "//LAST CHANGE WAS IN THIS SPAWN" *** JOELMA'S TIME CONTROL SYSTEMA Default configuration: A day of 2 hours. - 60 minutes completely day time (08:00 - 16:00) - 36 minutes of sunrise and sunfall (04:00 - 08:00, 16:00 - 20:00) - 24 minutes of night (00:00 - 04:00, 20:00 - 24:00) CLIENT SIDE: TIME_CONTROL.SQF In your mission folder, create the folder custom if it does not exist. Create inside the custom folder a txt file called time_control.sqf. Put inside time_control.sqf the content bellow: donn_sleep = 0.2; donn_multi = 2; drn_fnc_DynamicWeather_SetWeatherLocal = {}; 0 setOvercast 0; 0 setFog 0.05; if (!isDedicated) then { "cad_pvar_server_date" addPublicVariableEventHandler {(_this select 1) call donn_setdate;}; donn_setdate = { private ["_dateSer","_dateCli","_date_diff"]; donn_speed = _this select 1; 0 setOvercast 0; _dateSer = dateToNumber (_this select 0); _dateCli = dateToNumber date; _date_diff = (_dateSer-_dateCli)*12*31*24; if (abs _date_diff > 5/60) then {setDate (_this select 0);}; }; }; [] spawn { //LAST CHANGE WAS IN THIS SPAWN private ["_tm","_tmLen"]; _tm = diag_tickTime; waitUntil {!isNil "donn_speed"}; while {true} do { sleep donn_sleep; _tmLen = diag_TickTime - _tm; _tm = _tm + _tmLen; skipTime ((_tmLen*(donn_speed*donn_multi-1))/3600); }; }; if (!isDedicated) then { [] spawn { for "_x" from 1 to 10 do { "infiSTAR_SetDate" addPublicVariableEventHandler {}; "PVDZE_plr_SetDate" addPublicVariableEventHandler {}; cad_pvar_send_owner = player; publicVariableServer "cad_pvar_send_owner"; sleep 0.5; }; }; };CLIENT SIDE: INIT.SQF Step 1 On your mission folder, open the file init.sqf. Inside it change this: //Start Dynamic Weather execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; To this: //Start Dynamic Weather //execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf"; Step 2At the end of your init.sqf file, add this line: call compile preprocessFileLineNumbers "custom\time_control.sqf";SERVER SIDE: SERVER_FUNCTIONS.SQF Now we need to modify files inside dayz_server.pbo. At the end of the file init\server_functions.sqf add this code: initialSend = false; donn_server_timeSync = server_timeSync; server_timeSync = {if (!initialSend) then {[] call donn_server_timeSync;}; initialSend = true;}; [] spawn { waitUntil {initialSend}; while {true} do { _dayTime = dayTime; //========================TIME FUNCTION============================ if (_dayTime >= 8 && _dayTime <= 16) then {donn_speed = 4.000;}; if (_dayTime > 4 && _dayTime < 8) then {donn_speed = 6.666;}; if (_dayTime > 16 && _dayTime < 20) then {donn_speed = 6.666;}; if (_dayTime <= 4 || _dayTime >= 20) then {donn_speed = 10.000;}; //================================================================= cad_pvar_server_date = [date, donn_speed]; publicVariable "cad_pvar_server_date"; sleep 30; }; }; "cad_pvar_send_owner" addPublicVariableEventHandler { cad_pvar_server_date = [date, donn_speed]; owner (_this select 1) publicVariableClient "cad_pvar_server_date"; };BATTLEYE FILTER: On the BattlEye filter publicvariable.txt search for the line that start with 5 "" and add at the end of it an empty space and than !"cad_pvar_s". My line is like that after the adition: EXTRA: To have a 3 hours day, change the line "donn_multi = 2;" in time_control.sqf: donn_multi = 1; -> 4 hours day donn_multi = 4/3; -> 3 hours day donn_multi = 2; -> 2 hours day
  3. Hello guys, currently I'm working on couple addons for my server and from time to time, when coding, some answers to your questions pops up in my head. Couple days ago I was asked about server restart time and uptime. Well, why not to share it - BUT... nothing bad about current solution you're probably using! In fact, the code for this is everywhere - that's right. I did it my way not because I couldn't use common code - but just because I'm still learning a lot - and because I needed restart time/uptime solution for my files. So here is it... if you want to try, test it and let me know. The true is, I haven't time to test it properly. So I'm gonna be happy to hear your thoughts... === Big thanks always goes to: DayZ Epoch developers, collaborators and contributors (thank you guys for your excellent work!) === Changelog: [2017-06-04], v1.0 | Initial release === Read "Goodbye". Wish you the best guys! === How it looks like: // =========================================================================== // FUNCTIONS LIBRARY >> Universal server timer function // =========================================================================== // @Function name: fnc_IBEN_uniSTime // =========================================================================== // @Remarks: // - Can be called 2 ways: // * Restart/Uptime with label // * Restart/Uptime without label // @Parameters: // - Time for restart cycle in seconds | number // - Time mode (values: "restart"/"uptime") | string // - Label (example: "Restart in") | string // @Related files: // - none // @Example: // - For server time we are using global var: SERV_RESTART = 10800; (3h) // - restart time with no label // * [SERV_RESTART,"restart"] call fnc_IBEN_uniSTime; // - restart time with label // * [SERV_RESTART,["restart","Restart in"]] call fnc_IBEN_uniSTime; // - uptime with no label // * [SERV_RESTART,"uptime"] call fnc_IBEN_uniSTime; // - uptime with label // * [SERV_RESTART,["uptime","Time from start"]] call fnc_IBEN_uniSTime; // @Returns: // - time string in format: "h:mm", or "Restart in: h:mm" // =========================================================================== private ["_serverCycle","_timerParams","_timerType","_label","_useLabel","_minArr", "_srvTime","_goTime","_leftTime","_opTime","_hours","_y","_minutes","_key","_sub", "_notLabel","_useLabel"]; _label = ""; // label reset _useLabel = false; _serverCycle = _this select 0; _timerParams = _this select 1; if (typeName _timerParams != "ARRAY") then { _timerType = _timerParams; _useLabel = false; } else { _timerType = _timerParams select 0; _label = _timerParams select 1; _useLabel = true; }; _minArr = [1,2,3,4,5,6,7,8,9,0]; _srvTime = "0h 00min"; // @info: default time _goTime = 0; _goTime = serverTime; _leftTime = (round (_serverCycle - _goTime)); _opTime = [_goTime,_leftTime] select (_timerType == "restart"); if (_leftTime > 0) then { _hours = (floor ((_opTime / 60) / 60)); _minutes = (floor ((_opTime / 60) - (_hours * 60))); _key = _minutes; { _sub = _minArr select _x; if (_sub == _key) exitWith { _minutes = _sub; }; } count _minArr; _minutes = [_minutes,format["0%1",_minutes]] select (_minutes < 10); _notLabel = format ["%1h %2m",_hours,_minutes]; _incLabel = format ["%1: %2h %3m",_label,_hours,_minutes]; _srvTime = [_notLabel,_incLabel] select (_useLabel); } else { _srvTime }; _srvTime // === :: fnc_IBEN_uniSTime END === Check source code (Github) === FEATURES: Not big deal, just small piece of code as output from my work to make things easier... Function is able to output Restart time or Uptime with single line code (see bellow) and can be easily integrated into your code. If you restart system fails (or you with settings :) and time is over, time stays formatted as: '0h:00min' Usage examples: debug monitor, log time (diag_log) etc. It's a function - you can easily maintain your "time" code... === How to install: It's actually very easy: practical example is the best way to explain, what needs to be done. See repo structure and files. Source files are available at Github repo. You can download them from here. === How to use it: = General usage: // @Parameters: // - Time for restart cycle in seconds | number // - Time mode (values: "restart"/"uptime") | string // - Label (example: "Restart in") | string // ========================================================== // @Scenario: // - First, we store our server restart time into global variable // so we can easily use it anywhere and change it at once later, // if we want to change time: if (isNil SERV_RESTART) then { SERV_RESTART = 10800; }; // @example 01: Restart time with no label [SERV_RESTART,"restart"] call fnc_IBEN_uniSTime; // @example 02: Restart time with label [SERV_RESTART,["restart","Restart in"]] call fnc_IBEN_uniSTime; // @example 03: Uptime with label [SERV_RESTART,["uptime","Time from start"]] call fnc_IBEN_uniSTime; // @Returns: // - Time string in format: "h:mm", or "Restart in: h:mm" === ...easy enough, isn't it? === = Specific usage: // === Scenario 01: // It's very easy to add it to your debug monitor code. In fact, we're not gonna to cover // this specific scenario - just look around forum, there are plenty of releases. // But... many time I heard question like: "How can I add restart time/uptime to the right // bottom screen corner the way how watermark is?". // Well, this is our first scenario: // === What to do: // It's actually pretty easy: just grab your files from my repo - how to implement you will // easily find out from prepared files - just follow repo structure. // Done? OK - so you integrated 'fnc_IBEN_uniSTime' into your compiled files and you can // use it now. // Everyone has some kind of debug monitor, right? So just add this piece of code: while {1 == 1} do { private ["_Tinfo","_Tval",...some local vars]; // ... your debug monitor code // ======================================================================= // GUI: RESTART TIMEOUT (see picture bellow) // (but you can add uptime with/withou label - look for examples above) // ======================================================================= _Tval = [SERV_RESTART,["restart","Restart in"]] call fnc_IBEN_uniSTime; _Tinfo = format ["<t size='.35' align='right' font='TahomaB'>%1</t>", _Tval]; [ _Tinfo ,safezoneX * -1 ,0.98 * safezoneH + safezoneY ,9999 ,0 ,0 ,50009 ] spawn BIS_fnc_dynamicText; // your code for parsing text bellow uiSleep 2; }; // === Scenario 02: // Let's implement formatted time info into your debug output (logs). // === What to do: // Just add: diga_log format ["=== [DEBUG] Player %1 (%2) just found your secret item. [%3]", (name player), getPlayerUID player, [SERV_RESTART,["uptime","Uptime"]] call fnc_IBEN_uniSTime)]]; // RPT output: "=== [DEBUG] Player iben (8542514521...) just found your secret item. [Uptime: 1h:30min]" // === Done! === Screen right bottom time watermark (showcase): === ...that's all... Have Fun!!! Cheers... ===
  4. I've tried searching for this for 2 days now, but I can't seem to find it: - How do I make the food and drink drop slower on my server?
  5. I love the Arma 3 epoch and the feel, it's such an amazing upgrade from Arma 2. My only issue is the vehicle lock times, I have a life, work and school as most other people do and cannot keep logging in every day to check on a vehicle I secured. I want to build a base but to do that I need to gather materials and store them temporarily in a car but the problem I had on previous servers was that the vehicles became unlocked after server restart or after about 30 minutes of not being used and all my stuff would get stolen. I miss the Arma 2 version where if you locked a car, no one could loot or steal it (unless they stole parts of the car or just blew it up, which is fair game in my opinion). Can someone please recommend a couple of servers that implement this script/version? I have a 4 man squad looking to really get into Arma 3, but this issue is hindering us. Thanks.
  6. I've noticed that the server seems to stay in creating mode until the first person logs in. Which means that the in game server time will not complete it's full cycle before the server restarts if there is a long delay between the server starting and people logging in. Anyone know how to avoid this and make sure that the ingame server time starts immediately after the server has come back up? Thanks, TheKnightTemplar (The Wild Community)
  7. Donnovan

    Clouds Speed

    I finished a simple time control code that allow you to accelerate time. Actually i'm using that: 00:00 - 04:00 [12 minutes] 04:00 - 08:00 [18 minutes] 08:00 - 12:00 [30 minutes] 12:00 - 16:00 [30 minutes] 16:00 - 20:00 [18 minutes] 20:00 - 24:00 [12 minutes] Total Day Time = 2 hours. It have smooth clouds movement, but since this demands many more and smaller skipTime commands and since skipTime command decrease fps, you have a hurt in fps of 15%. If i can control clouds speed, this would open new possibilities because i can use less and bigger skipTime commands. I tried to mess with setWind command, but this seens not to affect clouds speed. Anyone know how to set clouds speed?
  8. Hi guys i have a dayz server and im trying to setup day/night on it :) So lets say i want it to follow my IRL time so at 8:00 PM (at the afternoon ofc) it turns to night on the server and then 8:00 AM (At the morning ofc) It turns to day again how do i do this? Is it in the HiveExt.ini file or how does that work? P.s My server restarts every 6th hour (12 am 6 am 12 pm 6 pm) and so on Please help me :)
  9. Hello, i have a problehm with the Server time. The Players have almost all different times, has a night, another day. what could it be? Zhanks in advance, Zeiss [Time] Type=Static Hour = 15 Date = 15.11.2013
  10. I have a under standing that i have to edit HiveExt.ini but i don't have any idea what i have to do can someone please help me! i would like my server to restart every 5 hours and have 4 hours day and 1 hour night. ;This is a comment ;Comments above a certain setting will provide it's description ;The format for a setting is ;Variable = Value ;If you see a commented line of that form, it means that the setting is optional, and the Value shows the default ;To change from the default, simply uncomment the line and change the Value [Time] ;Possible values: Local, Custom, Static ;Type = Custom Type = Custom ;If using Custom type, offset from UTC in hours (can be negative as well) ;Offset = 0 ;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to ;Hour = 11 Offset = 0
  11. Hi, first thanks for this mod 'cause i like it really ! I wanted to know how i can increasing the time of whole the craft (i don't want that they stay until 5 days after death but more) ? I have a private server where we play in role play and we want that the building stay more longer time after death (and not just 5 days, it is not enough for us). I search the information on google and i don't find it so i hope that someone will can help me and explain how i can change that on my server ? Thanks you.
  • Create New...