Jump to content

Enbling day/night cycles on 1.0.6.1


ballen

Recommended Posts

Good morning all,

Just wondered if anyone could explain how I can enable day and night cycles on my server - My server doesn't seem to have day/night cycles at the moment? - I'm currently running Epoch 1.0.6.1 on my GTXHosting account.

I'm unsure as to how to set the cycle to either a set amount of time eg. 2 hours daylight to 30 minutes of night? - Is this possible? or do I and as some posts have seemed to indicate, have to set a calendar day and therefore the best I can do is set it to the longest day of year?

If anyone else could share their server settings or where I need to set this configuration as to how I can best achieve this I would be most grateful!

Thanks in advance,

Bobby

Link to comment
Share on other sites

In your HiveExt.ini find

[Time]
;Possible values: Local, Custom, Static
;You cannot use Static on OFFICIAL Hive, it will just revert to Local
Type = Local
;If using Custom type, offset from UTC in hours (can be negative as well)
;Offset = -8
;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
;Hour = 13

and merge it to your wish.

This are my settings. This means the time on the server is allways the time in real life. So it´s dark outside your house, it´s dark on your server.

Link to comment
Share on other sites

Hi Anhor - That's very helpful and thank you for kindly sharing your HiveExt.ini configuration with me.

Most of my users prefer a much shorter day/night cycle however (as most of them work so in the evenings they'd spend most of their time in the dark :() - Do you happen to know how this could be achieved?

Given that my server restarts every 4 hours I would assume (looking at the code comments above) the only way I could really achieve say a 3 hours daylight and 1 hour of night would be to set Type to Custom and  the Hour value to say 19:00 so that the server starts, the game time will be 19:00 each time and then (assuming the game engine turns "night" at say 21:00 (with a transition period) this would mean that players would get 3 hours of "day light" play and an hour of night before it resets again?

Many thanks,

Bobby

 

Link to comment
Share on other sites

If you use infistar, there is the option of vote day / night. It may work for you...

AHconfig.sqf

Spoiler

/* ********************************************************************************* */
    //    NEW (EXPERIMENTAL):
    _UDP = false;    // Use Dupe Protection            /* true or false */
    _URG = false;    // Antirefuel & AntiCargod        /* true or false */
    _UIC = false;    //    Vehicle ID Check    /* true or false */
    _UCL =  true;    // Use Anti Combat Log    /* true or false */
    
    
    /*
        "_UIM": Use Incognito Mode, makes it for the most part look like you don't run infiSTAR to the normal player.
        But for that it disables for example:
        Script Scan, reworked unconscious, Bad Keybinds, The debugmonitor,
        Escape Menu will be default again, Chatfunctions and more
        So it will make the server more unsecure! but look like it's a default one.
    */
    _UIM = false;    /* true or false */
    
    
    /*
        "_sUptime": Server Uptime in seconds!
        Using this will show "Restart in: xh xxmin"
        If you don't want to use it - just do:
        _sUptime = 0;
    */
    _sUptime = 0;
    
    
    /*
        "_UDN": Players can Vote if they want Day- or NighTime
        !vote day,/vote day, vote day,
        !vote night,/vote night, vote night
    */
    _UDN =  true;    /* true or false */

 

Link to comment
Share on other sites

29 minutes ago, S4M said:

If you use infistar, there is the option of vote day / night. It may work for you...

Right. And this was the first thing I disable. You know, my money, my server, my rules.

@ballen

This is a setting for a 4 hour restart day/night cyrcle

[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 = -8
;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
Hour = 17 // maybe play arround with starttime (16 or 18)

 

Link to comment
Share on other sites

@S4M @ballen

If you use infistar's vote system I think some edits will need to maded in here...

 
eg.
Spoiler


_base="z\addons\dayz_server\system\scheduler\";

call compile preprocessFileLineNumbers (_base+"sched_corpses.sqf");
call compile preprocessFileLineNumbers (_base+"sched_lootpiles.sqf");
//call compile preprocessFileLineNumbers (_base+"sched_playersHivesync.sqf");
//call compile preprocessFileLineNumbers (_base+"sched_vehiclesHivesync.sqf");
//call compile preprocessFileLineNumbers (_base+"sched_sync.sqf");
//call compile preprocessFileLineNumbers (_base+"sched_traps.sqf");
call compile preprocessFileLineNumbers (_base+"sched_safetyVehicle.sqf");

[
	// period	offset	code <-> ctx				init code ->ctx
	 //[ 60, 	121,	sched_playersHivesync,      sched_playersHivesync_init ],
	 //[ 60, 	133,	sched_vehiclesHivesync,     sched_vehiclesHivesync_init ],
	 [ 60,	 	224,	sched_corpses ],
	 [ 300,	 	336,	sched_lootpiles_5m,         sched_lootpiles_5m_init ],
	 [ 6,	 	340,	sched_lootpiles ],
	// [ 900,		0,		sched_sync ],
	 [ 120,		48,		sched_safetyVehicle ]
	 //[ 0.1, 		1,		sched_traps ]
] execFSM ("z\addons\dayz_code\system\scheduler\scheduler.fsm");

//diag_log [ __FILE__, "Scheduler started"];




/*
// (see ViralZeds.hpp -> zombie_agent.fsm -> zombie_findOwner.sqf), called when a zombie becomes "local" to the server after the player disconnected
zombie_findOwner = {
	(_this select 0) call fa_deleteVehicle;
};
*/

 

 

 

 

Link to comment
Share on other sites

Thanks guys - I'll have a play about this afternoon.

Your replies and help are truly much appreciated!

I'll probably go with the "forced" day night cycle of four hours as per Anhor's second reply.

Thanks again :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...