A community playtest is open. Download the M2 Living Town build, play it, and tell us what broke. Download and play

Everon, 1989 · life/RP for Arma Reforger

Docs · For server owners

Set the day cycle

docs/owner/day-cycle.mdEdit on GitHub

The dayCycle section of config.json decides how fast the in-game clock runs. There are three modes. The default is vanilla: leave the section out and the base game's clock runs untouched.

mode The in-game clock
vanilla The base game's own. Nothing is changed.
accelerated One in-game day lasts dayLengthMinutes real minutes.
realtime Follows the server's real clock, shifted by clockOffsetMinutes.

Vanilla

The default. Every other field is ignored.

{
  "schemaVersion": 1,
  "dayCycle": {
    "mode": "vanilla"
  }
}

Accelerated

A day lasts dayLengthMinutes real minutes. The clock runs 1440 / dayLengthMinutes times as fast as the base game's 24-hour day, so a 60-minute day is 24x and a 120-minute day is 12x.

{
  "schemaVersion": 1,
  "dayCycle": {
    "mode": "accelerated",
    "dayLengthMinutes": 60,
    "nightSpeed": 1,
    "startHour": 8
  }
}

nightSpeed is how much faster the night runs than the day (#3149): 2 makes the dark hours pass twice as fast, so a 120-minute day spends half as long in the dark. The base game's time manager has one day duration, so the server switches it at sunset and sunrise (the world's own, 5 h and 19 h if it has none) to the day's duration divided by nightSpeed, and logs each flip once. The clock still replicates to every client through the manager. 1 (the default) never changes the duration. The night rate shows in the start line as night <N> s (<M>x).

startHour is the in-game hour a fresh world starts at, 0 to 24. A save that already has a time of day is a different case: see what a restart does.

Real time

The in-game clock follows the real clock of the machine the server runs on. clockOffsetMinutes is added to it, so a server hosted in one timezone can show another's evening.

{
  "schemaVersion": 1,
  "dayCycle": {
    "mode": "realtime",
    "clockOffsetMinutes": -300
  }
}

dayLengthMinutes, nightSpeed and startHour are ignored: the real clock sets the hour and a day lasts a real day. A negative offset shows an earlier hour than the machine's clock, a positive one a later hour.

Fields

Field Used by Range Default
mode all vanilla, accelerated, realtime vanilla
dayLengthMinutes accelerated 1 to 10080 1440
nightSpeed accelerated 0.1 to 10: the night runs this many times faster than the day 1
startHour accelerated, a fresh world 0 to 24 8
clockOffsetMinutes realtime -1440 to 1440 0

A bad value never stops the server. An unknown mode, or a number outside its range, is refused: the log says which field, and the default stays. Leave a key out to keep its default.

The flagship's day

The Life Framework | Everon 1989 server runs a 2-hour day, in server/flagship/config.json:

"dayCycle": {
  "mode": "accelerated",
  "dayLengthMinutes": 120,
  "nightSpeed": 2
}
  • One real minute is 12 in-game minutes; one in-game hour is 5 real minutes.
  • startHour is not set, so it keeps its default (8). nightSpeed is 2: the night is half as long, so a day is about 90 real minutes of play instead of 120 (the config goes out with the next config push).
  • The server restarts at 06:00 and 18:00, 12 real hours apart, which is six in-game days.

The core's default stays vanilla. Only this config chooses 120 minutes, so a server of your own does not inherit it.

What a restart does

The game's own save keeps the date and time of day (#1302). On a restart that continues the save:

  • accelerated: the clock resumes from the save, so a 06:00 restart does not send the world back to startHour. startHour only applies to a fresh world. The configured dayLengthMinutes wins over the one in the save.
  • realtime: the real clock wins on load. The saved time of day is not used.
  • vanilla: this section applies nothing; the game's own save restores the clock as the base game does.

Changing dayCycle takes effect at the next restart. Restart the server after editing the file.

Suggest a changeAll docs