StardewMods icon indicating copy to clipboard operation
StardewMods copied to clipboard

[LookupAnything] Add integration with Extra Machine Config's multiple output items feature

Open zombifier opened this issue 1 year ago • 1 comments

API Reference

For now basically add new recipes with the same ingredient list but new output items taken from EMC's API. It does mean the lookup can't distinguish between "the recipe can produce one of these items" and "the recipe will produce all of these items", but I don't think it's important to distinguish (and any solutions I can think of to distinguish them leads to combinatorics explosions if there are multiple possible outputs for each 'slots'). Plus, this is also how things currently work with building conversion recipes (e.g. Mill).

zombifier avatar Aug 23 '24 22:08 zombifier

Seems like this will get spammy with the 'global byproduct' feature that adds a byproduct to every machine recipes. I'll need to rethink how the UI should work (maybe multiple items on one line), but a workaround for now is probably to exclude those, and only add the per-recipe byproduce.

zombifier avatar Oct 17 '24 22:10 zombifier

To recap, here are the solutions I'm thinking for a recipe that takes A and returns B as a primary output, and C and D as secondary:

  1. (Existing) Show:
    • A => B
    • A => C
    • A => D Pros: simplest, most straightforward Cons: Doesn't communicate that C and D are byproduce from A to B, might bloat the screen for byproduce that applies to every recipe
  2. Show:
    • A => B only
    • Looking up C and D will show A => B Pros: Least clutter Cons: May not be clear
  3. Show:
    • A => B + C + D Pros: Clearest, best looking solution Cons: Extremely complicated, may lead to explosion of recipe counts if there are multiple items in the C and D slot

I'm still most happy with 1, but I'm interested to hear your thoughts.

zombifier avatar Oct 27 '24 18:10 zombifier

Merged with latest develop, should work now (see screenshot for example from the new Wildflour Atelier Goods, which use this feature extensively. It can also be downloaded to test out).

2024-11-23T21:49:00,578091032-05:00

The recipe takes 2 milk and outputs all 4 of the items listed.

zombifier avatar Nov 24 '24 02:11 zombifier

Thanks for the help! Merged into develop for the upcoming Lookup Anything 1.50.0.

Pathoschild avatar Mar 08 '25 16:03 Pathoschild