Jump to content
code34

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

Recommended Posts

if you check the ini file, it s certainly a key problem

Share this post


Link to post
Share on other sites

What's a keyproblem? Everything in the ini file seems normal. Saving works the way it's supposed to.

Share this post


Link to post
Share on other sites

hi

copy paste your read call, like this :)

["myDatabaseFile", "sectionname", name player, "STRING"] call iniDB_read;

Edited by code34

Share this post


Link to post
Share on other sites

When new version will be published? I see in changelog in GitHub that it exists.

Share this post


Link to post
Share on other sites

hi :-)

i have to check about it since severals months. From my memory no major features :-)

i will try to release it before the end of year.

Share this post


Link to post
Share on other sites

hi guy,

I have re-read the whole code on repositorie, and it is not necessary to update the code.

The various update did not bring new major features and will caused as side effects big changes in user code. As it's not interresting, this is probably, the reason why i not release it a few months ago.

The 1.4 version is the stable reference release. Sorry to not give you more, but it s a basic write/read mechanism.

Share this post


Link to post
Share on other sites

It depends on what should be saved. I use this extension to save player's inventory and position, objects, etc. IniDBi works fine.

Share this post


Link to post
Share on other sites

So what's up with saving arrays?

in 1.0 arrays saved, in 1.4, they are missing.

I try to save like this:

["myDatabaseFile", _playerUID, "moneyArray", [_money, _servertime, _side]] call iniDB_write;

The local variables are defined ofc. Tried to save the array in one variable then insert that, same problem...

Or am I missing something?

Share this post


Link to post
Share on other sites

hi, yes you can save arrays, sting, and scalar.

Check your logs, you perhpas insert into your arrays object or others thing than can not be save.

Share this post


Link to post
Share on other sites

I don't know what's happening, 1.0 functions works fine, except from a moneyArray="[500000,245.764,GUER]" entry can't read out GUER (it's saved though), but can read EAST or WEST.

Is it a bug in the first version? I tried to use 1.4, but still can't save arrays.

tried these methods:

["myDatabaseFile", _playerUID, "moneyArray", [_money, _servertime, _side]] call iniDB_write;
["myDatabaseFile", _playerUID, "moneyArray", _moneyArray] call iniDB_write;

_money and _servertime is number, _side is a string.

In the second one:

_moneyarray: _moneyArray = [_this select 1, _this select 2, _this select 3]; which is (should be) the same as [_money, _servertime, _side]

both giving the error:

"IniDBI: write failed, 76561197983934018 moneyArray data contains object should be ARRAY, SCALAR, STRING type"

Am I screwing something up?

Share this post


Link to post
Share on other sites

Maybe you _side is the problem? Does it refer to player side? Then you will need to convert it to a string first.

Share this post


Link to post
Share on other sites

Damn, never thought of that. Will try it asap.

edit: Solved it... Thanks man! As a "weekend scripter" I do miss these things :)

Edited by GiPPO

Share this post


Link to post
Share on other sites

Worked well on hosted... but i can't manage to make it work on dedicated.

Windows 7 64

Latest VCRedist.exe

@inidbi installed on A3 root

Launch parameters: "myPathTo\arma3server.exe" -port=2302 -config=serverIniDB.cfg -mod=@inidbi;

Launched mission: test_mission.altis

Call: call compile preProcessFile "\inidbi\init.sqf";

Always the same message: Script inidbi\init.sqf not found

What's the problem ?

Share this post


Link to post
Share on other sites
Worked well on hosted... but i can't manage to make it work on dedicated.

Windows 7 64

Latest VCRedist.exe

@inidbi installed on A3 root

Launch parameters: "myPathTo\arma3server.exe" -port=2302 -config=serverIniDB.cfg -mod=@inidbi;

Launched mission: test_mission.altis

Call: call compile preProcessFile "\inidbi\init.sqf";

Always the same message: Script inidbi\init.sqf not found

What's the problem ?

Hi :)

most of time it comes from:

- missing microsoft libraries vc++

- file permissions on dll

Share this post


Link to post
Share on other sites
Hi :)

most of time it comes from:

- missing microsoft libraries vc++

- file permissions on dll

Hi code34,

i just reinstalled the lastest vcredist_x86.exe (and x64 but normally not needed) from http://www.microsoft.com/en-ie/download/details.aspx?id=40784

and the user who launch the arma3server.exe have full permissions on the iniDB.dll

I'm so disappointed. :(

Share this post


Link to post
Share on other sites

try to check directory permissions, and mod=@.. line :)

---------- Post added at 11:19 ---------- Previous post was at 11:17 ----------

if you have

Always the same message: Script inidbi\init.sqf not found

it s the addon pbo that is not load properly (not the dll)

Share this post


Link to post
Share on other sites

i have granted full rights on: \@inidbi, \@inidbi\db, \@inidbiiniDB.dll, \@inidbi\Addons, \@inidbi\Addonsinidbi.pbo for the user who launch the arma3server.exe

Launch parameters tried:

"myPathTo\arma3server.exe" -port=2302 -config=serverIniDB.cfg -mod=@inidbi;

"myPathTo\arma3server.exe" -port=2302 -config=serverIniDB.cfg -mod=@inidbi

"myPathTo\arma3server.exe" -port=2302 -config=serverIniDB.cfg "-mod=@inidbi"

Always the same error message... i dunno what to try now !?

Share this post


Link to post
Share on other sites

sorry i don't see :( certainly a missconfiguration at some place.

Share this post


Link to post
Share on other sites

is anyone able to provide an example on how to use this to save a players kit and location?

thanks

Share this post


Link to post
Share on other sites

Im trying to get inidbi working on linux, but i dont have any clue about mono and xbuild...

arma3server@m1ndfuck:~/serverfiles/@inidbi/sources/Ini_DB$ xbuild Ini_DB.vcxproj
XBuild Engine Version 12.0
Mono, Version 3.12.1.0
Copyright (C) 2005-2013 Various Mono authors

Build started 4/15/2015 2:57:18 PM.
__________________________________________________
Ini_DB.vcxproj: error : /home/arma3server/serverfiles/@inidbi/sources/Ini_DB/Ini_DB.vcxproj: /home/arma3server/serverfiles/@inidbi/sources/Ini_DB/Ini_DB.vcxproj could not import "$(VCTargetsPath)\Microsoft.Cpp.Default.props"
Build FAILED.
Errors:

Ini_DB.vcxproj: error : /home/arma3server/serverfiles/@inidbi/sources/Ini_DB/Ini_DB.vcxproj: /home/arma3server/serverfiles/@inidbi/sources/Ini_DB/Ini_DB.vcxproj could not import "$(VCTargetsPath)\Microsoft.Cpp.Default.props"

        0 Warning(s)
        1 Error(s)

Time Elapsed 00:00:00.0414560
arma3server@m1ndfuck:~/serverfiles/@inidbi/sources/Ini_DB$

Btw.: @Arma2NET is running on the box. Could compile it without any errors... Dont know if it actually works though...

Share this post


Link to post
Share on other sites

hi :) i dont know if it works cause the microsoft api is used

Share this post


Link to post
Share on other sites
Im trying to get inidbi working on linux, but i dont have any clue about mono and xbuild...

do you success to make it works ? :)

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

×