Arma 3
Not enough ratings
Dictionary
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Mechanics
File Size
Posted
131.876 KB
12 Oct, 2017 @ 2:51pm
1 Change Note ( view )

Subscribe to download
Dictionary

Description
This mod implements a dictionary API for SQF. A dictionary is a data structure to store arbitrary hierarchical data in a serializable format.

Arma does not have dictionaries implemented out of the box, and it does not provide an interface to serialize its data structures to a string. This mod solves these problems by implementing a transparent dictionary API to store data in-memory (in Arma engine) that can trivially be converted to and from a string.

Details on github[github.com], including tests. Signed. Licenced under BSD-3.
6 Comments
MaxP 8 May, 2021 @ 6:28am 
Wrapper for Arma 3 HashMap function, introduced in v.2.01:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2479887861
Lego 25 Dec, 2020 @ 9:39am 
this is not enough output from the rpt. -> I recommend to post an issue in the mentioned github.

Maybe _key or _value so is now a reserved variable, meaning it needs to be renamed.
MaxP 25 Dec, 2020 @ 9:34am 
Hi, I'm getting the following error in the log:
20:30:44 Error in expression <n object.", _arguments];
};
_dictionary setVariable [toLower _key, _value, true]>
20:30:44 Error position: <setVariable [toLower _key, _value, true]>
20:30:44 Error Reserved variable in expression
20:30:44 File dictionary\fnc__set.sqf [DICT_fnc__set]..., line 31

How I coudl fix it?
MaxP 27 Sep, 2020 @ 3:58am 
Thanks a lot!
Lego 6 Jan, 2020 @ 12:09pm 
Well done. :)