productVersion: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<code>([^<]*)\[\[a_hash_b\|#\]\]([^<]*)<\/code>" to "<code>$1#$2</code>")
m (Text replacement - "<code>([^<]*)\[\[a_hash_b\|#\]\]([^<]*)<\/code>" to "<code>$1#$2</code>")
Line 31: Line 31:
|x2= <code>hint str productVersion; // ["Arma 3", "Arma3", 137, 128764, "Development", false, "Windows"]</code>
|x2= <code>hint str productVersion; // ["Arma 3", "Arma3", 137, 128764, "Development", false, "Windows"]</code>


|x3= <code>format ["%1.%2",(productVersion # 2)/100 toFixed 2,(productVersion [[a_hash_b|#]] 3)]; // returns version e.g.: "2.00.146773"</code>
|x3= <code>format ["%1.%2",(productVersion # 2)/100 toFixed 2,(productVersion # 3)]; // returns version e.g.: "2.00.146773"</code>


|seealso= [[supportInfo]] [[requiredVersion]]
|seealso= [[supportInfo]] [[requiredVersion]]
}}
}}

Revision as of 09:42, 13 May 2022

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, build, branch, isModded, platform, architecture]:

Examples

Example 1:
hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208
Example 2:
hint str productVersion; // ["Arma 3", "Arma3", 137, 128764, "Development", false, "Windows"]
Example 3:
format ["%1.%2",(productVersion # 2)/100 toFixed 2,(productVersion # 3)]; // returns version e.g.: "2.00.146773"

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