Jump to content
Sign in to follow this  
fett_li

error in fn_executeStackedEventHandler.sqf

Recommended Posts

I got this error quite a few times during testing in ArmA:

Error in expression <uments call _code;
} else {

_arguments call (call compile _code);
};
} forEach >
 Error position: <call (call compile _code);
};
} forEach >
 Error call: Type Script, expected code
File A3\Functions_F_EPA\Misc\fn_executeStackedEventHandler.sqf, line 41
Error in expression <uments call _code;
} else {

_arguments call (call compile _code);
};
} forEach >
 Error position: <call (call compile _code);
};
} forEach >
 Error generic error in expression
File A3\Functions_F_EPA\Misc\fn_executeStackedEventHandler.sqf, line 41

Could it be possible, that the probleme is, that in line 41 there is two times a call?

See ll29-43:

//Process data
{
//Data item parameters
private ["_code", "_arguments"];
_code		= [_x, 2, "", [{}, ""]] call BIS_fnc_param;
_arguments	= [_x, 3, []] call BIS_fnc_param;

if (typeName _code != typeName "") then {
	//Execute code
	_arguments call _code;
} else {
	//Execute function
	_arguments call (call compile _code);
};
} forEach _data;

I don't want to open up a new feedback ticket, unless I can be sure, that this is an error.

Share this post


Link to post
Share on other sites

Have you tried changing your double call to just _arguments call compile _code ?

Share this post


Link to post
Share on other sites

Have you tried sending your _code as code {} and not as a string ""? Line 41 is formatting a string into a function name. If you are trying to send script, and not a function, use the brackets instead.

Share this post


Link to post
Share on other sites

Actually I dind't try anything to fix this because it's BIS data and I don't know when it's executed so testing this is kind of hard...

I mean it could be that this script will only get code which has another code as return value, only then it would make sense. But I'm getting the script error. I'll just open up a new ticket, maybe BIS can tell me more.

http://feedback.arma3.com/view.php?id=19062

Every vote is appreciated :)

Share this post


Link to post
Share on other sites

What is your input? I think if the code you supply has an error, you will get this error report.

Share this post


Link to post
Share on other sites

I don't call it. It get's called by BIS_functions.

Share this post


Link to post
Share on other sites

But when you call BIS_fnc_addStackedEventHandler you do pass code into it, right? That code is executed in the function you are talking about. So the code you pass into BIS_fnc_addStackedEventHandler can cause an error in fn_executeStackedEventHandler.

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
Sign in to follow this  

×