Surviving Mars

Surviving Mars

Mod Config Demo
akarnokd 27 Mar, 2018 @ 2:24am
Boolean setting with default true set to false revert to true when reopening the dialog
Hi, sorry for bothering you with this. I've looked at the demo and built a config for one of my mods:

function OnMsg.ModConfigReady() ModConfig:RegisterMod("AutoExplore", T{"AutoExplore"}, T{"Explorers automatically go to and research anomalies, keep themselves charged"} ) ModConfig:RegisterOption("AutoExplore", "Notifications", { name = T{"Notifications"}, desc = T{"Enable/Disable notifications of the rovers in Auto mode."}, type = "boolean", default = true }) end

This shows up properly, however when I click on the icon to have it disabled, close the dialog and reopen it, the option is enabled again. I don't use ModConfig:Set anywhere but use ModConfig:Get in my other scripts to read the state.

Am I doing something wrong?
Last edited by akarnokd; 27 Mar, 2018 @ 2:27am
< >
Showing 1-1 of 1 comments
Waywocket  [developer] 27 Mar, 2018 @ 3:52am 
You're not doing anything wrong. It's a bug. I'll upload a fix shortly.
< >
Showing 1-1 of 1 comments
Per page: 1530 50