BIS fnc recompile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (updated description and parameters)
m (Text replacement - " |s1=[" to " |s1= [")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma2 |Game name=
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| Can be used to recompile functions. |DESCRIPTION=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| [] call [[BIS_fnc_recompile]] |SYNTAX=
|game4= arma3
|version4= 0.50


|p1= mode: [[Number]] or [[String]] - [[String]] should be the name of a function. Only  this function will be recompiled. If [[Number|number]] the following modes are available:<br>
|gr1= Diagnostic
*0 - Autodetect what compile type should be used '''(Default)'''
*1 - Forced recompile of all the things
*2 - Create only uiNamespace variables (used in UI)
*3 - Create missionNamespace variables and initialize mission
*4 - Create only missionNamespace variables
*5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)|PARAMETER1=


____________________________________________________________________________________________
|descr= Can be used to recompile functions.
{{Feature|informative|As a security measure, functions are by default protected against rewriting during the mission. This restriction does '''not''' apply to:
* missions previewed from the editor
* missions with the following attribute in [[Description.ext]]: <syntaxhighlight lang="cpp">allowFunctionsRecompile = 1;</syntaxhighlight>
}}


| [[Boolean]] |RETURNVALUE=
|s1= [mode] call [[BIS_fnc_recompile]]
____________________________________________________________________________________________


|x1= <code>[] [[call]] [[BIS_fnc_recompile]];</code> |=
|p1= mode (Optional, default 0):
____________________________________________________________________________________________
* [[String]] - name of the function to be recompiled
* [[Number]] - can be:
** 0 - Autodetect what compile type should be used
** 1 - Forced recompile of all the things
** 2 - Create only uiNamespace variables (used in UI)
** 3 - Create missionNamespace variables and initialize mission
** 4 - Create only missionNamespace variables
** 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)


| [[compile]], [[compileFinal]] |SEEALSO=
|r1= [[Boolean]]
}}


|x1= <sqf>[] call BIS_fnc_recompile;</sqf>


<h3 style="display:none">Notes</h3>
|x2= <sqf>[3] call BIS_fnc_recompile;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x3= <sqf>["BIS_fnc_spawnVehicle"] call BIS_fnc_recompile;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[compile]] [[compileFinal]]
[[Category:Function Group: Debug|{{uc:recompile}}]]
}}
[[Category:Functions|{{uc:recompile}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:recompile}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:recompile}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:recompile}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:recompile}}]]

Latest revision as of 23:11, 12 July 2022

Hover & click on the images for description

Description

Description:
Can be used to recompile functions.
As a security measure, functions are by default protected against rewriting during the mission. This restriction does not apply to:
  • missions previewed from the editor
  • missions with the following attribute in Description.ext:
    allowFunctionsRecompile = 1;
    
Execution:
call
Groups:
Diagnostic

Syntax

Syntax:
[mode] call BIS_fnc_recompile
Parameters:
mode (Optional, default 0):
  • String - name of the function to be recompiled
  • Number - can be:
    • 0 - Autodetect what compile type should be used
    • 1 - Forced recompile of all the things
    • 2 - Create only uiNamespace variables (used in UI)
    • 3 - Create missionNamespace variables and initialize mission
    • 4 - Create only missionNamespace variables
    • 5 - Recompile all functions, and initialize mission (used for editor preview with function recompile)
Return Value:
Boolean

Examples

Example 1:
[] call BIS_fnc_recompile;
Example 2:
[3] call BIS_fnc_recompile;
Example 3:
["BIS_fnc_spawnVehicle"] call BIS_fnc_recompile;

Additional Information

See also:
compile compileFinal

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