DayZ
59 ratings
LongerSunriseAndSunset
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
164.503 KB
Dec 12, 2021 @ 7:33am
May 23, 2023 @ 6:00am
5 Change Notes ( view )

Subscribe to download
LongerSunriseAndSunset

Description

[discord.gg]


What the mod does ?
This mod allows you to avoid the night falling (or sun rising) in few seconds when you set a high "serverNightTimeAcceleration" in your serverDZ.cfg

This behaviour is because the game consider it is night time as soon as the sun is behind the horizon even if the light is still bright.

How it works ?
The mod "cuts" a part of the night.
For example you can set it to jump from 22:00 to 03:00.

This allow you to keep a small value in the "serverNightTimeAcceleration" of your serverDZ.cfg so you will have long sunsets and sunrises but not long nights.

The down side is that if there is no clouds players can see the moon and stars teleporting when the cut occurs.

Installation
As all other mods :
  • Subscribe to the mod in the workshop.
  • Copy the @LongerSunriseAndSunset folder from your !Workshop client folder to your server root folder.
  • Copy the Liven.bikey file to the server keys folder.
  • Add "-mod=@LongerSunriseAndSunset" in your .bat server launching file
("-mod=@LongerSunriseAndSunset;@OtherMod" if you have other mods to load).
Note that this mod has to be loaded server and client side.

Configuration
Lower the "serverNightTimeAcceleration" value in your serverDZ.cfg because you don’t need big acceleration anymore to have short nights.

The first time you launch the server, the mod will create a folder named « LongerSunriseAndSunset_Profile » in your server profile folder (where your scriptxxxx.log are created).

In this folder, update the Admins.txt with your SteamID.

In LongerSunriseAndSunset_Tweaks.xml set the part of the night and day you want to cut.

When your modifications are done and saved you can apply them directly ingame by pressing the numpad1 refresh key (or restart the server).

Other Information
Is it possible add a cut during daytime, so you can just play during sunset and sunrise if you want.

The values have to be set in 24h format (for example: 22:50 not 10:50pm)

By default the day is not cut and the night is cut from 22:00 to 03:00.

These value only cut the dark part of the night even if you play a summer date but if your server is set to a winter date maybe you can cut a larger part of the night.

Permissions
You CAN use, modify, repack the mod as you need.
Do not simply redistribute it with another name and don't forget credits
(Note that a little donation is always welcome if you feel generous)

My other mods:
PvZmoD Spawn System
PvZmoD Customisable Zombies
PvZmoD Dark Horde
No WallHack On Connection
Pumpkin On Zombies
Christmas Event Enhanced
Complete Vehicles Spawner
ZombiesVsPredators

[discord.gg]
[www.paypal.com]

11 Comments
Liven  [author] Mar 15 @ 11:07pm 
@ LB_Industries, no, it is how the mod works
LB_Industries Mar 15 @ 9:37am 
The main problem is the time jump from 22 to 5 and other comnbinations. Can you take out the jump ?
Liven  [author] Mar 14 @ 11:57pm 
@LB_Industries it should be possible but you have to make tests to find the right date/hours combinaison
LB_Industries Mar 14 @ 11:21pm 
I will try this time values, but it is forseen that the jump is there ?
Because for gameplay I wish to have a night but with this sunset length
Real time lets say 20 miunutes dark nigth, 5 min sundown and 5 min sunset, is that possible ?
Liven  [author] Mar 14 @ 2:58pm 
@LB_Industries, yes my mod jump from a time to another.
Did you try 22:00/4:00 the appropriate values depend on the season
LB_Industries Mar 14 @ 2:49pm 
I have a problem with the mod what is realy what I wanted but....
the night ends abruptly and turns seamlessly into light, so no sunrise
settings :
servertimea... =4
servernigtha...=3
CutNigth 22:00/ 5:00
sundown goes to 22:00 the suddenly it jumps to 5:00with daylight early moring so absolute no nihgth any more.
I have wrong setting ?
Sob Jul 18, 2023 @ 2:16pm 
amazing thanks
⎝⧹ xscr33m ⧸⎠ May 3, 2023 @ 3:53pm 
Thank you for allowing to repack!
If you want to take a look: https://steamcommunity.com/sharedfiles/filedetails/?id=2971041124
Elijah' Jan 27, 2022 @ 7:50am 
Liven delivering as usual, nice dude!
FuDesign Dec 25, 2021 @ 8:06pm 
<3 Thanks