It adds a per-player setting of each type string, bool, int, double with default values of each.
See this post for correct instructions to replicate this bug. The mod is no longer required.
46146?p=265083#p265083
Well that fixed the mod fetching the incorrect value but the mod settings menu is still showing the wrong values while in game. Plus the Options -> Other -> "Use different mod settings per save" checkbox still doesn't appear to actually do anything.Nexela wrote:settings.get_player_settings(player_index) to get the settings for the player
That not working was a goof on my part. I've moved on from that now. Now this issue is that the Mod-settings screen isn't updating after you change the values. This is purely an issue with Factorio as the settings are read-only for mods.Nexela wrote:I just tested your mod and the button printed out the correct settings shown in the settings screen every time.
Thank goodness. I was getting so frustrated that I could replicate it every time with extreme precision but you could not. I left out a step here in this thread. *bangs head on desk* Sorry for all of that confusion. I updated the title you have a suggestion for a better title than that?Nexela wrote:I see it now! Might want to edit the original post with the new information and update title
I believe it is not updating because in single player the game is "paused" and the event doesn't fire until you resume. In multiplayer the event fires as soon as you hit back.
So in short: In game mod settings screen doesn't update displayed values when settings screen is reopened BEFORE resuming the game in single player.