allAddonsInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
m (Fix)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 2.00
|2.00


|gr1= Mods and Addons
|gr1= Mods and Addons


|Returns the list of all loaded addons.
|descr= Returns the list of all loaded addons.


|s1= [[allAddonsInfo]]
|s1= [[allAddonsInfo]]


|r1= [[Array]] of [[Array]]s in format [prefix, version, isPatched], where:
|r1= [[Array]] of [[Array]]s in format [prefix, version, isPatched, modIndex, hash], where:
* prefix: [[String]] - addon prefix
* prefix: [[String]] - addon prefix
* version: [[String]] - addon revision version
* version: [[String]] - addon revision version
* isPatched: [[Boolean]] - [[true]] if patching is enabled and this addon is being patched  
* isPatched: [[Boolean]] - [[true]] if patching is enabled and this addon is being patched  
 
* {{GVI|arma3|2.14|size= 0.75}} modIndex: [[Number]] - index of mod in [[getLoadedModsInfo]] array. -1 if not found.
 
* {{GVI|arma3|2.14|size= 0.75}} hash: [[String]] - hash of the addon PBO file. "" if hashing fails.
 
|x1= <sqf>
|x1= <code>[[allAddonsInfo]]
allAddonsInfo
{{codecomment|/*
/*
[
[
["bin\","146398",false],
["bin\","150301",false,-1,"66b6d1a87da30e0386fec881504c14a0a6025cb1"],
["core\","129618",false],
["core\","129618",false,-1,"49e1b8da67de848c8ea058fd8512c222ccb6d919"],
["Languagecore_F\","148726",false],
["Languagecore_F\","150376",false,-1,"2ee7b09d60f916d7e56934632f55683a14a636b7"],
["a3\air_f_enoch\","145904",false],
["a3\anims_f_aow\","149768",false,0,"59df21ad1fc6939c460a555b3af662f725564b37"],
["a3\anims_f_enoch\","146917",false],
["a3\dubbing_radio_f_enoch\","150070",false,1,"5ca436c61a634fcbd28ca9480a4c8249c5b0e4bd"],
["a3\armor_f_enoch\","145904",false],
["a3\armor_f_tank\","150292",false,2,"6d0ea8b45ff4cd316b3d6c5575def9dd048e198e"],
["a3\music_f_tacops\","124064",false,3,"435c2b0338fe6bec7685002dca7c47778abf44ee"],
...
...
]
]
<nowiki>*</nowiki>/}}</code>
*/
 
</sqf>


|seealso= [[addonFiles]]
|seealso= [[addonFiles]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
[[Category:Command_Group: Mods_and_Addons|{{uc:{{PAGENAME}}}}]]

Latest revision as of 18:07, 4 July 2023

Hover & click on the images for description

Description

Description:
Returns the list of all loaded addons.
Groups:
Mods and Addons

Syntax

Syntax:
allAddonsInfo
Return Value:
Array of Arrays in format [prefix, version, isPatched, modIndex, hash], where:
  • prefix: String - addon prefix
  • version: String - addon revision version
  • isPatched: Boolean - true if patching is enabled and this addon is being patched
  • Arma 3 logo black.png2.14 modIndex: Number - index of mod in getLoadedModsInfo array. -1 if not found.
  • Arma 3 logo black.png2.14 hash: String - hash of the addon PBO file. "" if hashing fails.

Examples

Example 1:
allAddonsInfo /* [ ["bin\","150301",false,-1,"66b6d1a87da30e0386fec881504c14a0a6025cb1"], ["core\","129618",false,-1,"49e1b8da67de848c8ea058fd8512c222ccb6d919"], ["Languagecore_F\","150376",false,-1,"2ee7b09d60f916d7e56934632f55683a14a636b7"], ["a3\anims_f_aow\","149768",false,0,"59df21ad1fc6939c460a555b3af662f725564b37"], ["a3\dubbing_radio_f_enoch\","150070",false,1,"5ca436c61a634fcbd28ca9480a4c8249c5b0e4bd"], ["a3\armor_f_tank\","150292",false,2,"6d0ea8b45ff4cd316b3d6c5575def9dd048e198e"], ["a3\music_f_tacops\","124064",false,3,"435c2b0338fe6bec7685002dca7c47778abf44ee"], ... ] */

Additional Information

See also:
addonFiles

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