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

Enable dynamic changes to server settings loaded via cba_settings.sqf #1360

Open
Dystroxic opened this issue Aug 17, 2020 · 0 comments
Open

Comments

@Dystroxic
Copy link

Is your enhancement related to a problem?
It's nice to use a cba_settings.sqf file on the server for default settings, as this allows it to be configured in a Git repo and used on multiple servers. Unfortunately, using this file means admins can't dynamically change server settings during missions.

Solution you'd like:
Allow admins to change server settings during missions, even if they were loaded from a cba_settings.sqf file. The change should persist until the server shuts down (each time the server starts, it should re-load the defaults from cba_settings.sqf).

Alternatives you've considered:
@veteran29 suggested using a XEH_PreInit script in an addon that reads the default settings from a different file and sets them; this allows them to be altered during missions, but they'll reset to defaults on next server start (as desired). However, since there's no way to control initialization order of addons, it's possible that other addons could initialize first, find that there is no value set for the given setting, and use the setting's default value instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant