Skip to content

Store settings under stable keys instead of translated titles - #44

Open
3mro777o wants to merge 1 commit into
Pointifix:masterfrom
3mro777o:stable-settings-keys
Open

3mro777o wants to merge 1 commit into
Pointifix:masterfrom
3mro777o:stable-settings-keys

Conversation

@3mro777o

@3mro777o 3mro777o commented Nov 4, 2026 •

Copy link
Copy Markdown

The activation key, the toggle button, optimization quality and the water extractor option were saved using the translated setting title as the key (bundle.get(...)). Changing the game language made the mod read a different key, so these settings went back to their defaults.

  • These four settings now use fixed keys (auto-drill-activation-key etc.).
  • The titles still come from the bundles through setting.<key>.name entries (en, de, ru).
  • On startup, values saved under the old key for the current language are copied to the new key, so players keep their settings.

Testing: compiles against Mindustry v158.1 and v160.7.


AI support : Claude

Settings such as the activation key were saved under the translated
setting title, so they were lost when the game language changed.
Existing values are copied to the new keys on startup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant