Question Where should module config files go?

rstarkov

Addon Developer
Addon Developer
Joined
Feb 15, 2010
Messages
26
Reaction score
1
Points
0
Location
Cambridge, UK
A couple of addons I work on need to store some settings that are independent of the current scenario. For example, WindowTack stores the window positions at various resolutions. ReFuelMFD will store a couple of settings related to whether refuelling is allowed without being docked.

Where should these settings files go?

/Config - probably not
/Config/MFD - looks reasonable for an MFD but not so much for WindowTack
/Config/Modules - looks fine...

...except that the documentation states that only ROOT and SCENARIOS are guaranteed to be writable, thus precluding CONFIG completely.

So should I litter ROOT or SCENARIOS, or make my addons incompatible with mostly-read-only installations?...

P.S. While searching the forums for an answer, I found a thread titled something like "Hardest thing about developing addons". For me, the hardest thing is dealing with Orbiter's "organic" growth, i.e. the absence of an overarching upfront design that foresees and accommodates boring details like this one...
 
Well... I'm no coder, but I have seen add-on configs scattered around in the /config folder, in the /config/modules folder, and some in their own folders (e.g. /config/RWarp). So I guess it's determined by the module.
 
It is of course determined by the module. The question is how the module should determine it.

I guess I'll stick mine into /Config/Modules; it appears that nobody really cares much anyway :)
 
Back
Top