Page 1 of 1

How to detect change of startup mod settings

Posted: Wed May 15, 2019 4:04 pm
by <NO_NAME>
I need to check if startup settings of my mod were changed since the last save.
My mod changes some colors on the map preview and I need to call game.forces.player.rechart() if settings were changed.
Event on_runtime_mod_setting_changed doesn't seem to be triggered in this situation and I cannot find any other that would fit better.

Re: How to detect change of startup mod settings

Posted: Wed May 15, 2019 4:09 pm
by eduran

Re: How to detect change of startup mod settings

Posted: Wed May 15, 2019 4:45 pm
by <NO_NAME>
Thanks! mod_startup_settings_changed works.
It's bad that it doesn't tell you which setting has changed, though. Only some of them require recharting the map.