Page 1 of 1
New modifier for researched technology effects: lock recipe
Posted: Fri Sep 18, 2020 9:00 am
by darkfrei
Hi devs!
Can you please add the way to upgrade recipes?
I want something like:
Code: Select all
techonology.effects = {
{type = "unlock-recipe", recipe = "recipe-mk2"},
{type = "lock-recipe", recipe = "recipe-mk1"}
}
https://wiki.factorio.com/Prototype/Technology#effects
https://lua-api.factorio.com/latest/Con ... l#Modifier
Re: New modifier for researched technology effects: lock recipe
Posted: Fri Sep 18, 2020 1:31 pm
by eradicator
Disabling recipies in control is already trivial. The problem is having to scan the map and "upgrade" all assemblers. Blueprints would also break. Basically to make this work the engine would also have to replace recipes with upgraded version when building ghost assemblers.
Re: New modifier for researched technology effects: lock recipe
Posted: Fri Sep 18, 2020 9:56 pm
by darkfrei
eradicator wrote: Fri Sep 18, 2020 1:31 pm
Disabling recipies in control is already trivial. The problem is having to scan the map and "upgrade" all assemblers. Blueprints would also break. Basically to make this work the engine would also have to replace recipes with upgraded version when building ghost assemblers.
It's trivial, but why enabling is possible, but not disabling?
Re: New modifier for researched technology effects: lock recipe
Posted: Fri Sep 18, 2020 10:02 pm
by eradicator
darkfrei wrote: Fri Sep 18, 2020 9:56 pm
eradicator wrote: Fri Sep 18, 2020 1:31 pm
Disabling recipies in control is already trivial. The problem is having to scan the map and "upgrade" all assemblers. Blueprints would also break. Basically to make this work the engine would also have to replace recipes with upgraded version when building ghost assemblers.
It's trivial, but why enabling is possible, but not disabling?
Because making a recipe "disappear" from a map that it's already been in is not trivial at all. See above.
Re: New modifier for researched technology effects: lock recipe
Posted: Fri Sep 18, 2020 10:06 pm
by darkfrei
eradicator wrote: Fri Sep 18, 2020 10:02 pm
Because making a recipe "disappear" from a map that it's already been in is not trivial at all. See above.
But no big problems for furnaces?