Jump to content
Sign in to follow this  
tyler4171

SATCOM to ArmA 2

Recommended Posts

Im trying to do a personal port of Chicago's SATCOM addon to ArmA 2 but am receiving this error in the script

"_Display can not be serialized, call 'disableSerialization' if you need this command."

How do I call "disableSerialization"?

Code:

NOTEBOOK = _this select 0;
BATTERY = _this select 1;
BATTLIFE = _this select 2;
ASUPP = _this select 3;
MISS = _this select 4;

[] exec "Chicago_SATCOM\notebook_yes.sqs";
[] exec "Chicago_SATCOM\senzor_as.sqs";
[] exec "Chicago_SATCOM\senzor_ms.sqs";

keyspressed = compile preprocessFile "Chicago_SATCOM\keyspressed.sqf";

_display = findDisplay 46;
_display displaySetEventHandler ["KeyDown","_this call keyspressed"];
exit;

Share this post


Link to post
Share on other sites

You can put disableSerialization at the top of the script.

However that will prevent the script from being saved so it might have unforeseen consequences in singleplayer.

Probably better if you avoid having to use it altogether:

NOTEBOOK = _this select 0;
BATTERY = _this select 1;
BATTLIFE = _this select 2;
ASUPP = _this select 3;
MISS = _this select 4;

[] exec "Chicago_SATCOM\notebook_yes.sqs";
[] exec "Chicago_SATCOM\senzor_as.sqs";
[] exec "Chicago_SATCOM\senzor_ms.sqs";

keyspressed = compile preprocessFile "Chicago_SATCOM\keyspressed.sqf";

(findDisplay 46) displaySetEventHandler ["KeyDown","_this call keyspressed"];

(Removed exit too - it does nothing in SQF scripts)

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  

×