Hi,
I've tried for the past 3 days but I'm unable to get / set anything from the cloud in and addon that I'm building. Therefore I've started an empty mission with only ALiVE Required, ALiVE Data and this in init.sqf
:
if (isServer) then { diag_log text "TEST: initializing"; waitUntil { ["ALiVE_sys_data"] call ALiVE_fnc_isModuleInitialised }; diag_log text "TEST: done waiting for alive data"; private _aliveKey = "MyTestKey"; private _aliveHash = [[["one", 1], ["time", time]], objNull] call CBA_fnc_hashCreate; diag_log text "TEST: get value"; private _savedValue = [_aliveKey] call ALiVE_fnc_getData; if !(isNil _savedValue) then { diag_log text format["TEST: got value %1", _savedValue]; } else { diag_log text "TEST: got NO value"; }; [_aliveKey, _aliveHash] call ALiVE_fnc_setData; diag_log text format ["TEST: data %1 stored, SAVE & EXIT as admin", _aliveHash]; };
Started mission, clicked on SERVER SAVE & EXIT (ADMIN ONLY)
.
Restarted mission, logs are:
12:28:32 TEST: done waiting for alive data 12:28:32 TEST: get value 12:28:32 Error in expression <ashGet; } else { _result = "ERROR"; }; _result;> 12:28:32 Error position: <_result;> 12:28:32 Error Undefined variable in expression: _result 12:28:32 File \x\alive\addons\sys_data\fnc_getData.sqf [ALiVE_fnc_getData], line 1782 12:28:32 TEST: data ["#CBA_HASH#",["one","time"],[1,0],<NULL-object>] stored, SAVE & EXIT as admin 12:28:32 Error in expression <ey] call ALiVE_fnc_getData; if !(isNil _savedValue) then { diag_log text format> 12:28:32 Error position: <_savedValue) then { diag_log text format> 12:28:32 Error Undefined variable in expression: _savedvalue 12:28:32 File mpmissions\__cur_mp.Altis\init.sqf, line 15 12:28:32 ALiVE SYS_DATA - ASYNC WRITE LOOP STARTING
=> ERROR
I can click on SERVER SAVE & EXIT (ADMIN ONLY)
but when I restart, same thing.