Jump to content

Shortened day/night cycles?


Recommended Posts

Guys it looks pretty simple to me....Its the same way when i added a carrier in the server....just put that .pbo at the same folder where your dayz_server.pbo is. and that should do it.

 

I don't really know how to mod, so just looking at this and reading what it says, it looks like it makes 24 hours pass in 1 hour, so that means 30 minutes day and 30 minutes night - not something I want to do. Maybe I'm reading it wrong?

Link to comment
Share on other sites

I don't really know how to mod, so just looking at this and reading what it says, it looks like it makes 24 hours pass in 1 hour, so that means 30 minutes day and 30 minutes night - not something I want to do. Maybe I'm reading it wrong?

 

Yeah something like that...but if it works....then its just a matter of math after that...to change the numbers so they are a full day/night in 4h play :)

Link to comment
Share on other sites

We run the hivext.ini at 1500 which is daylight, server restarts are staggered using BEC so in the day it's 4 hrs so game gets to 1900 which is twilight, 3 hrs in peak times so only gets to 1800 in game, and overnight when we're less busy we let it run for 6 hrs where in game it gets to 2100 which is dark and has been for approx 1hr 30mins

Link to comment
Share on other sites

We run the hivext.ini at 1500 which is daylight, server restarts are staggered using BEC so in the day it's 4 hrs so game gets to 1900 which is twilight, 3 hrs in peak times so only gets to 1800 in game, and overnight when we're less busy we let it run for 6 hrs where in game it gets to 2100 which is dark and has been for approx 1hr 30mins

 

Would it be possible to post your scheduler.xml file?

Link to comment
Share on other sites

Would it be possible to post your scheduler.xml file?

 

Sure, here it is (we found these times the best for restarts to keep the maximum player numbers)

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<Scheduler>
	
	<!-- *** RESTARTS *** -->
	<!-- 5 min to the 8:00 restart -->
	<job id="0">
		<time>07:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="1">
		<time>07:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 3 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="2">
		<time>07:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="3">
		<time>07:59:30</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 08:00 restart -->
	<job id="4">
		<time>08:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- *** RESTARTS *** -->
	<!-- 5 min to the 12:00 restart -->
	<job id="5">
		<time>11:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="6">
		<time>11:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 3 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="7">
		<time>11:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="8">
		<time>11:59:30</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 12:00 restart -->
	<job id="9">
		<time>12:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- *** RESTARTS *** -->
	<!-- 5 min to the 16:00 restart -->
	<job id="10">
		<time>15:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="11">
		<time>15:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 3 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="12">
		<time>15:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="13">
		<time>15:59:30</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 16:00 restart -->
	<job id="14">
		<time>16:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- *** RESTARTS *** -->
	<!-- 5 min to the 19:00 restart -->
	<job id="15">
		<time>18:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="16">
		<time>18:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 3 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="17">
		<time>18:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="18">
		<time>18:59:30</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 19:00 restart -->
	<job id="19">
		<time>19:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- *** RESTARTS *** -->
	<!-- 5 min to the 22:00 restart -->
	<job id="20">
		<time>21:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="21">
		<time>21:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 3 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="22">
		<time>21:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="23">
		<time>21:59:30</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 22:00 restart -->
	<job id="24">
		<time>22:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- *** RESTARTS *** -->
	<!-- 5 min to the 04:00 restart -->
	<job id="25">
		<time>03:55:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 5 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="26">
		<time>03:57:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 3 MINUTES</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="27">
		<time>03:59:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 1 MINUTE - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<job id="28">
		<time>03:59:30</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>say -1 AUTO SERVER RESTART IN 30 SECONDS - LOG OUT NOW OR YOU MAY LOSE YOUR GEAR</cmd>
		<cmdtype>0</cmdtype>			
	</job>
	
	<!-- 04:00 restart -->
	<job id="29">
		<time>04:00:00</time>
		<delay>000000</delay>
		<day>1,2,3,4,5,6,7</day>
		<loop>0</loop> 
		<cmd>#shutdown</cmd>
		<cmdtype>0</cmdtype>			
	</job>
		
</Scheduler>
Link to comment
Share on other sites

