Page MenuHomeFeedback Tracker

allowFunctionsRecompile parameter does not work with BIS functions
New, WishlistPublic

Description

In a mission I created I need to modify 2 BIS functions (BIS_initRespawn, BIS_fnc_arsenal) but after some testing it turns out to be impossible to do when these functions are called from uiNamespace (it is possible if they are called from missionNamespace).

I tried using CfgFunctions in description.ext but even if I use "CfgFunctions {class BIS {class whatever {class ARSENAL" the function is not recompiled in missionNamespace/uiNamespace. I used allowFunctionsRecompile=1; in description.ext.

Is allowFunctionsRecompile useful only for custom file based scripts?

Anyway I will have to try copy the RscDisplayArsenal dialog class and modify onLoad/onUnload event handlers directly and redirect them to my custom version of BIS_fnc_arsenal. I hoped it would be easier to reuse BIS functions.

Details

Legacy ID
387883161
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Scripting
Steps To Reproduce

Create a mission and try modify a BIS function that is called like this (by other BIS function/display onLoad handler):
call uiNamespace getVariable "BIS_unbreakable_function".

"BIS_unbreakable_function" is initialized like this:
uiNamespace setVariable
[
"BIS_unbreakable_function",
compileFinal "path_to_script_file_that_is_in_BIS_pbo"
]

Event Timeline

d3nn16 edited Steps To Reproduce. (Show Details)Aug 21 2014, 5:09 PM
d3nn16 edited Additional Information. (Show Details)
d3nn16 set Category to Scripting.
d3nn16 set Reproducibility to N/A.
d3nn16 set Severity to None.
d3nn16 set Resolution to Open.
d3nn16 set Legacy ID to 387883161.May 7 2016, 7:16 PM
Bohemia added a subscriber: AD2001.Aug 21 2014, 5:09 PM