Home   Help Search Login Register  

Author Topic: How to disableSerialisation  (Read 2157 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.