Thanks for posting that! Also, what is your server's UTC set to and where is your server located?

 

Server start time in hiveext.ini is

Hour = 15

 

Server is based in Paris and set to GMT and we are a UK based community but I would assume those restart times would translate to the US anyway. Always peak time between 4pm and 7pm, hence why we don't restart during that period because players might think "hey, restart, I might go and get some food/drink/have a fap" etc

Link to comment
Share on other sites

  • 2 weeks later...

http://www.armaholic.com/page.php?id=1499

 

time acceleration mod... if you get it working, I will be picking your brain.

 

***EDIT***

This doesn't seem to work with lesser values than tested (16), so I will find another solution.

***EDIT 2***

It seems that 16x and 8x work, might have a workaround to make transitions smoother.

 

 

Scripts:

/*
VFATS_CLI.sqf
*/
// VFATS - Victor Farbau's Accelerated Time Client build 004, (c) 2007
// If this runs on a dedicated server then quit now
IF (player != player) exitWith {};

// Init global variables locally to avoid undefined values being used; then wait 5 sec for server
VFserverhours = 0;
VFservermin = 0;
_localhours = 0;
_localmin = 0;
sleep 5;

WHILE {TRUE} DO
{
	sleep 1;
	_localhours = floor daytime;
	IF (_localhours == 0) THEN {_localmin = (60 * daytime)};
	IF (_localhours > 0) THEN {_localmin = 60 * (daytime MOD (floor daytime))};
	skipTime (VFserverhours - _localhours);
	skipTime ((VFservermin - _localmin) / 60);
};


/*
VFATS_SRV.sqf
*/
// VFATS - Victor Farbau's Accelerated Time Server build 007, (c) 2007
// Map objects needed: game logic called "Server"
// servertime = continuous count of time in seconds on the server
// _accel = acceleration factor (24h in 1h = accel 24)
// VFserverhours, VFservermin are public (global) variables that contain the server time

IF (!isServer) exitWith {};

Private ["_accel","_onehour","_oneday","_servertime"];

_accel = _this select 0;
_onehour = 3600;
_oneday = (24 * _onehour) - _accel;
_servertime = (daytime * _onehour);

WHILE {TRUE} DO
{
	sleep 1;
	_servertime = _servertime + _accel;
	VFserverhours = floor(_servertime / 3600);
	VFservermin = floor((_servertime MOD 3600) / 60);
	publicVariable "VFserverhours";
	publicVariable "VFservermin";
};

Usage within DayZ:

Create a folder in your mission file called VFATS

Create the two above scripts (names are at the top of the scripts) and paste the above code belonging to each script.

Open up your init.sqf file

find

if (isServer) then {

add after

vfats =[4] spawn compile preprocessFile ('VFATS\VFATS_SRV.sqf');

with 4 being any multiplier from 2-16 (Even) to speed up the time, so with this setting you have 24/6 which is 6 hour whole days.

Next, find

if (!isDedicated) then {

add after:

 

vfats =[] spawn compile preprocessFile ('VFATS\VFATS_CLI.sqf');

Pack up the mission, stop the server, upload it, start, and test!

Works on my end, but will need further testing. 3 hours went by in roughly 9 minutes on 16x mode, leaving 3 minutes = 1 ingame hour. So, in  72 minutes the whole day went by in a DayZ Epoch server (tested live).

Link to comment
Share on other sites

Ran this during yesterday, had it set on x4, cloud movement is a little jerky which is ok, but on the transition to nighttime there was a series of flashes which can only be described as lightning going off in your face!

I figured as much, it's worse in 16x, haha.

I found a script on OpenDayZ a while back, but cannot seem to find the thread anymore.

Maybe something could be mocked up?

Link to comment
Share on other sites

I'm going to test this out on our dev server on x2 speed to see if it's any better. We would ideally like to run in game 3 hours day >1 hour night, and atm, the only way is to start the server at 16 or 17 hours and then let it get dark. Problem is you get late afternoon long shadows and a long twilight.

 

By putting the server to x2 speed, you could start the server at 13 hours and on a 4 hour restart it would run to 21 hours, but the transition to darkness would be twice as fast.

 

I'll report on my findings.

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...