Page MenuHomeFeedback Tracker

Error with bis_fnc_cp_main
Need More Info, NormalPublic

Description

Hi,

I have done a simple mission. Indep are hostile, some units are patrolling (several move waypoints + cycle one). One mod: enhanced movement. Malden Island. Nothing very specific.

I got this error:

9:03:54 Error in expression <[];

_threat = [_this,_threatsNew] call bis_fnc_cp_main;

_t = time + (_this ca>
9:03:54 Error position: <bis_fnc_cp_main;

_t = time + (_this ca>
9:03:54 Error Undefined variable in expression: bis_fnc_cp_main
9:03:54 Error in expression <time > _t>
9:03:54 Error position: <_t>
9:03:54 Error Undefined variable in expression: _t
9:03:54 Error in expression <time > _t>
9:03:54 Error position: <_t>
9:03:54 Error Undefined variable in expression: _t
9:03:54 Error in expression <time > _t>
9:03:54 Error position: <_t>
9:03:54 Error Undefined variable in expression: _t
9:03:54 Error in expression <time > _t>
9:03:54 Error position: <_t>
9:03:54 Error Undefined variable in expression: _t
9:03:54 Error in expression <time > _t>
9:03:54 Error position: <_t>
9:03:54 Error Undefined variable in expression: _t
9:03:54 Error in expression <time > _t>
9:03:54 Error position: <_t>
9:03:54 Error Undefined variable in expression: _t

Seems to be each framed...

these lines :_threat = [_this,_threatsNew] call bis_fnc_cp_main; are not from my scripts.

Any Idea? Thanks.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 8
Category
General
Steps To Reproduce

I don't know. Vanilla 1.80. independent are friend with east, enemy for west. but that doesn't appear at start of the game. Much linked with first AI shot/ kill between enemies.

Additional Information

The rpt is on each framed for the Error position: <_t> Error Undefined variable in expression: _t

Absolutely boring! At least, is there is way to cut off the rpt on screen?

Event Timeline

PiepMGI created this task.Apr 7 2018, 1:34 PM
Wulf changed the task status from New to Need More Info.Apr 9 2018, 3:24 PM
Wulf added a subscriber: Wulf.

Hello.

Thank you for the report. Could you please upload the mission here?

PiepMGI added a comment.EditedMay 11 2018, 6:15 PM

Found the error. It occurs when spawning:

  • a civilian unit like "CivilianPresence_C_Man_casual_5_F_euro" instead of "C_Man_casual_5_F_euro". Both of them can spawn and live, react but :
  • if blufor (player) is enemy for resistance (then civilian as inherited relationship),
  • and this kind of civilian is aware of "enemy" presence,

the error msg is 100% displayed and rpt file implemented on each frame.

To avoid that, filter your array with scope = 2. The "civilianPresence_..." are scope = 1.

Example:

(("configname _x iskindOf 'CAManBase' && !(['_VR_',configName _x] call bis_fnc_inString) && (gettext (_x >> 'faction') == 'CIV_F') && (getNumber (_x >> 'scope') >= 2)" configClasses (configfile >> "CfgVehicles")) apply {configName _x})

BI, could you:

  • add a check for the kind of unit (so its behavior). Something avoiding the undefined variable as intended in the script (engine).
  • or, make "civilianPresence..." type of unit non-spawnable or non-simulated. This unit is too "similar" to normal unit (scope 2) for its behavior.

?
Thanks