doomeer / factorio

Factorio Planner
MIT License
137 stars 40 forks source link

Show shared-production-building-usage on each line-item #20

Closed ELLIOTTCABLE closed 7 years ago

ELLIOTTCABLE commented 7 years ago

Let's say I'm producing a bunch of stone stuff:

screen shot 2017-06-13 at 13 56 28

So when I set, say, “stone block” as a ‘shared item’ (because on the production-line I'm planning, I'm throwing it on a belt, and it's going to be used in multiple recipes, and I want to know the total number of stone-block assemblers — well, furnaces, in this case — I need to feed the N recipes along that line that are consuming it), I can see the total up at the top:

screen shot 2017-06-13 at 13 56 54

… which is, of course, kinda the point.

But when I look at that, and wonder, “woah, why the frack do I need seven furnaces!?”, I look back down below, and unfortunately,

screen shot 2017-06-13 at 13 58 00

… the individual line-items are no longer showing how much assembler- (and thus space-) usage they're contributing to the overall production-line.

When designing a complex line, this becomes a lot of math to do in my head — I'd love to see the usage, per-line-item, re-added. Even better, since with a “shared resource” we know the total number of assemblers, it'd be ideal if each line-item actually showed the total, and the percentage thereof, for shared resources:

screen shot 2017-06-13 at 14 04 35

(Forgive the horrible HTML-edit mockup, but I hope you get the idea!)

doomeer commented 7 years ago

Interesting; it looks rather simple to implement, not invasive (maybe I'd just put the percentage though, in gray) and useful. I'll try to add it next time I open up Emacs :D

doomeer commented 7 years ago

Done!

ELLIOTTCABLE commented 7 years ago

Beautiful! <3

(Hopefully the slow reply ain't a problem; I'm overseas at PLDI'17. :P)