getLoadedModsInfo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Article creation)
 
m (Some wiki formatting)
 
(28 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |Game name=
|game1= arma3
|version1= 2.00


| 1.99 |Game version=
|gr1= Mods and Addons
____________________________________________________________________________________________


| returns array of arrays <br>
|descr= Returns information about all loaded modifications.
[modname, modDir, isDefault, isOfficial, origin, hash, hashShort, itemID (Either DLC appid, or steam workshop itemid)]
{{Informative|The first 7 are equal to whats printed to RPT at game startup in the <tt><nowiki>======== mods =======</nowiki></tt> thing.}}
{{Warning|Not Implemented to Development Branch yet.}} |DESCRIPTION=
____________________________________________________________________________________________


| [[getLoadedModsInfo]] |SYNTAX=
{{Feature|informative|The first 7 values are equal to what is printed in [[Crash Files|RPT]] on game startup in the {{hl|c= ======== mods =======}} category.}}


| [[Array]] of [[Array]]s |RETURNVALUE=
|s1= [[getLoadedModsInfo]]
____________________________________________________________________________________________


|x1= <code>_loadedMods = [[getLoadedModsInfo]];
|r1= [[Array]] of [[Array]]s in format [modname, modDir, isDefault, isOfficial, origin, hash, hashShort, itemID (Either DLC appId, or steam workshop itemId)]
{{codecomment|/<nowiki>*
 
|x1= <sqf>
private _loadedMods = getLoadedModsInfo;
/*
[
[
["CUP Units DEV Version r710 (r710-r710 UNITSSVN) (12|Jun|2020)","@[DEV] CUP Units",false,false,"GAME DIR","f3fb8a4c62443ac799c7c0e00f645b1f32cf1376","c96577b4","F:\Steam\SteamApps\common\Arma 3\!Workshop\@[DEV] CUP Units",0],
["dummy","dummy",false,false,"NOT FOUND","","","0"],
["CUP Weapons DEV Version r1486 (r1481-r1486 WEAPONSSVN) (12|Jun|2020)","@[DEV] CUP Weapons",false,false,"GAME DIR","6dbd7c052ce2ae68803e10f6a3653d0b046881d8","bb1c4965","F:\Steam\SteamApps\common\Arma 3\!Workshop\@[DEV] CUP Weapons",0],
["CUP Units DEV Version r710 (r710-r710 UNITSSVN) (12|Jun|2020)","@[DEV] CUP Units",false,false,"GAME DIR","f3fb8a4c62443ac799c7c0e00f645b1f32cf1376","c96577b4",0],
["Community Base Addons v3.15.1","@CBA_A3",false,false,"GAME DIR","33eef5c0ed583d1222319460b184090513193287","131bbb64","F:\Steam\SteamApps\common\Arma 3\!Workshop\@CBA_A3",0],
["CUP Weapons DEV Version r1486 (r1481-r1486 WEAPONSSVN) (12|Jun|2020)","@[DEV] CUP Weapons",false,false,"GAME DIR","6dbd7c052ce2ae68803e10f6a3653d0b046881d8","bb1c4965",0],
["Arma 3 Contact (Platform)","enoch",true,true,"GAME DIR","a4ee0aa9675b9578de2c2742dfa75f14b463b311","2c003588","F:\Steam\SteamApps\common\Arma 3\enoch",1.02179e+006],
["Community Base Addons v3.15.1","@CBA_A3",false,false,"GAME DIR","33eef5c0ed583d1222319460b184090513193287","131bbb64",0],
["Arma 3 Tanks","tank",true,true,"GAME DIR","f20f91e6d4de2f912c9aef10440b9f7cdd9186ba","ee2006c9","F:\Steam\SteamApps\common\Arma 3\tank",798390],
["Arma 3 Contact (Platform)","enoch",true,true,"GAME DIR","4298e892077aec33be6b68730a974400a3c3a636","43e900ae","1021790"],
["Arma 3 Tac-Ops","tacops",true,true,"GAME DIR","e173f6dac22cbfba9a80f06ab6274f283a79ccf1","99fbe961","F:\Steam\SteamApps\common\Arma 3\tacops",744950],
["Arma 3 Tanks","tank",true,true,"GAME DIR","c47d45d7ce1261e0a0d1c4ed9517611eae6ebf9f","1aec74ec","798390"],
["Arma 3 Laws of War","orange",true,true,"GAME DIR","483d1b17bba31a73aca3382baca90726e5fb3b27","85779468","F:\Steam\SteamApps\common\Arma 3\orange",571710],
["Arma 3 Tac-Ops","tacops",true,true,"GAME DIR","808cc67221feadc288c856395cac28b908966eee","441362c6","744950"],
["Arma 3 Malden","argo",true,true,"GAME DIR","f70c5909dd0cf7f85041d1a6f8117fcddbefbeb4","119b97f7","F:\Steam\SteamApps\common\Arma 3\argo",639600],
["Arma 3 Laws of War","orange",true,true,"GAME DIR","aa86785568206ae1e7becaa09eb673ee645d971f","4729aa84","571710"],
["Arma 3 Jets","jets",true,true,"GAME DIR","02935f9fd087965351eaf1af421fee2349cb46b7","a7400e7","F:\Steam\SteamApps\common\Arma 3\jets",601670],
["Arma 3 Malden","argo",true,true,"GAME DIR","db6d4d06a3ad28207da665e8c34bbd8adf191019","61001811","639600"],
["Arma 3 Apex","expansion",true,true,"GAME DIR","ae333819e353cbcf64d25c1a18b182e1c48de485","dd4515be","F:\Steam\SteamApps\common\Arma 3\expansion",395180],
["Arma 3 Jets","jets",true,true,"GAME DIR","8e8e1f9275e37cc90c0f2a8a6901dd2a3e81a29a","fc8366ee","601670"],
["Arma 3 Marksmen","mark",true,true,"GAME DIR","31fcc6f8175f2f8ca204c30f0d70656f23349084","afb3a14a","F:\Steam\SteamApps\common\Arma 3\mark",332350],
["Arma 3 Apex","expansion",true,true,"GAME DIR","48f32952612dbb6ca972790c17c9920797073233","fc4aed7f","395180"],
["Arma 3 Helicopters","heli",true,true,"GAME DIR","ed81c94ee14b0d6bcc0c09947bec1d80ac81285a","fbdee859","F:\Steam\SteamApps\common\Arma 3\heli",304380],
["Arma 3 Marksmen","mark",true,true,"GAME DIR","85c7f2284f8b0271bfafecd96c49230ce0515861","534e5baa","332350"],
["Arma 3 Karts","kart",true,true,"GAME DIR","57fdc8d27afb5ec5890666c22efaa27555c6a60c","be245321","F:\Steam\SteamApps\common\Arma 3\kart",288520],
["Arma 3 Helicopters","heli",true,true,"GAME DIR","dae29688657dbc9057f9eb83179a3ad21d3a689d","e7165098","304380"],
["Arma 3 Zeus","curator",true,true,"GAME DIR","65c7e2c50ad25b4d727780b435533113ad1e9cf3","bb8e34f1","F:\Steam\SteamApps\common\Arma 3\curator",275700],
["Arma 3 Karts","kart",true,true,"GAME DIR","eae9e0b218e7a8e8e906477ee1a5e8e3d5298f18","8240ae3f","288520"],
["Arma 3","A3",true,true,"GAME DIR","","","F:\Steam\SteamApps\common\Arma 3\A3",0]
["Arma 3 Zeus","curator",true,true,"GAME DIR","2310c5c95a558253c7286d93f5a2a810fbf9b620","8af0db5d","275700"],
["Arma 3","A3",true,true,"NOT FOUND","","","0"]
]
]
*</nowiki>/}}</code> |Example1=
*/
____________________________________________________________________________________________
</sqf>
 
|x2= <sqf>
private _modInfo = getLoadedModsInfo select 0;
_modInfo params ["_modname", "_modDir", "_isDefault", "_isOfficial", "_origin", "_hash", "_hashShort", "_itemID"];
</sqf>


| [[allAddonsInfo]] |SEEALSO=
|seealso= [[allAddonsInfo]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Latest revision as of 15:18, 14 November 2023

Hover & click on the images for description

Description

Description:
Returns information about all loaded modifications.
The first 7 values are equal to what is printed in RPT on game startup in the ======== mods ======= category.
Groups:
Mods and Addons

Syntax

Syntax:
getLoadedModsInfo
Return Value:
Array of Arrays in format [modname, modDir, isDefault, isOfficial, origin, hash, hashShort, itemID (Either DLC appId, or steam workshop itemId)]

Examples

Example 1:
private _loadedMods = getLoadedModsInfo; /* [ ["dummy","dummy",false,false,"NOT FOUND","","","0"], ["CUP Units DEV Version r710 (r710-r710 UNITSSVN) (12|Jun|2020)","@[DEV] CUP Units",false,false,"GAME DIR","f3fb8a4c62443ac799c7c0e00f645b1f32cf1376","c96577b4",0], ["CUP Weapons DEV Version r1486 (r1481-r1486 WEAPONSSVN) (12|Jun|2020)","@[DEV] CUP Weapons",false,false,"GAME DIR","6dbd7c052ce2ae68803e10f6a3653d0b046881d8","bb1c4965",0], ["Community Base Addons v3.15.1","@CBA_A3",false,false,"GAME DIR","33eef5c0ed583d1222319460b184090513193287","131bbb64",0], ["Arma 3 Contact (Platform)","enoch",true,true,"GAME DIR","4298e892077aec33be6b68730a974400a3c3a636","43e900ae","1021790"], ["Arma 3 Tanks","tank",true,true,"GAME DIR","c47d45d7ce1261e0a0d1c4ed9517611eae6ebf9f","1aec74ec","798390"], ["Arma 3 Tac-Ops","tacops",true,true,"GAME DIR","808cc67221feadc288c856395cac28b908966eee","441362c6","744950"], ["Arma 3 Laws of War","orange",true,true,"GAME DIR","aa86785568206ae1e7becaa09eb673ee645d971f","4729aa84","571710"], ["Arma 3 Malden","argo",true,true,"GAME DIR","db6d4d06a3ad28207da665e8c34bbd8adf191019","61001811","639600"], ["Arma 3 Jets","jets",true,true,"GAME DIR","8e8e1f9275e37cc90c0f2a8a6901dd2a3e81a29a","fc8366ee","601670"], ["Arma 3 Apex","expansion",true,true,"GAME DIR","48f32952612dbb6ca972790c17c9920797073233","fc4aed7f","395180"], ["Arma 3 Marksmen","mark",true,true,"GAME DIR","85c7f2284f8b0271bfafecd96c49230ce0515861","534e5baa","332350"], ["Arma 3 Helicopters","heli",true,true,"GAME DIR","dae29688657dbc9057f9eb83179a3ad21d3a689d","e7165098","304380"], ["Arma 3 Karts","kart",true,true,"GAME DIR","eae9e0b218e7a8e8e906477ee1a5e8e3d5298f18","8240ae3f","288520"], ["Arma 3 Zeus","curator",true,true,"GAME DIR","2310c5c95a558253c7286d93f5a2a810fbf9b620","8af0db5d","275700"], ["Arma 3","A3",true,true,"NOT FOUND","","","0"] ] */
Example 2:
private _modInfo = getLoadedModsInfo select 0; _modInfo params ["_modname", "_modDir", "_isDefault", "_isOfficial", "_origin", "_hash", "_hashShort", "_itemID"];

Additional Information

See also:
allAddonsInfo

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