Hi,
I am storing a short script using setVariable and I get this warning:
Performance warning: SimpleSerialization::Write 'spawncycle1' is using type of ',SCRIPT' which is not optimized by simple serialization, falling back to generic serialization, use generic type or ask for optimizations for these types
Its for a revive mod and I terminate previous script iteration if this function is called again.
// TERMINATE PREVIOUS _spawncycle //AGAIN FOR GOOD MEASURE
_spawncycle1 = (_medic getVariable ["spawncycle1",false]);
if (typeName _spawncycle1 == "SCRIPT") then {
terminate _spawncycle1;
};
_spawncycle1 = [_medic, _incap] spawn {
params ["_medic", "_incap"];
// Start Recycle / death / Auto recovery
[_medic, _incap] spawn ROS_Fnc_Recycle_Fnc;
// Start AI revive
[_medic, _incap] spawn ROS_Fnc_AIReviveUnits;
// Pause thread
waitUntil {
sleep 1;
(!alive _incap or !alive _medic or !(lifestate _incap == "INCAPACITATED"))
};
};//spawn
_medic setVariable ["spawncycle1",_spawncycle1,true];
How can apply the warning message recomendation, which is "not optimized by simple serialization, falling back to generic serialization, use generic type or ask for optimizations for these types"
Does anyone know if the CPack service is still running? For me it just shows a "Connecting..." message, and I haven't been able to find any further info...
basically running a custom damage handler through all units when mission loads. It works fine in singleplayer and self-hosted multiplayer, but on dedicated server test, this doesnt seem to be loading right.
I am testing by logging in as a remote player, and the damage handler has not properly implimented.
however - if I use the chat to #login, then #restart - it works perfectly.
So I am thinking everything is loading too early. Or maybe because when I restart - I am already logged in as remote player - and its a JIP issue?