Bug #25458

Scripting issues with OA campaign 07 Eye of the Typhoon mission

Added by kju over 3 years ago. Updated about 3 years ago.

Status:Closed Start date:10/14/2011
Priority:Normal Due date:
Assignee:Suma % Done:

0%

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

Description

By Rok (ref)

Obs
1. At mission start I get the following error message in hint box:

"ERROR: MPF_rCREATETASKSET calls fails - BIS_missionScope is nil" 

Also tasks are listed as "objSCUDs" and "objAziz", and task descriptions are empty.

2. Also I get some script errors on screen when I choose to save the POW's.

From arma2oa.RPT:

Error in expression <ger getVariable "FTLString";            

if(_FTLValue < (_LOW select 0)) then {_FTLV>
  Error position: <_FTLValue < (_LOW select 0)) then {_FTLV>
  Error Undefined variable in expression: _ftlvalue
File ca\modules_e\functions\systems\fn_FTLmanager.sqf, line 192
Error in expression <BIS_FTLManager setVariable ["FTLState", _FTLState];

_FTLState;    
};

_Se>
  Error position: <_FTLState];

_FTLState;    
};

_Se>
  Error Undefined variable in expression: _ftlstate
File ca\modules_e\functions\systems\fn_FTLmanager.sqf, line 124
Error in expression <r please!"];
_returnValue = false;
};

_returnValue>
  Error position: <_returnValue>
  Error Undefined variable in expression: _returnvalue
File ca\modules_e\functions\systems\fn_FTLmanager.sqf, line 395

3. If I restart mission I get more error messages on screen and no chatter with HQ at mission start.

Note
I used CAMPAIGN cheat command to unlock all campaign missions if that makes any difference.

FTLdemo.Zargabad.zip - Simple mission using FTL (6.5 kB) Suma, 10/14/2011 14:03


Related issues

related to ARMA2 Community Issue Tracker - Bug #25391: MP: Init bug after save / load Closed 10/11/2011
related to ARMA2 Community Issue Tracker - Bug #25225: Man-based units run Config init eventhandler too soon Closed 10/06/2011
related to ARMA2 Community Issue Tracker - Bug #14766: Eventhandler initialization order changed in 1.55 Beta Closed 10/31/2010
related to ARMA2 Community Issue Tracker - Bug #25482: Kronzky target range broken in 1.60 - (Killed) EH (init) ... Closed 10/14/2011
related to ARMA2 Community Issue Tracker - Bug #25506: [A2+OA] Scenario objective name incorrect Closed 10/15/2011
related to ARMA2 Community Issue Tracker - Bug #25574: AI has troubles boarding ground vehicles Expired 10/17/2011 01/01/2012
related to ARMA2 Community Issue Tracker - Bug #25223: Control of UAV is always with server player, even if the ... Closed 10/06/2011

History

Updated by kju over 3 years ago

  • Description updated (diff)

Updated by kju over 3 years ago

Repro
  1. select SP-Campaign-OA-"07 Eye of the Typhoon"
  2. start mission
  3. choose to save hostages
  4. fn_FTLmanager appears - not always but very often
  5. beam to the center mosque
  6. kill all infantry in the mosque
  7. move inside and onto the top
  8. objective completed

I can confirm 2) - I don't get what Rok means with 3).
Also its not entirely clear if he plays in SP or as hosted mission.

Error in expression <....
  Error Undefined variable in expression: _ftlvalue
File ca\modules_e\functions\systems\fn_FTLmanager.sqf, line 192
...

Updated by Fireball over 3 years ago

  • Subject changed from [1.60 beta only] Some scripting issues with OA campaign 07 Eye of the Typhoon mission to Scripting issues with OA campaign 07 Eye of the Typhoon mission

Updated by rok over 3 years ago

Thanks for making the ticket kju.
I'm playing the mission in single player. (Using CO + DLC's. No mods.)

Explanation for #3: While playing the mission and after observing #1 and #2 happen I click Esc and Restart.
Observed: Mission (re)starts but there's no dialog (no voices, nor subtitles) between you and your commander (Citizen 1).

Tested builds:
1.59 OK
1.59.85101 OK
1.59.85213 broken (also CTD 20 secs into the mission, twice)
1.59.85248 broken
1.59.85330 broken
1.59.85434 broken

Updated by Suma over 3 years ago

  • Status changed from New to Assigned
  • Assignee changed from Dwarden to Suma

I was able to reproduce issue 2), with following results:
85173 - OK
85199 - ??? (Stack overflow on plane crash)
85221 - issue shows

When I do Restart, I get a scripting error straight at the missing beginning, with a hint ERROR: MPF_rCREATETASKSET calls fails - BIS_missionScope is nil", and there is no dialogue.

Most likely the issue is caused by changes in the event handler execution order.

Updated by Suma over 3 years ago

I have reproduced the FTL issues with 85221 in a small mission (attached).

85199 - OK
85212 - issue shows

Updated by rok over 3 years ago

I can see the issue 1 (error in hint box) also with the demo mission. (beta 85434)

Updated by Suma over 3 years ago

Problem is with scripts like this:

"Logic" createUnit [[0,0,0], _missionScopeGroup, "BIS_missionScope = this"];
publicVariable "BIS_missionScope";

Since 85212 the init execution is delayed to be done after the event handlers are processed, therefore in the second line the value of BIS_missionScope is not ready yet.

Note: the eventhandler execution was postponed to prevent issues like #11011, where the vehicle was deleted while an event handler was executed on it, and similar other issues.

Updated by OMAC over 3 years ago

Hint box error message

"ERROR: MPF_rCREATETASKSET calls fails - BIS_missionScope is nil"

confirmed in 85478, but only after restarting mission once, as rok found with issue #25506.

Updated by Suma over 3 years ago

  • Status changed from Assigned to Resolved

Should be fixed in 85489 (while other events are still postponed, init event handler is always called immediately).

Updated by kju over 3 years ago

  • Due date deleted (11/01/2011)
  • Target version set to Upcoming version

Updated by kju over 3 years ago

  • Status changed from Resolved to Closed
  • Target version changed from Upcoming version to 1.60 BETA

Works again as far as I can tell.

Updated by kju about 3 years ago

  • Target version changed from 1.60 BETA to 1.60.87580

Also available in: Atom PDF