Blueprint Parameter - infer upstream recipe

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Elwin
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Jul 26, 2016 10:50 am
Contact:

Blueprint Parameter - infer upstream recipe

Post by Elwin »

I want to create a blueprint for iron/copper bacteria biochamber and it should have its own biochamber next to it. I want to parametrize the blueprint so that the user selects the bacteria type (iron/copper) recipe for the first biochamber and the blueprint infers the recipe for the other biochamber (i.e. jelly or yumako processing). I don't see any clean way how to do it, is there perhaps some "hack" how to achieve it?
Attachments
Blueprint.png
Blueprint.png (766.62 KiB) Viewed 180 times
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3756
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Blueprint Parameter - infer upstream recipe

Post by DaveMcW »

I would use a blueprint book. Create a blueprint for each recipe, put them in the blueprint book, and shift + mouse wheel to switch between them.
Elwin
Burner Inserter
Burner Inserter
Posts: 15
Joined: Tue Jul 26, 2016 10:50 am
Contact:

Re: Blueprint Parameter - infer upstream recipe

Post by Elwin »

Then I need to maintain two blueprints. The purpose of the blueprint parameters was to avoid exactly that as stated in a FFF, but I guess we need to live with some limitations. For example, it is not possible to create a dependency between bacteria type and the type of ore it "spoils" to but fortunately I was able to work around that by adding both ore types (iron and copper) to inserters and splitters as filters.

I found an acceptable solution by adding constant and decider combinator. Constant combinator has a signal and this signal is added as "Independent" parameter. Based on value of this parameter, the decider combinator sets recipe in the biochamber like this: if signal == 1 then jellynut_processing else yumako processing. User will get a chance to set value of the signal when placing the blueprint and the message gives hint what values to enter: "Enter 1 for Iron and 2+ for Copper". Ugly but should be sufficient hint for me when I use the blueprint.
Post Reply

Return to “Gameplay Help”