Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: How to disableSerialisation  (Read 4388 times)

0 Members and 1 Guest are viewing this topic.

Offline Kremator

  • Members
  • *
How to disableSerialisation
« on: 30 Jul 2009, 01:11:46 »
Dear scripters and modders,

There are quite a few mods from Arma1 that can make it easily into Arma2.  However some of these mods/addons throw up serialisation errors (something to do with the save system, I believe).

My questions is HOW and WHERE do I put in the command disableSerialisation so that I can use these beauties with impugnity !

Thanks

Kremator

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: How to disableSerialisation
« Reply #1 on: 30 Jul 2009, 10:02:23 »
 i have only seen the command used at the top of an sqf so far and it is simply the command with no parameters .
 here it is in one of Bis scripts.
    notice it has a Z
 
Code: [Select]
disableSerialization;

private ["_ctrl", "_char", "_pos", "_slot"];
_ctrl = _this select 0;
_char = _this select 1;
_pos = _this select 2;
_slot = _this select 3;

call (compile ("BIS_Credits_Pool" + (str _slot) + " = BIS_Credits_Pool" + (str _slot) + " - [_ctrl]"));

_ctrl ctrlSetText _char;

_ctrl ctrlSetPosition [(_pos * 0.03) + 0.1,0.05 + _slot / 400];
_ctrl ctrlSetFade 0;
_ctrl ctrlSetScale 10;
_ctrl ctrlCommit 0;

.............................

true
I love ofp

Offline Kremator

  • Members
  • *
Re: How to disableSerialisation
« Reply #2 on: 30 Jul 2009, 20:18:37 »
Thanks.

Will try it now.