Delete mod settings of a single mod

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Zaflis
Filter Inserter
Filter Inserter
Posts: 538
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Delete mod settings of a single mod

Post by Zaflis »

TL;DR
Would be handy to be able to reset settings of a single mod that refuses to load to main menu.
What?
There could be a button in Mods menu ingame, after selecting a mod to delete its settings from mod-settings.dat. When you install some mod, it may have some old settings that make it incompatible with the current game and then refuses to load at all.
Why?
The settings file is in binary format so we can't fix it manually outside the game. If we delete the whole file we lose settings from every mod we ever played, carefully calibrated data over many years that you don't want to lose.

I noticed there are mods that call error() function in data-final-fixes.lua. While that is useful for user to know that there was an error, it doesn't actually help us fix it if it just tells us to reset the settings. Still mods should still be able to at least show some message about the conflict to player, just without needing to refuse it reaching main menu. But this note is slightly irrelevant if we can reset the settings even from disabled mods.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16761
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Delete mod settings of a single mod

Post by Rseding91 »

In the error screen for that mod there's a check-box to reset that mods settings. Is there some reason you don't use that?
If you want to get ahold of me I'm almost always on Discord.
Zaflis
Filter Inserter
Filter Inserter
Posts: 538
Joined: Sun Apr 24, 2016 12:51 am
Contact:

Re: Delete mod settings of a single mod

Post by Zaflis »

I did not even notice. I changed the mod's lua file to not call the error() at all and fixed it that way.

But now that you mention it, image is still in imgur:
Image

It is actually almost invisible, and i don't wonder i missed it. It's like part of the error text content.
Post Reply

Return to “Ideas and Suggestions”