Author: code34
Author Website:

Requirements: No addons required

Version: 1.4
Signed: No

Short description: A simple server-side database extension using INI files.

Support the author:

100% of your donation goes directly to the author of this content!
Date: 2013-12-21 15:25


Comments: (4)
Rating:



 





iniDBI

by
code34


Description:
Save and Load data to the server or your local computer without databases!
You can save and load data persistently for your mission. Save money for players, inventories, etc. This is meant for servers but it could be used for clients, too.


Installation:
Extract into the ArmA 3 Directory, by default this is located in:
32-Bit - C:/Program Files/Steam/Steamapps/Common/ArmA 3/
64-Bit - C:/Program Files (x86)/Steam/Steamapps/Common/ArmA 3/
After extraction it should look like this:
Steam/Steamapps/Common/ArmA 3/@your_mod_folder_name

You can also use the "Arma 3" folder in your "My Documents" folder. Your folder setup could than look like for example this:
mydocuments\Arma3\@your_mod_folder_name\
mydocuments\Arma3\@your_mod_folder_name\
mydocuments\Arma3\@your_mod_folder_name\

Place the "userconfig" folder into your game install folder, usually:
"C:\Program Files (x86)\Steam\steamapps\common\Arma 3".

You'll also need to add a Launch Parameter to Steam, in order to do so right-click on ArmA 3 and click Properties and then Set Launch Options. In the window that opens enter in -mod=@your_mod_folder_name
For using multiple mods you would then do so like this:
-mod=@mod_name;@mod_name2;@mod_name3;@mod_name4;@mod_name5

Note:
You can also use -nosplash to get rid of the splash art and intro videos.


And of course you can also enable and disable community made addons and mods through the in-game Options Expansions menu if you do not want to mess with startup parameters!

When the above information still does not provide you with enough to learn how to install custom addons and mods you can always ask in our Guide On Installing Mods.


Included files:
inidbi.pbo


Usage:
To use "iniDBI" in your mission, install the extension in your ARMA2 or ARMA3 directory by copying the entire "@inidbi" folder included in the download to your root directory.
Don't forget to copy over over or create the /db/ folder.
It should look like: /Arma 3/@inidbi/iniDB.dll
It should look like: /Arma 3/@inidbi/db/
It should look like: /Arma 3/@inidbi/Addons/inidbi.pbo

Then in your mission init.sqf, somewhere before you want to use the functions do this:
call compile preProcessFile "\inidbi\init.sqf";
It should be noted that when you install the @inidbi folder you can delete the /examples/ directory from there if you please, they serve no purpose in that folder.

Also make sure to read the included documentation document.

The PBO (SQF) and C++ source is included. Have fun.

Example mission:
Mission example using read & write Inidbi: iniDBI example mission


ARMA3 - Howto Install Inidbi Addon:



Notes:
You have permission to use, upload or otherwise distribute this as please, just mention differents authors.


Credits & Thanks:
inidbi - v1.3 code34 -
inidbi - v1.2 code34 -
inidbi - v1.1 code34 -
inidb - v1.0 SicSemperTyrannis http://raiderbattalion.enjin.com/


Changelog:
v1.4
- fix buffer size to 8k
- add a new function deletesection, to delete in one time the enterily section in the ini file
- add a tool directory with marker save & restore example

v1.3
- Fix string serialize

16-November-2013 - inidbi
- check input/output data type
- add log messages

01-November-2013 - inidbi
- increase buffer 8k
- check size of written data
- change output function

13-March-2013
- Module
- Initial Release
- init.sqf
- Initial Release


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags