This code crashes the hosts game when he tries changing the mod setting.
https://hastebin.com/ifebowigoj.lua
The client doesn't even seem to fire the event.
If I'm simply handling on_runtime_mod_setting_changed wrong please give correct examples.
[0.15.3] "Attempting to save empty mod settings." in MP
[0.15.3] "Attempting to save empty mod settings." in MP
- Attachments
-
- factorio-current.log
- Client
- (8.63 KiB) Downloaded 137 times
-
- factorio-current.log
- Host
- (13.04 KiB) Downloaded 147 times
My Mods: mods.factorio.com
Re: [0.15.3] "Attempting to save empty mod settings." in MP
I am also having this same crash after defining a setting as "runtime-per-user" and altering it in game. I am not using an on settings changed event either. It's crashing as soon as I hit the "Back" button. Everything works as intended in the single player game.
settings.lua
-------------
{
type = "int-setting",
name = "dutchted-loader-fill-level-turret-ammo",
setting_type = "runtime-per-user",
default_value = 20,
maximum_value = 100,
minimum_value = 0,
per_user = true, -- also tried 'false' but still crashes
},
.
.
.
})
factorio-current.log
-----------------------
91.248 Error ModSettingsChangedData.cpp:37: Attempting to save empty mod settings.
settings.lua
-------------
{
type = "int-setting",
name = "dutchted-loader-fill-level-turret-ammo",
setting_type = "runtime-per-user",
default_value = 20,
maximum_value = 100,
minimum_value = 0,
per_user = true, -- also tried 'false' but still crashes
},
.
.
.
})
factorio-current.log
-----------------------
91.248 Error ModSettingsChangedData.cpp:37: Attempting to save empty mod settings.
- Attachments
-
- factorio-current.log
- (8.2 KiB) Downloaded 139 times
Re: [0.15.3] "Attempting to save empty mod settings." in MP
I've kept trying.
Even an empty event function causes this error with runtime-global settings.
Even an empty event function causes this error with runtime-global settings.
My Mods: mods.factorio.com
Re: [0.15.3] "Attempting to save empty mod settings." in MP
Can you give me the mod(s) you're using and a save file that reproduce the problem?
If you want to get ahold of me I'm almost always on Discord.
Re: [0.15.3] "Attempting to save empty mod settings." in MP
Nevermind, I see what's wrong. Probably the biggest derp I've done in a while :\
It will be fixed for the next version of 0.15.
It will be fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.