Jump to content
code34

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

Recommended Posts

Confused, i am using inidb with =BTC= mission but his is inidbi? Whats the difference?

Share this post


Link to post
Share on other sites
Confused, i am using inidb with =BTC= mission but his is inidbi? Whats the difference?

fix somes bugs, clean the code & interface, increase the buffer capacity ;)

Edited by code34

Share this post


Link to post
Share on other sites
Any requests for next release ? :)

Hmmm, maybe a sample mission with more details.

e.g. how the client retrieve datas from the server...

I have few scripts I've made with @inidb, I was able to save/load datas (player pos, gear, etc...), but it's not working anymore with @inidbi.

Edit :

It's working fine now :)

---------- Post added at 18:49 ---------- Previous post was at 17:47 ----------

I got still an issue with loading datas.

No idea why it's not working with @inidbi, the only line I changed is :

call compile preProcessFile "\inidb\init.sqf";

to

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

Edited by MikeMuir

Share this post


Link to post
Share on other sites

the mission is already avalaible on the first page ;)

copy&past your load line here. I will check the syntax

Share this post


Link to post
Share on other sites

those kind of code is not anymore supported

[_fileName, getPlayerUID player, "_alive",[b] "NUMBER"[/b]] call sendToServer;

you have to replace "NUMBER" by "SCALAR" :)

Edited by code34

Share this post


Link to post
Share on other sites
Guest

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

If I have an Object called FOB1 how would I go about saving all objects near this object say in a 500M radius ?

Sorry very new to this :)

Share this post


Link to post
Share on other sites

@MikeMuir

Your sample mission doesn't work.

Undefined Variable ssdebug.

saveloop.sqf line 1.

Undefined Variable statsLoaded

saveloop.sqf, line 1

undefined Variable statsLoaded.

LoadStats.sqf, line 55

undefined variable playerisalive

LoadStats.sqf, line 55

I am executing your mission without modification on a 1.08 Dedicated Server.

Any help would be appriciated.

Edited by OzDeaDMeaT

Share this post


Link to post
Share on other sites

Hi

I have problem when I load a wasteland on server with inidbi. It finds profile found or not found when I host it from computer as a client. But when I place inidbi on the Server, no such message pops up. Does the server need to have something installed on it in order to read. idk

Thank you :)

Share this post


Link to post
Share on other sites

you have to check trhough properties windows menu , the dll file is unlocked.

Share this post


Link to post
Share on other sites

You can not save object. If you want to, you have to serialize it into a string format, to rebuild it at load moment.

Share this post


Link to post
Share on other sites

By serialize, do you mean compiling the string on read?

Would it be possible to incorporate object saving without conflicting with your previous work? Until then, I'm sticking with inidb.

Edited by eagledude4

Share this post


Link to post
Share on other sites

in fact, inidb doesn't permit to save object cause inidb only transforms the instance name of the object as a string;

It's useless cause the original read function doesn't work as expected. You write an object, and you will restore a string(only the instance name). So, In inidbi, i forbidded this usage for the moment.

By serialize, i mean transform the full object as a string that permits to restore it fully.

If you want to save an object that you created(vehicle), you have to serialize it yourself into a string, and save the string. In the reverse way, you have to restore it from the string.

Edited by code34

Share this post


Link to post
Share on other sites

Hey code34, awesome job sir. Glad to see this still alive.

Couple questions,

1st. How much help are you willing to give?

As in if I ask some simple questions are you gonna flame me for not knowing and or Google'n, cause I have and there is sh*t for examples/ help, or would you be willing to help me out.

And I'm slowly learning how to use this, and not looking for just an answer, but a push in the right direction as I am deeply involved and wanting to learn as much as possible.

2nd. Whats the best way to use the inidb_exsits method.

Right now I have a method that I am unsure is working.

_Profile = format["%1", getPlayerUID user];
   user = [_Profile] call iniDB_exists;

trying to set up a persistent mission that when you spawn, it checks to see if you have a db file in existence, if not, spawn you blah blah...

Share this post


Link to post
Share on other sites
Hey code34, awesome job sir. Glad to see this still alive.

_Profile = format["%1", getPlayerUID user];
   user = [_Profile] call iniDB_exists;

Hi :)

try this instead

_Profile = format["%1", getPlayerUID user];
_user = _Profile call iniDB_exists;

cause iniDB_exists function waits for a string ;)

Edited by code34

Share this post


Link to post
Share on other sites

Can someone post example mission that actually works, please? Thanks.

Share this post


Link to post
Share on other sites
As far as I understand, this example saves names of units to db. Not sure how this can help me.

How about inventory, position, health, etc?

yes, you have to write by yourself. I m thinking to introduce this function directly into the addon

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

×