Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CF.Configuration for standardized mod-settings #49

Open
Arkensor opened this issue Apr 14, 2021 · 0 comments
Open

Add CF.Configuration for standardized mod-settings #49

Arkensor opened this issue Apr 14, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Arkensor
Copy link
Owner

  • 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 Arkensor added the enhancement New feature or request label Apr 14, 2021
@Arkensor Arkensor self-assigned this Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant