Hello everyone.
There is a game menu which can be found by going to Options -> Mods. Could anyone tell what is the purpose of this menu and how can I use it properly?
I need to make some of my mod's settings customizable and I prefer GUI interaction to console.
1. Is there any tutorial on how to configure this menu? (Haven't found any.)
2. Could you recommend some good mod implementing this menu which can be reverse engineered?
3. What is current best practice on providing mod configuration interface? I'm choosing between this menu and making own custom dialog.
Thanks for your attention!
Question on Options/Mods menu
Re: Question on Options/Mods menu
1.: https://wiki.factorio.com/Tutorial:Mod_settingsavatarDr wrote:Hello everyone.
There is a game menu which can be found by going to Options -> Mods. Could anyone tell what is the purpose of this menu and how can I use it properly?
I need to make some of my mod's settings customizable and I prefer GUI interaction to console.
1. Is there any tutorial on how to configure this menu? (Haven't found any.)
2. Could you recommend some good mod implementing this menu which can be reverse engineered?
3. What is current best practice on providing mod configuration interface? I'm choosing between this menu and making own custom dialog.
Thanks for your attention!
2.: I used https://mods.factorio.com/mods/Gangsir/Ruins and https://mods.factorio.com/mods/wormmus/wormmus-config
3.: Using the mod settings is much easier and makes it possible to change prototypes depending on settings. The in-game mod gui does not allow that.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Question on Options/Mods menu
My favorite:
https://mods.factorio.com/mods/Blank/what-fish
https://mods.factorio.com/mods/Blank/what-fish
Code: Select all
--settings.lua
data:extend({
{
type = "bool-setting",
name = "what-fish-toggle",
localised_name = "Disable Fish",
setting_type = "startup",
default_value = true,
per_user = false
}
})
Code: Select all
-- data.lua
fish_disabled = settings.startup["what-fish-toggle"].value
if fish_disabled then
data.raw["fish"]["fish"].autoplace = {influence = 0.00}
end
Re: Question on Options/Mods menu
"per_user = false" doesn't do anything - it's not a real property viewtopic.php?f=34&t=32890
If you want to get ahold of me I'm almost always on Discord.
Re: Question on Options/Mods menu
I guess I'll have to add this as a tip to the tutorial on the wiki or we will have people using this forever lolRseding91 wrote:"per_user = false" doesn't do anything - it's not a real property viewtopic.php?f=34&t=32890
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Question on Options/Mods menu
Thanks everyone for help.
It is quite plain and useful feature. I hope it will be extended further to support more widgets, grouping and framing.
It is quite plain and useful feature. I hope it will be extended further to support more widgets, grouping and framing.