hi
i'm writing an addon where i absolutely must read the same data across every mission that uses my addon, and write to that data with some mechanism
(this would be as a part of my displayeventhandler addon;
http://www.ofpec.com/forum/index.php?topic=31384.0 )
i'm way out of my depth with this, so i'm asking for suggestions on how to proceed
ideal functionality would be to have the game ask for a key assignment when it detects an unassigned key from any addon and have a config button in main menu for later reconfiguration
here's ideas i've had;
1.
force users to use a launcher which grabs variables from memory <- bad idea, immediately discarded and never even concidered
2.
dump variables into arma.rpt and force users to run an external parser that writes the appropriate config file <- also bad idea, no way
3. create a campaign and force users to start/restart a mission and show a config dialog in there, which creates a campaign status file, which would be read by the addon
problem; as i understood it, scripts are 'chrooted' to arma install dir with no access outside it, like user profiles, where campaign status is stored
is there a way around this?
apart from creating a symbolic link to the profile folder, which also is a bad idea and very unreliable
4. force users to run an external config application that reads the list of possible keys from a database manually written by each addon author that uses this
not very user friendly, and prone to user errors in keeping key list in sync with addons
5. i noticed there's some variables that look a lot like some addons in the activeKeys[] property in the *.ArmAProfile file - can these, or any property in the profile, be written and read somehow?
better ideas for sharing variables across missions are welcomed