productVersion: Difference between revisions
Lou Montana (talk | contribs) (Add 2.20 branchName) |
Lou Montana (talk | contribs) m (Fix) |
||
Line 17: | Line 17: | ||
|s1= [[productVersion]] | |s1= [[productVersion]] | ||
|r1= [[Array]] in format [name, nameShort, version, | |r1= [[Array]] in format [name, nameShort, version, buildNumber, buildType, isModded, platform, architecture, steamBranchName]: | ||
* name: [[String]] - product name | * name: [[String]] - product name | ||
* nameShort: [[String]] - product short name | * nameShort: [[String]] - product short name | ||
* version: [[Number]] - product version number | * version: [[Number]] - product version number | ||
* | * buildNumber: [[Number]] - product build number | ||
* {{GVI|arma3|1.00|size= 0.75}} | * {{GVI|arma3|1.00|size= 0.75}} buildType: [[String]] - build type, can be {{hl|"Stable"}}, {{hl|"Development"}}, {{hl|"Diag"}} or {{hl|"Profile"}} | ||
* {{GVI|arma3|1.00|size= 0.75}} isModded: [[Boolean]] - is the product running with mods ([[true]]) or vanilla ([[false]]) | * {{GVI|arma3|1.00|size= 0.75}} isModded: [[Boolean]] - is the product running with mods ([[true]]) or vanilla ([[false]]) | ||
* {{GVI|arma3|1.00|size= 0.75}} platform: [[String]] - can be {{hl|"Windows"}}, {{hl|"Linux"}} or {{hl|"OSX"}} | * {{GVI|arma3|1.00|size= 0.75}} platform: [[String]] - can be {{hl|"Windows"}}, {{hl|"Linux"}} or {{hl|"OSX"}} | ||
* {{GVI|arma3|1.68|size= 0.75}} architecture: [[String]] - {{hl|"x64"}} for 64bit or {{hl|"x86"}} for 32bit | * {{GVI|arma3|1.68|size= 0.75}} architecture: [[String]] - {{hl|"x64"}} for 64bit or {{hl|"x86"}} for 32bit | ||
* {{GVI|arma3|2.20|size= 0.75}} | * {{GVI|arma3|2.20|size= 0.75}} steamBranchName: [[String]] - {{hl|""}} (for default/public branch), {{hl|"profiling"}} or {{hl|"development"}} | ||
|x1= <sqf>hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208</sqf> | |x1= <sqf>hint str productVersion; // would return ["Arma 2 OA", "arma2oa", 162, 95208] on Arma 2 OA 1.62.95208</sqf> | ||
Line 33: | Line 33: | ||
|x3= <sqf>format ["%1.%2", (productVersion select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: "2.00.146773"</sqf> | |x3= <sqf>format ["%1.%2", (productVersion select 2) * 0.01 toFixed 2, productVersion select 3]; // returns version e.g.: "2.00.146773"</sqf> | ||
|x4= <sqf>productVersion params ["_name", "_nameShort", "_version", "_buildNumber", "_buildType", "_isModded", "_platform", "_architecture", "_steamBranchName"];</sqf> | |||
|seealso= [[supportInfo]] [[requiredVersion]] | |seealso= [[supportInfo]] [[requiredVersion]] | ||
}} | }} |
Latest revision as of 10:33, 11 April 2025
Description
- Description:
- Returns the product's friendly name, identifier, version and build number.
- 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
1.00 buildType: String - build type, can be "Stable", "Development", "Diag" or "Profile"
1.00 isModded: Boolean - is the product running with mods (true) or vanilla (false)
1.00 platform: String - can be "Windows", "Linux" or "OSX"
1.68 architecture: String - "x64" for 64bit or "x86" for 32bit
2.20 steamBranchName: String - "" (for default/public branch), "profiling" or "development"
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- 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