[0.17.4] Changing mod settings from scripts doesn't raise an event

This subforum contains all the issues which we already resolved.
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Feb 26, 2015 9:26 pm
Contact:

[0.17.4] Changing mod settings from scripts doesn't raise an event

Post by theRustyKnife »

Since mod runtime settings can now be changed from lua, it's possible that a setting gets changed without the on_runtime_mod_setting_changed being fired. This may cause mods that cache the setting in global to not update the value, which clearly isn't good.
The expected behavior was that changing any settings from script would fire the event automatically.

Edit: Also the api page for LuaSettings needs an update to mention that the settings can be changed.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14884
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.17.4] Changing mod settings from scripts doesn't raise an event

Post by Rseding91 »

Thanks for the report. I've fixed both things for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”