We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mods (complete and add to the following information):
stable
3.15.8 stable
Description: The serialize and deserialize functions don't work with this PR
Steps to reproduce:
private _medical = [player] call ace_medical_fnc_serializeState; [player, _medical] call ace_medical_fnc_deserializeState;
Which results in the wound hashmaps being the wrong type e.g
22:45:11 Error in expression <]); private _legWounds = (_openWounds getOrDefault ["leftleg", []]) + (_openWo> 22:45:11 Error position: <getOrDefault ["leftleg", []]) + (_openWo> 22:45:11 Error getordefault: Type Location, expected HashMap 22:45:11 File z\ace\addons\medical_engine\functions\fnc_updateDamageEffects.sqf..., line 54
Expected behavior: Deserialisation does not populate wound variables with the wrong type
Where did the issue occur?
Additional context: Sugged by @BaerMitUmlaut that the issue may be this line:
ACE3/addons/medical/functions/fnc_deserializeState.sqf
Line 36 in 2231675
private _state = [_json, 2] call CBA_fnc_parseJSON;
If this is not the cause, then this may be a CBA bug as per this minimal repro:
private _inputData = call CBA_fnc_createNamespace; _inputData setVariable ["hashmap", createHashmap]; private _json = [_inputData] call CBA_fnc_encodeJSON; private _outputData = [_json] call CBA_fnc_parseJSON; private _hashmap = _outputData getVariable "hashmap"; _hashmap
outputs Location CBA_NamespaceDummy at -1000, -1000
Location CBA_NamespaceDummy at -1000, -1000
The text was updated successfully, but these errors were encountered:
Changing private _state = [_json] call CBA_fnc_parseJSON; to private _state = [_json, 2] call CBA_fnc_parseJSON; didn't do the trick as is
private _state = [_json] call CBA_fnc_parseJSON;
23:31:21 Error in expression <call CBA_fnc_parseJSON; { if ((_state getVariable [_x, createHashMap]) isEqual> 23:31:21 Error position: <getVariable [_x, createHashMap]) isEqual> 23:31:21 Error getvariable: Type HashMap, expected Namespace,Object,Group,Display (dialog),Control,Team member,Task,Location 23:31:21 File z\ace\addons\medical\functions\fnc_deserializeState.sqf..., line 40
Sorry, something went wrong.
LinkIsGrim
Successfully merging a pull request may close this issue.
Mods (complete and add to the following information):
stable
3.15.8 stable
Description:
The serialize and deserialize functions don't work with this PR
Steps to reproduce:
Which results in the wound hashmaps being the wrong type
e.g
Expected behavior:
Deserialisation does not populate wound variables with the wrong type
Where did the issue occur?
Additional context:
Sugged by @BaerMitUmlaut that the issue may be this line:
ACE3/addons/medical/functions/fnc_deserializeState.sqf
Line 36 in 2231675
needing to be:
If this is not the cause, then this may be a CBA bug as per this minimal repro:
outputs
Location CBA_NamespaceDummy at -1000, -1000
The text was updated successfully, but these errors were encountered: