Version string format

From Official Factorio Wiki
Revision as of 20:09, 13 November 2023 by Bilka (talk | contribs) (changed link going to redirect to go to Data_types directly)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Factorio uses a common encoding method to serialize the version string in binary data that's present in multiple places, such as the map exchange string and save game file format. It consists of four consecutive 2-byte unsigned little-endian values. We'll use version 0.14.21 as an example:

unsigned short Factorio's major version number (e.g. 0)
unsigned short Factorio's minor version number (e.g. 14)
unsigned short Factorio's patch version number (e.g. 21)
unsigned short Factorio's developer version number