code34 248 Posted December 15, 2013 Any requests for next release ? :) Share this post Link to post Share on other sites
vengeance1 50 Posted December 15, 2013 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
code34 248 Posted December 15, 2013 (edited) 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 December 15, 2013 by code34 Share this post Link to post Share on other sites
MikeMuir 9 Posted December 15, 2013 (edited) 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 December 15, 2013 by MikeMuir Share this post Link to post Share on other sites
code34 248 Posted December 15, 2013 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
MikeMuir 9 Posted December 15, 2013 Here the whole mission. http://mikemuir.net/arma3/sample_inidbi.Altis.zip Basically, save and load gear (and addPublicVariableEventHandler). Some piece of code is very old (4 or 5 months ago) and crappy, but it's functionnal with @inidb. I added you Steam ID btw. Share this post Link to post Share on other sites
code34 248 Posted December 15, 2013 (edited) 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 December 15, 2013 by code34 Share this post Link to post Share on other sites
MikeMuir 9 Posted December 16, 2013 Thx code34. It works like a charm now (and quicker). Share this post Link to post Share on other sites
code34 248 Posted December 21, 2013 hi :) 1.4 release: - 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 https://www.dropbox.com/s/d9cyw7wgbh9xuqb/%40inidbi.zip Share this post Link to post Share on other sites
Guest Posted December 21, 2013 Release frontpaged on the Armaholic homepage. iniDBI v1.4 ================================================ 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
1para{god-father} 105 Posted January 3, 2014 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
code34 248 Posted January 3, 2014 try to use this command :) http://community.bistudio.com/wiki/nearestObjects Share this post Link to post Share on other sites
ozdeadmeat 12 Posted January 4, 2014 (edited) @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 January 4, 2014 by OzDeaDMeaT Share this post Link to post Share on other sites
Srap 10 Posted January 6, 2014 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
code34 248 Posted January 6, 2014 you have to check trhough properties windows menu , the dll file is unlocked. Share this post Link to post Share on other sites
1para{god-father} 105 Posted January 8, 2014 how can i save an objects INI ? or is that not possible ? Share this post Link to post Share on other sites
code34 248 Posted January 8, 2014 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
eagledude4 3 Posted January 9, 2014 (edited) 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 January 9, 2014 by eagledude4 Share this post Link to post Share on other sites
code34 248 Posted January 9, 2014 (edited) 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 January 14, 2014 by code34 Share this post Link to post Share on other sites
mrkarp 10 Posted January 22, 2014 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
code34 248 Posted January 23, 2014 (edited) 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 January 23, 2014 by code34 Share this post Link to post Share on other sites
champ-1 40 Posted January 31, 2014 Can someone post example mission that actually works, please? Thanks. Share this post Link to post Share on other sites
code34 248 Posted January 31, 2014 first page :) https://www.dropbox.com/s/np91uw8d1cnrci4/test_mission.altis.zip Share this post Link to post Share on other sites
champ-1 40 Posted February 1, 2014 first page :)https://www.dropbox.com/s/np91uw8d1cnrci4/test_mission.altis.zip 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? Share this post Link to post Share on other sites
code34 248 Posted February 2, 2014 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