This wiki is about 0.17, the current experimental version of Factorio.

Information about 0.16, the current stable version of Factorio, can be found on stable.wiki.factorio.com.

In other languages: Deutsch Français Русский 中文

Difference between revisions of "Game-day"

From Official Factorio Wiki
Jump to: navigation, search
m (substituted links to go to official lua api documentation)
(grammar)
Line 2: Line 2:
 
A [[Game-day|day]] lasts 25000 [[Game-tick]]s or 416.66~ [[Game-second]]s.
 
A [[Game-day|day]] lasts 25000 [[Game-tick]]s or 416.66~ [[Game-second]]s.
  
The light varies throughout the day varies in a cycle consisting of 4 phases:
+
The light varies throughout the day in a cycle consisting of 4 phases:
 
{| class="wikitable"
 
{| class="wikitable"
 
! Phase !! Behaviour !! Time of day at start !! Time of day at end !! Duration (in ticks) || Duration (in seconds)
 
! Phase !! Behaviour !! Time of day at start !! Time of day at end !! Duration (in ticks) || Duration (in seconds)

Revision as of 15:51, 17 March 2017

A day lasts 25000 Game-ticks or 416.66~ Game-seconds.

The light varies throughout the day in a cycle consisting of 4 phases:

Phase Behaviour Time of day at start Time of day at end Duration (in ticks) Duration (in seconds)
day fully light 0.75 0.25 12500 208.33~
dusk darkening 0.25 0.42 5000 83.33~
night fully dark 0.42 0.58 2500 41.66~
dawn lightening 0.58 0.75 5000 83.33~
  ------------- day -------><---- dusk ----><---- night ----><---- dawn ----><-------- day ------------
  
% 0    5    10   15   20   25   30   35   40   45   50   55   60   65   70   75   80   85   90   95  100
  |----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|----|

During dusk, the light level decreases linearly from fully light to fully dark. During dawn, it increases linearly from dark to light.

Note: The actual time between phases can vary +/- a tick due to rounding errors.

These values are accurate as of version 0.11.8.

Longer or shorter days?

It is possible - and there are some mods, that do it - to modify the length of a game-day. So a game day is not a fixed length, it depends on the loaded mod. The above describes only the vanilla game.

See also