DayZ-CommunityFramework icon indicating copy to clipboard operation
DayZ-CommunityFramework copied to clipboard

Add CF.Configuration for standardized mod-settings

Open Arkensor opened this issue 3 years ago • 0 comments

  • Ability to read settings from cmd params, a config file in .exe directory
  • Set default values from mod that declares the settings
  • Script interface for get and set of the options for cross-mod interaction

The config file should be JSON. Could work like the MS approach where you only define what you want to override. Each mod could contain a config.json with its settings in it. Maybe a config.cpp entry is needed for where the json can be found in the mod. Maybe it makes more sense to define the settings purely via a config.cpp class as the mod author and JSON is only used for end-users.

Possible issues:

  • No way to know about mods in modules 3_Game and lower. We need a way to make sure CF loaded config settings before any of the other mods do anything in 3_Game. Mabye use the CreateGame module entry function to block anything else from happening.

Arkensor avatar Apr 14 '21 10:04 Arkensor