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

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
theRustyKnife
Filter Inserter
Filter Inserter
Posts: 258
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.
Check out my mods!

Rseding91
Factorio Staff
Factorio Staff
Posts: 12215
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”