Bug #16828

"call bis_fnc_help" (and some other) doesn't work when you first start

Added by Denisko-Redisko about 4 years ago. Updated about 4 years ago.

Status:Assigned Start date:01/20/2011
Priority:Normal Due date:04/01/2011
Assignee:Dwarden % Done:

0%

Category:Scripting: Problem
Target version:-
Affected ArmA II version:1.57.76815 First affected build:
Reproduced by another DH user:No First affected ArmA II version:
I am using some Mods:No Single / Multi Player?:
I am using: BIForumURL:
Reproducible for you:No NGUrl:
Related to content of DLC: WIKIurl:

Description

Сreate a trigger:

activationBy="ALPHA";
repeating=1;
text="call bis_fnc_help";
expActiv="call bis_fnc_help";

And try this radio-command in the mission, the help window will appear only at the second attempt.
Source of the problem is in the file "\modules\Functions\init.sqf" (line ~72):
call compile format [" 
    if (isnil '%2_fnc_%3' || %4) then {
        %2_fnc_%3 = {
            if (!%4) then {debuglog ('Log: [Functions] %2_fnc_%3 loaded (%1)')};
            %2_fnc_%3 = compile preprocessFileLineNumbers '%1';
            _this call %2_fnc_%3; // <-- We need check _this on nil value before use
        };
        %2_fnc_%3_path = '%1'; 
    };
",_itemPath,_tagName,_itemName,_recompile];

mission.sqm (2 kB) Denisko-Redisko, 01/20/2011 03:01

History

Updated by kju about 4 years ago

  • Due date set to 04/01/2011
  • Status changed from New to Assigned
  • Assignee set to Dwarden
  • Target version deleted (1.57.76815)
  • Operating system deleted (WinXP 32 bit)

Updated by MulleDK19 about 4 years ago

This is not a problem with the BIS_fnc_help function.

Dialogs cannot be displayed while the game fades in from the loading screen.

Also available in: Atom PDF