Page 1 of 1

How to make presets for mod settings?

Posted: Wed Jul 05, 2017 9:22 am
by shm013
Hello there!

Who know how to make presets, that can change mods settings. I want to make preset for disabling angels infinite ores.
I tried something like this:

Code: Select all

data.raw["map-gen-presets"]["default"]["shm-marathon"] = {
    order = "i",
    mod_settings = 
    {
        startup["angelsinfiniteores"]["angels-enableinfiniteiron"] = false
    }
}
But this does not work. Are there way to change mods settings in presets?

Re: How to make presets for mod settings?

Posted: Wed Jul 05, 2017 10:22 am
by darkfrei
If it helps

What Fish?
https://mods.factorio.com/mods/Blank/what-fish
code

Re: How to make presets for mod settings?

Posted: Wed Jul 05, 2017 11:44 am
by bobingabout
viewtopic.php?f=34&t=32890

To note, per_user does nothing, as all settings that are type runtime-per-user will be "per user", and everything else won't be.
This tag was added by someone who was trying to figure things out before the tutorial in the linked topic was written, and A LOT of people copied off that incorrect example, including myself.