[0.15.3] "Attempting to save empty mod settings." in MP

This subforum contains all the issues which we already resolved.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

[0.15.3] "Attempting to save empty mod settings." in MP

Post by Optera »

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.
Attachments
factorio-current.log
Client
(8.63 KiB) Downloaded 137 times
factorio-current.log
Host
(13.04 KiB) Downloaded 147 times
User avatar
DutchTed
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sat Jul 30, 2016 8:09 am
Contact:

Re: [0.15.3] "Attempting to save empty mod settings." in MP

Post by DutchTed »

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.
Attachments
factorio-current.log
(8.2 KiB) Downloaded 139 times
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [0.15.3] "Attempting to save empty mod settings." in MP

Post by Optera »

I've kept trying.
Even an empty event function causes this error with runtime-global settings.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14339
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.3] "Attempting to save empty mod settings." in MP

Post by Rseding91 »

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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14339
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.3] "Attempting to save empty mod settings." in MP

Post by Rseding91 »

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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”