Jump to content
code34

iniDBI2 - Save and Load data to the server or your local computer without databases!

Recommended Posts

New version frontpaged on the Armaholic homepage.

news_download_a3_3.png

INIDBI2 v2.04

** Armaholic now supports authors with donation button/links. If you have those please contact me!

 

Thxs Foxhound !

 

 

Thanks Code34  Works Great

 

Nice hope you will find a good way to use it ;)

Share this post


Link to post
Share on other sites

Hi Guys !

 

Just release the lastest version 2.05 of inidbi2 :)

 

change logs:

- re factory getTimeStamp method : return now an array instead string containing system UTC TIME [YYYY, MM, DD, HH, MM, SS]

 

Download from dropbox

Share this post


Link to post
Share on other sites

yes ini API is directly linked to windows registry, so it s not supported under linux :D

Share this post


Link to post
Share on other sites

Can anyone provide a script that uses this addon to save player gear and position?

Thanks

Share this post


Link to post
Share on other sites

New mod v2.4 available at withSIX. Download now by clicking:

banner-420x120.png

Hey code34 , you can upload updates or new mods to withSIX yourself now!

Make your own promo page, get the power to release your work at your own point of choosing.

To learn more, follow this guide.

Share this post


Link to post
Share on other sites

New mod v2.4 available at withSIX. Download now by clicking:

banner-420x120.png

Hey code34 , you can upload updates or new mods to withSIX yourself now!

Make your own promo page, get the power to release your work at your own point of choosing.

To learn more, follow this guide.

 

Hi Kecharles28

 

Thanks you for this nice information ! :)

Share this post


Link to post
Share on other sites

G'day code34,  :)

 

 

I have been looking for a persistent save/load database for my survival mod 'DSS: The Mod', which I have found this. But I have two questions that you may be able to answer:

 

1. Is this database persistent towards my own server?

2. Are there ways to not only store the location, health and gear of a player, but to store player and server variables as well?

 

 

 

Congrats on the release!

 

 

 

Rawner135

Share this post


Link to post
Share on other sites

G'day code34,  :)

 

 

I have been looking for a persistent save/load database for my survival mod 'DSS: The Mod', which I have found this. But I have two questions that you may be able to answer:

 

1. Is this database persistent towards my own server?

2. Are there ways to not only store the location, health and gear of a player, but to store player and server variables as well?

 

 

 

Congrats on the release!

 

 

 

Rawner135

 

Hi Rawner135

 

thanks you for your feed back and happy to see a nice mod using INIDBI :)

 

can you give more informations about what you want to do, cause i m not sure to well understand. Inidbi2 permits to save objects and also variables content.

  • Like 1

Share this post


Link to post
Share on other sites

Hi Rawner135

 

thanks you for your feed back and happy to see a nice mod using INIDBI :)

 

can you give more informations about what you want to do, cause i m not sure to well understand. Inidbi2 permits to save objects and also variables content.

 

Your welcome!  :D

 

 

Yeah I want to have a database that stores the following:

 

Player:

- Location

- Inventory

- Health

- Other variables such as hunger and thirst.

 

Server:

- Variables to store things like: Name of player, player has looted town, player is already in town, etc.

 

 

And of course a persistent system that acts much like when you join a DayZ Standalone server.  ;)

 

 

 

I would really love to get this database working, as by far, this looks the most promising for setups and/or configurations.  :)

Share this post


Link to post
Share on other sites

yes, you can save your variable datas :) 

 

you can contact me if you need support, i will help you

  • Like 1

Share this post


Link to post
Share on other sites

Hi guys,

Hey has anyone got this working with a arma 3 epoch server and if so how?

I currently have a wasteland server running iniDBI but was thinking of giving a epoch server ago running this if it is possible.

Share this post


Link to post
Share on other sites

Hi guys,

Hey has anyone got this working with a arma 3 epoch server and if so how?

I currently have a wasteland server running iniDBI but was thinking of giving a epoch server ago running this if it is possible.

https://forums.bistudio.com/topic/162765-oo-pdw-oriented-object-persistent-data-world/

 

Have a look here for saving objects that players place etc. 

Share this post


Link to post
Share on other sites

Hey code, (me again :P)

 

Having some troubles whilst making a logging system with INIDBI2 that makes a new .ini file for each player with their name and UID in it.

 

TRIED Using in initServer.sqf
in its own .sqf

or in onplayerrespawn.sqf

 

I get results whilst using onPlayerRespawn.sqf however I get this error.
2d37dd310d.png

/*
INIDBI2 AusCorp Relevant logging.
AUTHOR: willithappen
FILE: initServer.sqf
DESC: Logs who the player kills [Civ/Hostile] and who they die to. Also logs vehicle enter/exit.
*/
/*
TODO:
- Kill Logs [That can be used for a stat tracker]
- More Prominent TeamKill Logs
*/
_inidbi = ["new", "Database"] call OO_INIDBI;
 
//=======================
//SETUP PRIMARY
//=======================
_playerUID = getPlayerUID player;
_playerstring = player;
_savestring = format["%1 (%2)",_playerstring,_playerUID];
["setDbName", "_savestring"] call _inidbi;
//=======================
//SETUP SAVED/SAVING ARRAYS
//=======================
_nonvitaltimer = 60;
_vehiclename = name vehicle player;
_whereis = position player;
//=======================
//LOG FUNCTIONS
//=======================
while {true} do
{
sleep 3;
["write",["Positions","TestKey","_whereis"]] call _inidbi;
IF !(vehicle player == player) THEN 
{
{
sleep 2;
} else
{ 
["write", ["VehicleEntries", "TestKey", "_vehiclename"]] call _inidbi; 
};
{
sleep _nonvitaltimer;
 
};
};

Share this post


Link to post
Share on other sites

hi :)

 

missing at some place the call compile code :)

Share this post


Link to post
Share on other sites

Where is that code? I am unsure as unlike OO_PDW theres no in mission files (I could find anyway) and in this thread it looked like you said it wasn't needed?

Share this post


Link to post
Share on other sites

if it s on server you should check that addon is well loaded :)

Share this post


Link to post
Share on other sites

INIDBI2 is indeed loaded as I use OO_PDW just fine with another mission. This is why im confused. The database just won't create (Due to that error) but with OO_PDW I have no issues.

Share this post


Link to post
Share on other sites

try to only put the inidbi command line in your script and check if it works

 


_inidbi = ["new", "Database"] call OO_INIDBI;

 

I confirm with inidbi "call compile" is not required, but this kind of error means that OO_INIDBI was not assign, so not compile (or overwrite at other place by a nil value).

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×