Jump to content
pierremgi

Error with bis_fnc_cp_main

Recommended Posts

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.

  • Like 1

Share this post


Link to post
Share on other sites

It seems to me linked with the laptop local time (windows time) different from actual local time, then internet local time.

 

Error still persists....

Share this post


Link to post
Share on other sites

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})

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×