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!
12:12:11 Roles assigned.
12:12:11 Reading mission ...
12:12:44 Script server\s_init.sqf not found
12:12:45 Mission Altis Wasteland by Sa-Matra (v11) read from bank.
every time i use this addon FIX? or better info on how to install like dafaq do you do with Init.sqf and Mission.sqm
Basicly you just through a 5 year old out their to write this because it's it just simple not working :) Some people think every one's how to mod crap and personally idk shit about it and i would like a guide on how to install shit... im rateing this item a report for not working :) till you fix this guide on 5 year olds crack
I would say if your just not smart enough to use it.... dont use it? Its just out of your league.
So, instead of insulting the maker maybe you should just go and stack some blocks?
If you are insulted, imagine you feel insulted while not even doing anything usefull........ but yeah, I do also realise some people will just never get it.
Behaviour like yours will never be rewarded and I truly hope nobody will write you your 5 year old guide.
Awesome, awesome idea and I've just stumbled on this. Seems on the surface to be much easier than working with a SQL database for SP missions. I will get into this tonight when I get home, the example init.sqf you provided gives me enough clues on how this works, but I'll most likely be asking a few more no doubt! It's essentially vital for the campaign that I'm making, I just need to store a player money amount (seems easy), store whether a player has alrady visited that map before (seems easy also) and also hopefully get it so buildings built by the player, persist when moving from map to map (which I think will be the tough one). Much thanks for this, ignore morons like viderson, in fact that's easily the most insulting comment that I've seen directed towards anyone in the Arma community so far.
Good light-weight database system. I'll have to checkout iniDBI2... I hope it works even better.
Total comments : 4, displayed on page: 4