Gossler
-
Content Count
4 -
Joined
-
Last visited
-
Medals
Posts posted by Gossler
-
-
Hi,
Was there any progress made on making this work with an addAction?
I have run into the same issues that you described above, and I cant figure out how to make it work! (Mind you, I'm still very new to scripting.)Thanks for the script!
-
2 hours ago, roy86 said:Hey mate, Old one is difficult to isolate but the new one in PO4 is stand alone so you can use it in any mission you want.
Cheers,
So happy to hear! Thanks for the quick response!- 1
-
Hey Roy86! Awesome work with Patrol Ops!
I was wondering if there is a way to use SquadMod with other missions, or if you have a standalone version or are planning to make one? Id love to have your functionality in other mission files.
iniDBI2 - Save and Load data to the server or your local computer without databases!
in ARMA 3 - ADDONS & MODS: COMPLETE
Posted · Edited by Gossler
Updated info.
Hey there. Im having issues saving an empty array. Im pretty new to scripting and I can read it, or at least follow it, but writing is iffy, so there is a lot of trial and error, but heres what I have.
I am trying to make our invade and annex server persistent because we reset it often, and we keep losing our progress as a result.
dbCreate.sqf
_dbCreate = ["new", "69thIandA"] call OO_INIDBI;
["write", ["Mission Info", "Controlled Zones", controlledZones]] call _dbCreate;
_cptFOB=[];
_cptFOB = missionNamespace getVariable [format ["capturedFOBs%1", 1],[]];
if(isNil (_cptFOB)) then {
sleep 1;
systemChat "No Captured FOB's stored.";
} else {
["write", ["Mission Info", "Captured FOBs", capturedFOBs]] call _dbCreate;
sleep 1;
systemChat "Captured FOB's written to DB.";
};
Output in 69thIandA.ini
[Mission Info]
Controlled Zones="["BASE"]"
The controlledZones array populates as each zone is captured, but base is the default value. however, capturedFOBs doesnt populate until a FOB is captured.
My question is, because of the way the array is stored ie: "["BASE"]", are the quotes messing stuff up? Because it seems like the script isnt running anymore after it creates the database, and my RPT doesnt throw any errors.
Thank you for any help!
Edit:
changing if(isNil (_cptFOB)) to if(isNil ("_cptFOB")) fixed write issue. INI output is now as expected.