tyler4171 10 Posted March 1, 2010 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
Deadfast 43 Posted March 1, 2010 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
tyler4171 10 Posted March 1, 2010 Roger will give it a go Share this post Link to post Share on other sites