Define Primary Recipe on Item / Fluid

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
KiwiHawk
Filter Inserter
Filter Inserter
Posts: 295
Joined: Thu Jul 05, 2018 9:48 am
Contact:

Define Primary Recipe on Item / Fluid

Post by KiwiHawk »

Currently Item / Fluid entries will merge with a recipe prototype if they have the same internal name. Can we please have a way of overriding this? Allow us to (optionally) specify the name of a recipe on the item / fluid prototype. This is the recipe that will be merged.

This change would allow multiple items / fluids to define the same recipe as their primary source.

Example: In Angel's, this recipe is the first source you get access to for both Saline water and Purified water. Later on, players can unlock specialized recipes that will produce just one of these fluids. However this is the relevant recipe early game - the time when players are most likely to be looking up how to make these fluids.

05-25-2025, 21-47-53.png
05-25-2025, 21-47-53.png (72.42 KiB) Viewed 238 times

Being able to manually control this will make mod compatibility much simpler! In Angel's we often have a basic smelting recipe (which will have the same name as the resulting plate item) as well as multiple higher tier recipes. However depending on which combination of mods and settings you have enabled (e.g. having some of Bob's mods enabled) then the basic recipe is disabled. Currently to make the merging work we would need to nil the basic recipe and rename one of our other recipes. Also updating the technology prototypes to match.

05-25-2025, 21-50-04.png
05-25-2025, 21-50-04.png (266.54 KiB) Viewed 238 times

Related (but different) requests:
viewtopic.php?p=639621
viewtopic.php?p=633024
Dev for Bob's mods, Angel's mods, Sea Block, Circuit Processing, Science Cost Tweaker. Contributor to Helmod.

Buy me a coffee
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 103
Joined: Sat Aug 05, 2023 1:20 am
Contact:

Re: Define Primary Recipe on Item / Fluid

Post by MrSmoothieHuman »

+1 dealing with alternative recipes on the factoriopedia is a massive chore at best, so any way to control it would be super appreciated
coder? i hardly know her!
curiosity
Filter Inserter
Filter Inserter
Posts: 656
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: Define Primary Recipe on Item / Fluid

Post by curiosity »

This is how the recipe/product merging should have been done from the start, not via mystic relation between prototype names (which only causes problems).
MrSmoothieHuman
Fast Inserter
Fast Inserter
Posts: 103
Joined: Sat Aug 05, 2023 1:20 am
Contact:

Re: Define Primary Recipe on Item / Fluid

Post by MrSmoothieHuman »

the automatic merging is nice (although it fucked me up because i didnt have synced names), but i agree that it should have 100% came with a way to force factoriopedia to merge with a specified recipe - it feels like such an obvious feature
coder? i hardly know her!
Post Reply

Return to “Modding interface requests”