Version string format: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "Factorio uses a common encoding method to serialize the version string in binary data that's present in multiple places. It consists of four consecutive 2-byte unsigned [https...")
 
m (changed link going to redirect to go to Data_types directly)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
Factorio uses a common encoding method to serialize the version string in binary data that's present in multiple places. It consists of four consecutive 2-byte unsigned [https://en.wikipedia.org/wiki/Endianness#Little-endian little-endian] values. We'll use version 0.14.21 as an example:
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 [https://en.wikipedia.org/wiki/Endianness#Little-endian little-endian] values. We'll use version 0.14.21 as an example:


{| class="wikitable"
{| class="wikitable"
! short
| [[Data_types#unsigned short|unsigned short]]
! Factorio's major version number (e.g. 0)
| Factorio's major version number (e.g. 0)
|-
|-
| short
| [[Data_types#unsigned short|unsigned short]]
| Factorio's minor version number (e.g. 14)
| Factorio's minor version number (e.g. 14)
|-
|-
| short
| [[Data_types#unsigned short|unsigned short]]
| Factorio's patch version number (e.g. 21)
| Factorio's patch version number (e.g. 21)
|-
|-
| short
| [[Data_types#unsigned short|unsigned short]]
| Unknown - seems to be 0.
| Factorio's developer version number
|}
|}
[[Category:Technical]]

Latest revision as of 20:09, 13 November 2023

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