Axial Tilt

by sparr

Adds seasonal changes to the length of the day/night.

Content
2 days ago
0.15 - 2.1
367
Environment

Changelog

Version: 2.1.2
Date: 2026-09-07
  Bugfixes:
    - Nauvis gets its real day back. A day there is 25200 ticks, and this mod has been
      setting 25000 since the time compression option was added, shortening it by 0.8%.
      The length now comes from the planet rather than from a number in this mod.
Version: 2.1.1
Date: 2026-09-07
  Other:
    - Add a test suite: 15 busted specs for the seasonal arithmetic, 10 factorio-test
      fixtures for what a real game does with it
    - Split that arithmetic out into lib/seasons.lua so it can be tested without a game
Version: 2.1.0
Date: 2026-09-07
  Other:
    - Update for Factorio 2.1
  Bugfixes:
    - Stop crashing on load: 2.0 renamed the table a mod's state lives in from global to
      storage, and this mod stores the day counter there
    - Stop crashing anywhere south of the equator. Dawn and dusk now lengthen with
      distance from the equator in both hemispheres, where a southern latitude used to
      drive their length negative and put evening before dusk. The engine refuses times
      that are not strictly ordered, and refusing them killed the mod outright. Latitudes
      0 to 68 are unaffected.
  Changes:
    - Keep the four transition times inside the day they describe. A polar midwinter has
      no daylight to nudge either side of, so dusk fell a fraction below zero and dawn the
      same fraction past one. The engine stores those quite happily; this is tidiness, not
      a crash.
Version: 1.1.2
Date: 2024-09-14
  Changes:
    - Add LuaLS annotations to source
    - Disable debug output
    - Remove unused debug functions
Version: 1.1.1
Date: 2021-12-28
  Bugfixes:
    - Correct dusk_morning_fraction_of_night calculation
  Changes:
    - Accidentally enable debug output
Version: 1.1.0
Date: 2021-12-28
  Bugfixes:
    - Fix arithmetic mistake in dawn/dusk duration
  Changes:
    - Version bump for Factorio 1.1
    - Remove unused mod setting definition keys
  Other:
    - Retroactively fill out partial changelog for earlier versions
Version: 0.17.0
Date: 2019-03-25
Version: 0.16.0
Date: 2018-03-25
  Changes:
    - Remove unused mod settings
    - Factorio version bump for 0.16
Version: 0.15.1
Date: 2017-05-19
Version: 0.15.0
Date: 2017-05-18
  Other:
    - Initial version of the mod