shpaass / yafc-ce

Powerful Factorio calculator/analyser that works with mods
GNU General Public License v3.0
83 stars 21 forks source link

Add a recipe for research consumption #53

Closed shpaass closed 4 months ago

shpaass commented 8 months ago

A developer of Pyanodons, Kingarthur1991, would like to have a pseudo-recipe to calculate the research pack consumption in a lab. The recipe is expected to account for the research speed and the productivity buffs.

Original quote:

Off the top of my head a nice feature would be able to have a fake recipe for calculating science pack consumption in the labs. With the milestones and things it should be possible to have it at least show what aware of lab speed and allow for module effects

veger commented 8 months ago

So for example you say: "I want to do 10 SPM" and the recipe will require the needed ingredients? So you can design the rest of the faction depending on this?

shpaass commented 8 months ago

Yes. I think it is analogous to the Electricity generation.

One of the ways to implement it would be: A user chooses Science from the products, selects the only science-production recipe that is the lab, chooses the target technology for that recipe, and configures the speed and productivity through modules.

veger commented 8 months ago

Why not just having something like this?

image

I currently have setup some void recipes (in a separate production sheet) that request "items per second", both science packs as regular items.

So the the feature would become "be able to request items per second". Which could work for both science and the other items. And does not depend on technology goals, productivity, etc. Making the whole feature more simple to use and implement?

shihan42 commented 8 months ago

I did some research on these meta recipes for electricity and heat. It seems that it would be feasible to extend these with another meta recipe and some special handling at different stages of the analysis.

So the the feature would become "be able to request items per second". Which could work for both science and the other items. And does not depend on technology goals, productivity, etc. Making the whole feature more simple to use and implement?

In what way would this be different to "Desired products"? I'm sure it is, but I fail to see how just yet :D

shpaass commented 8 months ago

I currently have setup some void recipes

In my understanding of the Science recipe, the problem it solves is showing how many labs and with what upgrades and vatbrains it takes to produce that much Science per second / minute / hour. If your solution does that, then please let us know how.

veger commented 8 months ago

No, it only calculates the amount of ingredients required for a certain amount of "items per minute".

This issue is more about calculating the amount of required labs to consume a certain amount of science per minute?

BTW Is this really required? For Pyanodon, I just setup 4 labs or something, which is more than enough to consume the 'trickle' of science that I am able to produce.... It is more a challenge to produce the science than consuming it!

shpaass commented 8 months ago

This issue is more about calculating the amount of required labs to consume a certain amount of science per minute?

Yes, I think this issue is about that.

My thoughts about the issue are as follows: If we don't want to bother with making a pseudo-item of a full Science-cycle, then just setting up the pack consumption is sufficient. We can do that either manually, by specifying how many packs a Technology requires for a cycle, or we can make a selection from the existing Technologies. By the full Science-cycle, I mean that if the Technology needs [10 Automation, 1 Chem] x 1000, then one cycle is 10 Automation and 1 Chem.

BTW Is this really required? For Pyanodon, I just setup 4 labs or something, which is more than enough to consume the 'trickle' of science that I am able to produce.... It is more a challenge to produce the science than consuming it!

Later on, the player unlocks vatbrains. Essentially, they are expensive prod-beacons only for the labs. My guess is that this feature would be convenient for pY development. A developer can see what lab-setup is required for that consumption speed. I'll add the original quote to the issue.