Version string format: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Gangsir moved page Version String Format to Version string format: Downcasing to style guide compliance.)
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:


{| class="wikitable"
{| class="wikitable"
| [[Data_Types#short|short]]
| [[Data_Types#unsigned short|unsigned short]]
| Factorio's major version number (e.g. 0)
| Factorio's major version number (e.g. 0)
|-
|-
| [[Data_Types#short|short]]
| [[Data_Types#unsigned short|unsigned short]]
| Factorio's minor version number (e.g. 14)
| Factorio's minor version number (e.g. 14)
|-
|-
| [[Data_Types#short|short]]
| [[Data_Types#unsigned short|unsigned short]]
| Factorio's patch version number (e.g. 21)
| Factorio's patch version number (e.g. 21)
|-
|-
| [[Data_Types#short|short]]
| [[Data_Types#unsigned short|unsigned short]]
| Unknown. Seems to be either 0 or 1.
| Factorio's developer version number
|}
|}

Latest revision as of 20:26, 20 March 2018


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