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

Settings - Add "volatile" option to not persist server settings after restart #1617

Merged
merged 10 commits into from
Oct 21, 2023

Conversation

veteran29
Copy link
Member

When merged this pull request will:

  • Adds support for cba_settings_volatile root config property
  • When set to 1 it will load/store server settings from uiNamespace instead of profileNamespace effectively making them persist only to the game restart

@veteran29 veteran29 changed the title Settings do not store in profile Settings - Add "volatile" option to no persist server settings after restart Oct 12, 2023
@veteran29 veteran29 changed the title Settings - Add "volatile" option to no persist server settings after restart Settings - Add "volatile" option to not persist server settings after restart Oct 12, 2023
@veteran29
Copy link
Member Author

image

@veteran29 veteran29 marked this pull request as ready for review October 12, 2023 01:15
addons/settings/stringtable.xml Outdated Show resolved Hide resolved
.hemtt/project.toml Outdated Show resolved Hide resolved
Co-authored-by: BrettMayson <brett@mayson.io>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
@veteran29 veteran29 requested a review from jonpas October 16, 2023 19:29
@PabstMirror PabstMirror added this to the 3.16.0 milestone Oct 17, 2023
Copy link
Contributor

@PabstMirror PabstMirror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this breaks load/save

Documents\Arma 3 - Other Profiles\Pabst%20Mirror\UserSaved\missions\testSave.Stratis\save.Arma3Save/GameState/Item2724/data.: Value type not matching: Namespace != Nothing
Error loading/saving variable cba_settings_serverhashnamespace
Error 'Bad file structure' at 'Documents\Arma 3 - Other Profiles\Pabst%20Mirror\UserSaved\missions\testSave.Stratis\save.Arma3Save/GameState/Item2724/data.'.
ErrorMessage: Cannot load 'Documents\Arma 3 - Other Profiles\Pabst%20Mirror\UserSaved\missions\testSave.Stratis\save.Arma3Save'.
Application terminated intentionally
ErrorMessage: Cannot load 'Documents\Arma 3 - Other Profiles\Pabst%20Mirror\UserSaved\missions\testSave.Stratis\save.Arma3Save'.

@jonpas jonpas modified the milestones: 3.16.0, 3.16.1 Oct 17, 2023
@veteran29 veteran29 force-pushed the settings-do-not-store-in-profile branch from e336585 to 87d40e9 Compare October 17, 2023 17:34
@veteran29
Copy link
Member Author

Crashes fixed by not storing namespaces in variables.

@jonpas jonpas merged commit 843ab67 into master Oct 21, 2023
4 checks passed
@jonpas jonpas deleted the settings-do-not-store-in-profile branch October 21, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants