What's the best key > value extensions? We use ini++ (it's awesome) now mostly for data, and in the past we used nvo (but it's buggy).
Are there any K>V objects that I may not be aware of?
Printable View
What's the best key > value extensions? We use ini++ (it's awesome) now mostly for data, and in the past we used nvo (but it's buggy).
Are there any K>V objects that I may not be aware of?
Whats wrong with INI++?
(There are no debilitating bugs that I'm aware of)
INI++ is great, perfect. NVO is the one that is buggy. We are doing experiments and wanted to try different extensions.
It would be a huge overkill to use a database for such a simple purpose, but SQLite 3 object is my favorite data-related extension.
ValueAdd is basically a key->value store, hiding under the use of "unlimited named alterable values on every object".
Edit: And there's also an "associative array" object.
Never even tried ValueAdd before. Thank you!
If you want any new features in Ini++, now is the time to ask as I am restarting work on the updated version of it soon.
I know this isn't really an INI thing, but since you've done such a fantastic job with the encryption and wholeness of INI++ would it be possible to add an array feature?
I really like MMF's built-in array object, however it doesn't have encryption and the file sizes can become quite large with blank data. If you could add an array to INI++ (2D would suffice) it would be great!
I second that request.
However something similar can already be build.
[ArrayNameX2Y3Z0]
Value=34
[ArrayNameX1Y3Z0]
Value=23
etc.
It's just a bit of a coding mess by adding a few hundreds if not thousands of groups :D
or use:
[myArray]
X0Y0Z0=1
X1Y0Z0=0
...
will also work
but a build in array would be awesome :)
What's buggy with nvo?
For us, it seems too unreliable and corrupted data frequently. Players would report that their save data had mysteriously vanished, and I think it was the cause of some crashing too. We've been using INI++ instead of NVO for about half a year now and have not had similar problems. \:
one of the lua extensions
lua's tables are amazing
EDIT: of course you'd have to write your own saving/loading scripts though
Lua is great for many things but if INI++ was capable of taking all kinds of data (What it alread does + arrays) and encrypting them in a single file then that would be very useful and simplistic.
If you want to encrypt an array at present you need another extension. Same goes with things done in LUA, you need to code encryption into it. INI++ with arrays would mean that you could save Map data and some "key > value" type things all in the one file.
It's true that there are ways to implement array-like structures with INI++, as maVado pointed out, however it would be great if they all had the simplicity of the Array object with its "Set Value at X and Y" and "Retrieve Value at X and Y".
INI++ already does a great job of neatly packing your files (encryption and compression with the flick of a switch.) Adding simplistic arrays akin to the Array object would make it even more incredibly powerful.
I agree to the above request about arrays. Right now I have a number array in MMF along with an INI file and I just posted a thread asking how to merge the two together into one file. If you could somehow combine the two it would be fantastic!
I already did that with z33z's names variable object but My arrays can be up to 500x500x11 in size, and text data of this size was over 100mb.... With the array its significantly less, especially if I compress it.Quote:
Originally Posted by maVado
Not to mention the array object is much faster at reading/writing values constantly.
just so you know z33z I was using your nvo no problems at all, I just found it to be quite slow with handling the reading of data canstantly and applying events to the data read.Quote:
Originally Posted by z33z
I'll look at adding that feature in.