productVersion

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Returns the product's friendly name, identifier, version and build number.
Arma 3
The command has been upgraded to also returns branch identifier, whether or not the game was launched using mods, the platform and the architecture.
Groups:
System

Syntax

Syntax:
productVersion
Return Value:
Array in format [name, nameShort, version, buildNumber, buildType, isModded, platform, architecture, steamBranchName]:
  • name: String - product name
  • nameShort: String - product short name
  • version: Number - product version number
  • buildNumber: Number - product build number
  • Arma 3 logo black.png1.00 buildType: String - build type, can be "Stable", "Development", "Diag" or "Profile"
  • Arma 3 logo black.png1.00 isModded: Boolean - is the product running with mods (true) or vanilla (false)
  • Arma 3 logo black.png1.00 platform: String - can be "Windows", "Linux" or "OSX"
  • Arma 3 logo black.png1.68 architecture: String - "x64" for 64bit or "x86" for 32bit
  • Arma 3 logo black.png2.20 steamBranchName: String - "" (for default/public branch), "profiling" or "development"

Examples

Example 1:
Copy
hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208
Example 2:
Copy
hint str productVersion; // ["Arma 3", "Arma3", 137, 128764, "Development", false, "Windows"]
Example 3:
Copy
format ["%1.%2", (productVersion select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: "2.00.146773"
Example 4:
Copy
productVersion params ["_name", "_nameShort", "_version", "_buildNumber", "_buildType", "_isModded", "_platform", "_architecture", "_steamBranchName"];

Additional Information

See also:
supportInfo requiredVersion

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note