It took some looking around in order to get this to work, so I figured I would make one post with all the information you need to have a short day/night cycle on your DayZ Epoch or OverPoch server.
This post is broken down into
1. Features
2. Installation
3. Customization
4. Credit
Features
+ Ability to speed up day and night cycle.
+ Ability to slow down day and night cycle.
+ Ability to speed up/slow down only day or only night cycle.
Installation
This installation guide is for a server wanting 2 hours day and 1 hour night - Assuming you already have a 3 hour restart.
You can change your values following the guide after the installation.
1. Unpack your mission PBO using your favourite PBO tool.
2. Open up your init.sqf and add this line at the very bottom
8. Open your HiveExt.ini located in your instance folder (Depending on host) and set the Type = to static and the Hour = to whatever you wish. (I use Hour = 8)
So it should look like this
[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 = -10
;If using Static type (Hour value always the same on every server start), the value (0-24) to set the Hour to
Hour = 8
9. Repack mission/server PBO and ENJOY!
Customization
Customizing these files to your liking is actually very simple.
The 6 tells the server that every minute in real life is 6 minutes in game time for day-time hours (6am to 8pm)
And the 10 on the end, just before the closing bracket tells the server that every minute in real life is 10 minutes in game time for night (8pm to 6am)
Simply customize this to your liking.
For example if I wanted daytime to go by 10 minutes/minute and night time to go by 4 minutes/minute the code would look like this
Question
Tyler
It took some looking around in order to get this to work, so I figured I would make one post with all the information you need to have a short day/night cycle on your DayZ Epoch or OverPoch server.
This post is broken down into
1. Features
2. Installation
3. Customization
4. Credit
Features
+ Ability to speed up day and night cycle.
+ Ability to slow down day and night cycle.
+ Ability to speed up/slow down only day or only night cycle.
Installation
This installation guide is for a server wanting 2 hours day and 1 hour night - Assuming you already have a 3 hour restart.
You can change your values following the guide after the installation.
1. Unpack your mission PBO using your favourite PBO tool.
2. Open up your init.sqf and add this line at the very bottom
3. Create a new folder in your mission directory called Scripts
4. Inside that folder, create a new file called core_time.fsm and paste the following code into it.
5. Unpack you Server PBO using your favourite PBO tool.
6. Open up the System folder and open server_cleanup.fsm using your favourite text editor.
7. Look for the following code and DELETE it from the file. (It may cause the server to be stuck at a specific time)
8. Open your HiveExt.ini located in your instance folder (Depending on host) and set the Type = to static and the Hour = to whatever you wish. (I use Hour = 8)
So it should look like this
9. Repack mission/server PBO and ENJOY!
Customization
Customizing these files to your liking is actually very simple.
Looking at the line we added to the init.sqf:
The 6 tells the server that every minute in real life is 6 minutes in game time for day-time hours (6am to 8pm)
And the 10 on the end, just before the closing bracket tells the server that every minute in real life is 10 minutes in game time for night (8pm to 6am)
Simply customize this to your liking.
For example if I wanted daytime to go by 10 minutes/minute and night time to go by 4 minutes/minute the code would look like this
All you have to do it adjust this code in your init.sqf, and customize your Hour = X in your HiveExt.ini to your liking.
Hope this helped!!
Credit
I take no credit for the codes provided.
I simply made one post with all the information needed.
HAVE FUN!!!!
Link to comment
Share on other sites
18 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now