How to make presets for mod settings?

Place to get help with not working mods / modding interface.
shm013
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Jul 05, 2017 9:03 am
Contact:

How to make presets for mod settings?

Post 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?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How to make presets for mod settings?

Post by darkfrei »

If it helps

What Fish?
https://mods.factorio.com/mods/Blank/what-fish
code
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: How to make presets for mod settings?

Post 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.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”